13.01.2013, 20:47
(
Последний раз редактировалось Fernado Samuel; 04.10.2013 в 18:00.
)
Removed
Command:buy(playerid,params[])
{
if(choclate >= 1)//if he have 1 or more
{
GivePlayerMoney(playerid,5);
choclate --;//subtract 1
}
}
new choclate[MAX_PLAYERS]; // TOP OF SCRIPT Command:buy(playerid,params[]) { if(choclate[playerid] >= 1)//if he have 1 or more { GivePlayerMoney(playerid,5); choclate[playerid] --;//subtract 1 } }
if(chocolate >= 1)
{
GivePlayerWeapon(playerid, 26, 5);
chocolate--;
}
else SendClientMessage(playerid, -1, "You dont have enough chocolate");