Author Topic: Complete Food system by aledark24  (Read 5859 times)

0 Members and 1 Guest are viewing this topic.

Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
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]
« Last Edit: November 17, 2012, 06:52:54 pm by aledark24 »
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Complete Food system by and "smoke" system
« Reply #1 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]








« Last Edit: November 10, 2012, 05:32:23 pm by aledark24 »
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline MatheuS

  • Made Man
  • ***
  • Posts: 207
  • Pawn And Squirrel Scripter
    • View Profile
    • Brazillian Community
Re: Complete Food system by aledark24
« Reply #2 on: November 10, 2012, 06:18:56 pm »
Gracias  8)

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: Complete Food system by aledark24
« Reply #3 on: November 10, 2012, 07:04:30 pm »
Poor english, rest is decent.
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Complete Food system by aledark24
« Reply #4 on: November 10, 2012, 07:18:07 pm »
Poor english, rest is decent.


wtf you are very stupid ....


que tal mi ingles ahora!
« Last Edit: November 10, 2012, 11:23:44 pm by aledark24 »
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: Complete Food system by aledark24
« Reply #5 on: November 10, 2012, 08:15:04 pm »
Nice script ;)

"whrite" is "write" and "marihuana" is "marijuana" :P

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Complete Food system by aledark24
« Reply #6 on: November 10, 2012, 11:19:10 pm »
Nice script ;)

"whrite" is "write" and "marihuana" is "marijuana" :P

jeje  ;D my language is Spanish  :-[ i translate to English very fast in my head,
i don't know all words in English
but thank you sseebbyy
« Last Edit: November 10, 2012, 11:25:19 pm by aledark24 »
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Complete Food system by aledark24
« Reply #7 on: November 11, 2012, 03:08:36 am »
This script is too large to be a "snippet." Please make this a filterscript and post it in the Pawn Showroom.
Do not PM me for support.




Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Complete Food system by aledark24
« Reply #8 on: November 11, 2012, 04:47:02 am »
This script is too large to be a "snippet." Please make this a filterscript and post it in the Pawn Showroom.
The command not is large only is different forms for all script i make one filterscript but only working in script from 0 because not discount the real money from the account of the player.
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint

Offline NeskWriter

  • Crime Boss
  • ****
  • Posts: 355
    • View Profile
Re: Complete Food system by aledark24
« Reply #9 on: November 11, 2012, 02:16:55 pm »
Nice script ;)

"whrite" is "write" and "marihuana" is "marijuana" :P

jeje  ;D my language is Spanish  :-[ i translate to English very fast in my head,
i don't know all words in English
but thank you sseebbyy

All the more you should speak english like it's your native lang


-Funniest quotes-

Quote from: asad3man
i cant able to understand

Offline stormeus

  • VC:MP Developer
  • VC:MP Veteran
  • *
  • Posts: 1122
    • View Profile
Re: Complete Food system by aledark24
« Reply #10 on: November 11, 2012, 09:52:07 pm »
The command not is large only is different forms for all script i make one filterscript but only working in script from 0 because not discount the real money from the account of the player.

I consider it too large when I can't merge the two posts you made for this because it's larger than 20,000 characters. Please consider making this a filterscript instead.
Do not PM me for support.




Offline aledark24

  • Made Man
  • ***
  • Posts: 206
  • I am a scripter and you have celous of me....so you crashed my servers
    • View Profile
Re: Complete Food system by aledark24
« Reply #11 on: November 12, 2012, 01:53:04 am »
Ok but not have internet in my house
this reply is from my cellphone
i change when go tothe ciber
I am a great scripter and you are celous of my works
.....

Vice City Life Multiplayer By Saint