Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - aledark24

Pages: 1 ... 10 11 [12] 13 14
166
Snippet Showroom / Re: Complete Food system by aledark24
« on: November 10, 2012, 07:18:07 pm »
Poor english, rest is decent.


wtf you are very stupid ....


que tal mi ingles ahora!

167
Snippet Showroom / Re: Complete Food system by and "smoke" system
« on: November 10, 2012, 05:18:00 pm »
[pawn]
/* Finally the command for buy marihuana and smoke*/


new Marihuana[MAX_PLAYERS];

//===============================================================================
public OnPlayerDeath(playerid, killerid, reason, bodypart)
{
Marihuana[playerid] = 0;
}
return 1;
//===============================================================================
public OnPlayerDisconnect(playerid, reason)
{
    Marihuana[playerid] = 0;
   }
   return 1;
}
//=============================================================================== [/pawn]

            [pawn]      /*Copy this in Script from 0*/


      if(strcmp(cmdtext, "smoking", true) == 0) {
       SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
       SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c marihuana for buy a marihuana ");
       SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c smoke for smoke you marihuana");
       return 1;
       }

      else if(strcmp(cmdtext, "marihuana", true) == 0) {
       if(PlayerToPoint(5, playerid,-963.01934, 149.31915, 9.39547 ) || PlayerToPoint(5, playerid,-848.10546, -75.30679, 11.55582) || PlayerToPoint(5, playerid,465.16119, -53.56254, 15.70378) || PlayerToPoint(5, playerid,-1169.71337, -616.97027, 11.82830)) {
           new cash = GetPlayerMoney(playerid);
           if(Marihuana[playerid] == 1) {
            SendClientMessage(playerid,COLOR_YELLOW,"To smoke...Whrite /c smoke !!");
         }
           if(Marihuana[playerid] == 0) {
               if(cash >= 250) {
               SendClientMessage(playerid,COLOR_YELLOW,"You bought marihuana prensada!");
               Marihuana[playerid] = 1;
               SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 250);
               }
               if(cash < 200) {
               SendClientMessage(playerid,COLOR_YELLOW,"Need more money to buy!Need $250!");
               }
         }
         }
         else
         {
         SendClientMessage(playerid,COLOR_GREEN,"Buy in the drugstore,the sector vip of the malibu,coffee robina and the house of little havana!");
         }
      return 1;
   }
   
   
           else if(strcmp(cmdtext, "smoke", true) == 0) {
       if(Marihuana[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"Need marihuana to smoke!");
           }
      if(Marihuana[playerid] == 1) {
      SetPlayerDrunk(playerid,120);
  GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~S~o~M~h~O~w~K~h~I~w~N~o~G ~h~.~w~.~o~.");
  SendClientMessage(playerid,COLOR_PINK,"[Smoking]:You are smoking the marihuana");
  SetTimer("Fumando", 150000, false);
          Marihuana[playerid] = 0;
          }
       return 1;
       } [/pawn]
      
      
[pawn]  /* Copy this For script warchief  */
 
        if(strcmp(cmdtext, "smoking", true) == 0) {
       SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
       SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c marihuana for buy a marihuana ");
       SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c smoke for smoke you marihuana");
       return 1;
       }
 
 
         else if(strcmp(cmdtext, "marihuana", true) == 0) {
       if(PlayerToPoint(5, playerid,-963.01934, 149.31915, 9.39547 ) || PlayerToPoint(5, playerid,-848.10546, -75.30679, 11.55582) || PlayerToPoint(5, playerid,465.16119, -53.56254, 15.70378) || PlayerToPoint(5, playerid,-1169.71337, -616.97027, 11.82830)) {
           new cash = GetPlayerMoney(playerid);
           if(Marihuana[playerid] == 1) {
            SendClientMessage(playerid,COLOR_YELLOW,"To smoke...Whrite /c smoke !!");
         }
           if(Marihuana[playerid] == 0) {
               if(cash >= 250) {
               SendClientMessage(playerid,COLOR_YELLOW,"You bought marihuana prensada!");
               Marihuana[playerid] = 1;
               DecPlayerCash(playerid,250);
               }
               if(cash < 200) {
               SendClientMessage(playerid,COLOR_YELLOW,"Need more money to buy!Need $250!");
               }
         }
         }
         else
         {
         SendClientMessage(playerid,COLOR_GREEN,"Buy in the drugstore,the sector vip of the malibu,coffee robina, and the house of little havana!");
         }
      return 1;
   }



         else if(strcmp(cmdtext, "smoke", true) == 0) {
       if(Marihuana[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"Need marihuana to smoke!");
           }
      if(Marihuana[playerid] == 1) {
      IncPlayerDrunk(playerid,120);
  GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~S~o~M~h~O~w~K~h~I~w~N~o~G ~h~.~w~.~o~.");
  SendClientMessage(playerid,COLOR_PINK,"[Smoking]:You are smoking the marihuana");
  SetTimer("Fumando", 150000, false);
          Marihuana[playerid] = 0;
          }
       return 1;
       } [/pawn]
      
      
[pawn]    /* Copy this For script Gups or Fight City */
      
      
         if(strcmp(cmdtext, "smoking", true) == 0) {
       SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
       SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c marihuana for buy a marihuana ");
       SendClientMessage(playerid,COLOR_YELLOW ,"whrite /c smoke for smoke you marihuana");
       return 1;
       }
      
                else if(strcmp(cmdtext, "marihuana", true) == 0) {
       if(PlayerToPoint(5, playerid,-963.01934, 149.31915, 9.39547 ) || PlayerToPoint(5, playerid,-848.10546, -75.30679, 11.55582) || PlayerToPoint(5, playerid,465.16119, -53.56254, 15.70378) || PlayerToPoint(5, playerid,-1169.71337, -616.97027, 11.82830)) {
           new cash = GetPlayerMoney(playerid);
           if(Marihuana[playerid] == 1) {
            SendClientMessage(playerid,COLOR_YELLOW,"To smoke...Whrite /c smoke !!");
         }
           if(Marihuana[playerid] == 0) {
               if(cash >= 250) {
               SendClientMessage(playerid,COLOR_YELLOW,"You bought marihuana prensada!");
               Marihuana[playerid] = 1;
               DecPlayerHandCash(playerid,250);
               }
               if(cash < 200) {
               SendClientMessage(playerid,COLOR_YELLOW,"Need more money to buy!Need $250!");
               }
         }
         }
         else
         {
         SendClientMessage(playerid,COLOR_GREEN,"Buy in the drugstore,the sector vip of the malibu,coffee robina, and the house of little havana!");
         }
      return 1;
   }

         else if(strcmp(cmdtext, "smoke", true) == 0) {
       if(Marihuana[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"Need marihuana to smoke!");
           }
      if(Marihuana[playerid] == 1) {
      SetPlayerDrunk(playerid,120);
  GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~S~o~M~h~O~w~K~h~I~w~N~o~G ~h~.~w~.~o~.");
  SendClientMessage(playerid,COLOR_PINK,"[Smoking]:You are smoking the marihuana");
  SetTimer("Fumando", 150000, false);
          Marihuana[playerid] = 0;
          }
       return 1;
       } [/pawn]
[pawn]//===============================================================================
public Fumando(playerid)
{
        for(new i = 0; i < MAX_PLAYERS; i++) {
        if (IsPlayerConnected(i)) {
   SetPlayerDrunk(i,0);
   SendClientMessage(playerid,COLOR_YELLOW,"You to past the effect of the marihuana,you need to buy more!");
 }
 }
 }



//==============================================================================
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
        return 1;
    }
    return 0;
}
//==============================================================================
[/pawn]









168
Snippet Showroom / Complete Food system by aledark24
« on: November 10, 2012, 05:07:39 pm »
Special credits for Yonni Suarez "nice idea men"
Warning "sorry for my bad english"

[pawn]/*This food system is for all script,warchief-gups or fc-or from 0*/




#define COLOR_PINK             0xFFC0CBAA
#define COLOR_GREEN         0xE8941EFF
#define COLOR_YELLOW      0xFFFF00AA


new Cafe[MAX_PLAYERS];
new Pizza[MAX_PLAYERS];
new Bebida[MAX_PLAYERS];

//===============================================================================
public OnPlayerDisconnect(playerid, reason)
{
    Cafe[playerid] = 0;
    Pizza[playerid] = 0;
    Bebida[playerid] = 0;
   return 1;
}
//===============================================================================
public OnPlayerDeath(playerid,killerid,reason)
{
    Cafe[playerid] = 0;
    Pizza[playerid] = 0;
    Bebida[playerid] = 0;
    return 1;
}
[/pawn]


[pawn]//===============================================================================

/* This is for script from 0*/

public OnPlayerCommandText(playerid,cmdtext[])
{
   if(strcmp(cmdtext, "Foods", true) == 0) {
       SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyp for buy a pizza ");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyb for buy a drink");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyc for buy a coffee");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c eatp or /c drinkb or /c drinkc for eat or drink the foods");
       return 1;
       }   
      
   else if(strcmp(cmdtext, "buyp", true) == 0) {
       if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
           new cash = GetPlayerMoney(playerid);
           if(Pizza[playerid] == 1) {
           SendClientMessage(playerid,COLOR_YELLOW,"For eat a pizza type /c eatp");   
           }
           if(Pizza[playerid] == 0) {
           if(cash >= 150) {
           SendClientMessage(playerid,COLOR_YELLOW,"You buy a pizza!");
           Pizza[playerid] = 1;
           SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 150);
           }
           if(cash < 100) {
           SendClientMessage(playerid,COLOR_YELLOW,"Need more money, you need $150!");
           }
           }
           }
           else
           {
           SendClientMessage(playerid,COLOR_YELLOW,"Need go to the pizzeria!");
           }
       return 1;
   }
   
   else if(strcmp(cmdtext, "buyb", true) == 0) {
       if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
           new cash = GetPlayerMoney(playerid);
           if(Bebida[playerid] == 1) {
            SendClientMessage(playerid,COLOR_YELLOW,"For drink a bebida type /c drinkb");
         }
           if(Bebida[playerid] == 0) {
               if(cash >= 150) {
               SendClientMessage(playerid,COLOR_YELLOW,"You bought a drink");
               Bebida[playerid] = 1;
               SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 10);
               }
               if(cash < 100) {
               SendClientMessage(playerid,COLOR_YELLOW,"Need more money,need $150!");
               }
         }
         }
         else
         {
         SendClientMessage(playerid,COLOR_GREEN,"Need go to the pizzeria!");
         }
      return 1;
   }
   
   else if(strcmp(cmdtext, "buyc", true) == 0) {
      if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,-1169.71337, -616.97027, 11.82830) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
           new cash = GetPlayerMoney(playerid);
           if(Cafe[playerid] == 1) {
            SendClientMessage(playerid,COLOR_YELLOW,"To drink coffee type /c drinkc");
         }
           if(Cafe[playerid] == 0) {
               if(cash >= 150) {
               SendClientMessage(playerid,COLOR_YELLOW,"You bought a coffee!");
               Cafe[playerid] = 1;
               SetPlayerMoney(playerid,GetPlayerMoney(playerid) - 25);
               }
               if(cash < 100) {
               SendClientMessage(playerid,COLOR_YELLOW,"Need more money,need 150!");
               }
         }
         }
         else
         {
         SendClientMessage(playerid,COLOR_GREEN,"Go to the cafeteria Robina or the pizza place!");
         }
      return 1;
   }

 else if(strcmp(cmdtext, "eatp", true) == 0) {       
       new Float:Health;
       GetPlayerHealth(playerid,Health);
       if(Pizza[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"Not have a pizza!");
           }
      if(Pizza[playerid] == 1) {
      TogglePlayerControllable(playerid,0);
  GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~E~o~O~h~A~w~T~o~I~h~N~w~G ~h~.~w~.~o~.");
  SendClientMessage(playerid,COLOR_PINK,"[PIZZA]:You eat a pizza and recovery you energy!");   
  SetTimer("comiendopizza", 5000, false);
          Pizza[playerid] = 0;
          }
       return 1;
       }

 else if(strcmp(cmdtext, "drinkc", true) == 0) {
       new Float:Health;
       GetPlayerHealth(playerid,Health);
       if(Cafe[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"buy a coffee first!!");
           }
      if(Cafe[playerid] == 1) {
      TogglePlayerControllable(playerid,0);
  GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
  SendClientMessage(playerid,COLOR_RED,"[Drink]:You drink you coffee and recovery energy!");
  SetTimer("tomandocafe", 5000, false);
          Cafe[playerid] = 0;
          }
       return 1;
       }
 else if(strcmp(cmdtext, "drinkb", true) == 0) {
       new Float:Health;
       GetPlayerHealth(playerid,Health);
       if(Bebida[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"Buy drink first!!");
           }
      if(Bebida[playerid] == 1) {
      TogglePlayerControllable(playerid,0);
  GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
  SendClientMessage(playerid,COLOR_RED,"[Drink]:You drink and recovery you energy!");
  SetTimer("tomandobebida", 5000, false);
          Bebida[playerid] = 0;
          }
       return 1;
       } [/pawn]
      
[pawn]       /* ------------- For script warchief  ------------ */
      
  public OnPlayerCommandText(playerid,cmdtext[])
{
      
   if(strcmp(cmdtext, "Foods", true) == 0) {
       SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyp for buy a pizza ");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyb for buy a drink");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyc for buy a coffee");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c eatp or /c drinkb or /c drinkc for eat or drink the foods");
       return 1;
       }
      
          else if(strcmp(cmdtext, "buyp", true) == 0) {
       if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
           new cash = GetPlayerMoney(playerid);
           if(Pizza[playerid] == 1) {
           SendClientMessage(playerid,COLOR_YELLOW,"For eat a pizza type /c eatp");
           }
           if(Pizza[playerid] == 0) {
           if(cash >= 150) {
           SendClientMessage(playerid,COLOR_YELLOW,"You bought a pizza");
           Pizza[playerid] = 1;
           DecPlayerCash(playerid,150);
           }
           if(cash < 150) {
           SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
           }
           }
           }
           else
           {
           SendClientMessage(playerid,COLOR_YELLOW,"Go to the pizzeria for buy a pizza");
           }
       return 1;
   }
   else if(strcmp(cmdtext, "buyb", true) == 0) {
       if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
           new cash = GetPlayerMoney(playerid);
           if(Bebida[playerid] == 1) {
            SendClientMessage(playerid,COLOR_YELLOW,"For drink type /c drinkb");
         }
           if(Bebida[playerid] == 0) {
               if(cash >= 150) {
               SendClientMessage(playerid,COLOR_YELLOW,"You bought a drink");
               Bebida[playerid] = 1;
               DecPlayerCash(playerid,150);
               }
               if(cash < 100) {
               SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
               }
         }
         }
         else
         {
         SendClientMessage(playerid,COLOR_GREEN,"Go to the pizzeria");
         }
      return 1;
   }
   else if(strcmp(cmdtext, "buyc", true) == 0) {
       if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,-1169.71337, -616.97027, 11.82830) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
           new cash = GetPlayerMoney(playerid);
           if(Cafe[playerid] == 1) {
            SendClientMessage(playerid,COLOR_YELLOW,"For drink a coffee, type /c drinkc");
         }
           if(Cafe[playerid] == 0) {
               if(cash >= 25) {
               SendClientMessage(playerid,COLOR_YELLOW,"You bought a coffee");
               Cafe[playerid] = 1;
               DecPlayerCash(playerid,150);
               }
               if(cash < 100) {
               SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
               }
         }
         }
         else
         {
         SendClientMessage(playerid,COLOR_GREEN,"Go to Cafeteria Robina or The pizzeria for buy a coffee!");
         }
      return 1;
   }
   
 else if(strcmp(cmdtext, "eatp", true) == 0) {
       new Float:Health;
       GetPlayerHealth(playerid,Health);
       if(Pizza[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"not have a pizza");
           }
      if(Pizza[playerid] == 1) {
      TogglePlayerControllable(playerid,0);
  GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~E~o~O~h~A~w~T~o~I~h~N~w~G ~h~.~w~.~o~.");
  SendClientMessage(playerid,COLOR_PINK,"[Eating]:Eating pizza!");
  SetTimer("comiendopizza", 5000, false);
          Pizza[playerid] = 0;
          }
       return 1;
       }

 else if(strcmp(cmdtext, "drinkc", true) == 0) {
       new Float:Health;
       GetPlayerHealth(playerid,Health);
       if(Cafe[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"Need buy a coffee!!");
           }
      if(Cafe[playerid] == 1) {
      TogglePlayerControllable(playerid,0);
  GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
  SendClientMessage(playerid,COLOR_RED,"[Drink]:You drink a coffee and recovery energy!");
  SetTimer("tomandocafe", 5000, false);
          Cafe[playerid] = 0;
          }
       return 1;
       }
 else if(strcmp(cmdtext, "drinkb", true) == 0) {
       new Float:Health;
       GetPlayerHealth(playerid,Health);
       if(Bebida[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"Not have a drink!!");
           }
      if(Bebida[playerid] == 1) {
      TogglePlayerControllable(playerid,0);
 GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
  SendClientMessage(playerid,COLOR_RED,"[Drink]:Drink and recovery energy!");
  SetTimer("tomandobebida", 5000, false);
          Bebida[playerid] = 0;
          }
       return 1;
       }    [/pawn]
        
      
[pawn]       /* ------- For script gups or Fight City ------- */
      
      
  public OnPlayerCommandText(playerid,cmdtext[])
{
   
   if(strcmp(cmdtext, "Foods", true) == 0) {
       SendClientMessage(playerid,COLOR_YELLOW ,"-----------Foods-----------");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyp for buy a pizza ");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyb for buy a drink");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c buyc for buy a coffee");
       SendClientMessage(playerid,COLOR_YELLOW ,"Whrite /c eatp or /c drinkb or /c drinkc for eat or drink the foods");
       return 1;
       }
   
          else if(strcmp(cmdtext, "buyp", true) == 0) {
       if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
           new cash = GetPlayerMoney(playerid);
           if(Pizza[playerid] == 1) {
           SendClientMessage(playerid,COLOR_YELLOW,"For eat a pizza type /c eatp");
           }
           if(Pizza[playerid] == 0) {
           if(cash >= 150) {
           SendClientMessage(playerid,COLOR_YELLOW,"You bought a pizza");
           Pizza[playerid] = 1;
           DecPlayerHandCash(playerid,150);
           }
           if(cash < 100) {
           SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
           }
           }
           }
           else
           {
           SendClientMessage(playerid,COLOR_YELLOW,"Go to the pizzeria for buy a pizza");
           }
       return 1;
   }
   else if(strcmp(cmdtext, "buyb", true) == 0) {
       if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
           new cash = GetPlayerMoney(playerid);
           if(Bebida[playerid] == 1) {
            SendClientMessage(playerid,COLOR_YELLOW,"For drink type /c drinkb");
         }
           if(Bebida[playerid] == 0) {
               if(cash >= 150) {
               SendClientMessage(playerid,COLOR_YELLOW,"You bought a drink");
               Bebida[playerid] = 1;
               DecPlayerHandCash(playerid,150);
               }
               if(cash < 100) {
               SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
               }
         }
         }
         else
         {
         SendClientMessage(playerid,COLOR_GREEN,"Go to the pizzeria");
         }
      return 1;
   }
   else if(strcmp(cmdtext, "buyc", true) == 0) {
       if(PlayerToPoint(8, playerid,-1048.77099, 82.13945, 12.43262 ) || PlayerToPoint(8, playerid,-895.97473, 798.99871, 12.26343) || PlayerToPoint(8, playerid,-1169.71337, -616.97027, 11.82830) || PlayerToPoint(8, playerid,425.24963, 81.22541, 12.06054)) {
           new cash = GetPlayerMoney(playerid);
           if(Cafe[playerid] == 1) {
            SendClientMessage(playerid,COLOR_YELLOW,"For drink a coffee, type /c drinkc");
         }
           if(Cafe[playerid] == 0) {
               if(cash >= 25) {
               SendClientMessage(playerid,COLOR_YELLOW,"You bought a coffee");
               Cafe[playerid] = 1;
               DecPlayerHandCash(playerid,150);
               }
               if(cash < 100) {
               SendClientMessage(playerid,COLOR_YELLOW,"Need more money, need $150!");
               }
         }
         }
         else
         {
         SendClientMessage(playerid,COLOR_GREEN,"Go to Cafeteria Robina or The pizzeria for buy a coffee!");
         }
      return 1;
   }
   
 else if(strcmp(cmdtext, "eatp", true) == 0) {
       new Float:Health;
       GetPlayerHealth(playerid,Health);
       if(Pizza[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"not have a pizza");
           }
      if(Pizza[playerid] == 1) {
      TogglePlayerControllable(playerid,0);
  GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~E~o~O~h~A~w~T~o~I~h~N~w~G ~h~.~w~.~o~.");
  SendClientMessage(playerid,COLOR_PINK,"[Eating]:Eating pizza!");
  SetTimer("comiendopizza", 5000, false);
          Pizza[playerid] = 0;
          }
       return 1;
       }

 else if(strcmp(cmdtext, "drinkc", true) == 0) {
       new Float:Health;
       GetPlayerHealth(playerid,Health);
       if(Cafe[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"Need buy a coffee!!");
           }
      if(Cafe[playerid] == 1) {
      TogglePlayerControllable(playerid,0);
 GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
  SendClientMessage(playerid,COLOR_RED,"[Drink]:You drink a coffee and recovery energy!");
  SetTimer("tomandocafe", 5000, false);
          Cafe[playerid] = 0;
          }
       return 1;
       }
 else if(strcmp(cmdtext, "drinkb", true) == 0) {
       new Float:Health;
       GetPlayerHealth(playerid,Health);
       if(Bebida[playerid] == 0) {
           SendClientMessage(playerid,COLOR_GREEN,"Not have a drink!!");
           }
      if(Bebida[playerid] == 1) {
      TogglePlayerControllable(playerid,0);
  GameTextForPlayer(playerid,"~w~.~o~.~h~. ~w~D~o~R~h~~I~h~N~w~K~h~I~w~N~o~G~w~.");
  SendClientMessage(playerid,COLOR_RED,"[Drink]:Drink and recovery energy!");
  SetTimer("tomandobebida", 5000, false);
          Bebida[playerid] = 0;
          }
       return 1;
       }

[/pawn]



[pawn]        
//===============================================================================
public comiendopizza(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if (IsPlayerConnected(i)) {
   TogglePlayerControllable(i,1);
   SetPlayerHealth(i,100);
   SendClientMessage(playerid,COLOR_YELLOW,"You eating a pizza and recovery you energy");
 }

       }
}
//===============================================================================
public tomandocafe(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if (IsPlayerConnected(i)) {
   TogglePlayerControllable(i,1);
   SetPlayerHealth(i,100);
   SendClientMessage(playerid,COLOR_YELLOW,"You drinking a coffee and recovery you energy");
 }

       }
}
//===============================================================================
public tomandobebida(playerid)
{
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if (IsPlayerConnected(i)) {
   TogglePlayerControllable(i,1);
   SetPlayerHealth(i,100);
   SendClientMessage(playerid,COLOR_YELLOW,"You drinking a drink and recovery you energy");
 }

       }
}
//==============================================================================
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
        return 1;
    }
    return 0;
}
//==============================================================================


/* This commands is for food system, you need go to any pizzeria in the city for buy, and for eat or drink you type the command everywhere*/

/* BY ALEDARK24  FOR ROLEPLAY SCRIPTS , DO YOU LIKE THIS COMMANDS ¿¿?? GIVEME THANKS OR CREDITS IN YOU SERVER  */[/pawn]

169
Snippet Showroom / Re: Hello guys! Caesar salad for all!
« on: November 10, 2012, 12:55:04 pm »
I made a full RPG system with everything, containing EMP and police spikestrips being thrown out of the car, we do not care about you aledark24. This is his topic, we shall support him.


This is a nice script  :o


I create new commands and you say nice copy  :o
other create one command and you say nice job
you are very stupid or what? Shadow

http://forum.vicecitymultiplayer.com/index.php?topic=5268.0

170
Snippet Showroom / Re: Hello guys! Caesar salad for all!
« on: November 10, 2012, 03:23:07 am »
Mmm  :o i create a food system better so,tomorrow i post and give the topic here.
contain buy in all pizza place and eat everywhere
 8)

171
ShowRoom (pawn) / Re: Want to use Zimmy's scripts? ----->clcik here<-----
« on: November 07, 2012, 03:05:22 pm »
Yesterday only download for check possible viruses i modificated better the warchief

172
ShowRoom (pawn) / Re: Want to use Zimmy's scripts? ----->clcik here<-----
« on: November 06, 2012, 07:22:05 pm »
Fuck!!!!! Contain malware and viruses w32/sality.aa [virus]
You are a great stupid give to all viruses delete the archive now!!
announce and vcmp-svr.exe is infected

173
Snippet Showroom / Repair The car in all Pay N spray
« on: November 03, 2012, 08:13:47 pm »
Modificated 17-11-12


This commands is for Warchief          



[pawn]        /*Comando para reparar vehiculo en Pay N spray */
           else if(strcmp(cmdtext, "reparar", true) == 0) {
       if(PlayerToPoint(6, playerid,-870.66674, -118.24742, 10.65336 ) || PlayerToPoint(6, playerid,-912.51165, -1268.10986, 11.86920) || PlayerToPoint(6, playerid,-11.25934, -1258.25854, 10.23682) || PlayerToPoint(6, playerid,327.91986, 430.80700, 11.16345)) {


           new cash = GetPlayerMoney(playerid);
             if(cash >= 500) {
           SendClientMessage(playerid,COLOR_YELLOW,"Has reparado tu vehiculo");
           SetVehicleTyre(GetPlayerVehicleID(playerid), 1);
          SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
           DecPlayerCash(playerid,500);
          }
           if(cash < 499) {
           SendClientMessage(playerid,COLOR_YELLOW,"Necesitas mas dinero!Necesitas $500 para reparar el vehiculo!");
           }
         }
           else
           {
           SendClientMessage(playerid,COLOR_YELLOW,"Solo se repara en Pay N Spray");
           }
       return 1;
   } [/pawn]

This commands is for another script

[pawn] else if(strcmp(cmdtext, "reparar", true) == 0) {
       if(PlayerToPoint(6, playerid,-870.66674, -118.24742, 10.65336 ) || PlayerToPoint(6, playerid,-912.51165, -1268.10986, 11.86920) || PlayerToPoint(6, playerid,-11.25934, -1258.25854, 10.23682) || PlayerToPoint(6, playerid,327.91986, 430.80700, 11.16345)) {


           new cash = GetPlayerMoney(playerid);
             if(cash >= 500) {
           SendClientMessage(playerid,COLOR_YELLOW,"Has reparado tu vehiculo");
           SetVehicleTyre(GetPlayerVehicleID(playerid), 1);
          SetVehicleHealth(GetPlayerVehicleID(playerid),1000);
           DecPlayerHandCash(playerid,500);
          }
           if(cash < 499) {
           SendClientMessage(playerid,COLOR_YELLOW,"Necesitas mas dinero!Necesitas $500 para reparar el vehiculo!");
           }
         }
           else
           {
           SendClientMessage(playerid,COLOR_YELLOW,"Solo se repara en Pay N Spray");
           }
       return 1;
   }  [/pawn]


this is the public

[pawn] //==============================================================================
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
        return 1;
    }
    return 0;
}
//============================================================================== [/pawn]
 

174
mIRC/pawn Scripting / Re: Prob?
« on: November 03, 2012, 08:05:51 pm »
When i used to complie a Pawno File it shows me a error?  :(

[pawn]C:\Users\MY_PC\Desktop\Editx\gamemodes\GUPS1.16.pwn(1) : fatal error 100: cannot read from file: "a_vcmp"[/pawn]

in the script say in the top

#include <a_vcmp>   


???

175
General Discussion / Re: necesito comandos para vcmp
« on: November 02, 2012, 09:42:44 pm »
   hola gente si alguien pudiese compartir los script,me cree un server y quiero aprender en esto,ayudaaaa.
Primero que nada acá hablan inglés   :D segundo pasa por mi post de death match o de roleplay y descarga mi servidor :-) búscalos en mirc pawn scripting o ve mi perfil y busca mis post tercero Pi descargas mis servidores no olvides agradecer  ;D te dejaría los links yo mismo pero estoy desde mi celular jeje 8)  8)

176
General Discussion / Re: what to do?
« on: November 02, 2012, 09:31:11 pm »
First download any server,second open ports in you router
and check you ip in cualesmiip.com later open the server and see if your port is open
Copy in favorites you ip:number of port open..example
192.168.245.122:5192
Not all routers can't open ports

177
ShowRoom (pawn) / Re: ConsoleChat by me (Moby)
« on: November 01, 2012, 05:06:26 pm »
But, Im want Version English  :-\
change yourself in /dice = /say
In error de consola  = console error
in administrador = administrator
  8) and compile

178
Support / Re: Server asks a password help me
« on: October 31, 2012, 06:30:35 pm »
if you put pass in pawno not work but in pawno is bugged.....

179
ShowRoom (pawn) / Re: ConsoleChat by me (Moby)
« on: October 31, 2012, 04:46:36 pm »
:) Thx  ;D
Another system to talk in the console

[pawn]//chat para usar en la consola incluye /dice /ann1 y /ann2 "no acepto copias" atte aledark24
#include <a_vcmp>
#include <dutils>

#define yellow 0xFFFF00AA

#define INACTIVE_PLAYER_ID 255
#define RED   0xFF0000aa
#define GREEN               0x24FF0AB9
#define WHITE            0xFFFDFDFF
#define ORANGE              0xE8941EFF
#define PURPLEE            0xD22FBCFF
#define DGREEN            0x04A36BFF
#define BLUE            0x377DFFFF
#define PINK                0xFF66FFAA

#pragma unused ret_memcpy


new gPlayers[MAX_PLAYERS][MAX_PLAYER_NAME+1];
//==============================================================================
public OnRconCommand(cmd[],playerid)
{
    new tmp[256];
    new idx;
    new cmdt[256];
   cmdt = strtok(cmd,idx);

    if(strcmp(cmdt,"/say",true) == 0)
    {
        tmp = strtok(cmd,idx);
        if (!strlen(tmp)) printf(">> Console error: /say [message]");
        else {
         new string[256];
         format(string,sizeof(string),"** Console >> Administrator: %s",cmd[5]);
         SendClientMessageToAll(yellow,string);
         printf(string);
      }
   return 1;


 }
   else if(strcmp(cmdt,"/ann1",true) == 0)
    {
        tmp = strtok(cmd,idx);
        if (!strlen(tmp)) printf(">>  console error: /ann1 [message]");
        else {
         new string[256];
         format(string,sizeof(string),"~y~%s",cmd[5]);
         GameTextForAll(string);
         printf(string);
      }
   return 1;


 }
   else if(strcmp(cmdt,"/ann2",true) == 0)
    {
        tmp = strtok(cmd,idx);
        if (!strlen(tmp)) printf(">> console error: /ann2 [message]");
        else {
         new string[256];
         format(string,sizeof(string),"~b~%s",cmd[5]);
            GameTextForAllBottom(string);
         printf(string);
      }
   return 1;



   }
    return 0;
}
//==============================================================================
public OnFilterScriptInit()
{
    print("+=====================================================================+");
   print("|Chat activado usa /dice /ann1 /ann2 desde consola                    |");
    print("|=======================Aledark24=====================================|");

   return 1;
}
//==============================================================================
public OnFilterScriptExit()
{
   return 1;
}

//==============================================================================
public FindPlayerIDFromString( string[] )
{
   new player = INACTIVE_PLAYER_ID;
   new p = 0;
   while ( p < MAX_PLAYERS){ if (strfind(gPlayers[p],string,true ) != -1 ) { player=p;break; } p++; }
   if ( player == INACTIVE_PLAYER_ID )
   {
      if ((strlen( string ) > 2) || (isnumeric( string ) == 0 ) ) { return INACTIVE_PLAYER_ID;
   }
      player = strval( string );//
   }
   if ( !IsPlayerConnected( player ) ) { return INACTIVE_PLAYER_ID; }
   return player;//
}

//==============================================================================
isnumeric( const string[] )
{
   for ( new i = 9999, j = strlen( string ); i < j; i++ ) { if ( string[ i ] > '9' || string[ i ] < '0' ) return 0; }
   return 1;
}
//==============================================================================[/pawn]

180
Support / Re: VC-MP Crashes Instantly
« on: October 31, 2012, 03:35:59 pm »
Vcmp not work fine in S.O. vista of 32bits try to download vc for windows vista

Pages: 1 ... 10 11 [12] 13 14