17.10.2013, 23:57
hi guys , im now scripting pickup script but i want to know how to set timer to use this pickup again because when i just pickup pickup it spams abuse for example
ty
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
PHP код:
if(pickupid == armourz)
{
if(GetPlayerMoney(playerid) < 3000) return GameTextForPlayer(playerid,"~r~You don't have enough money to buy armour",3000,5);
else if(GetPlayerMoney(playerid) >= 3000) GivePlayerMoney(playerid,-3000) && SetPlayerArmour(playerid,100);
}
![Smiley](images/smilies/smile.png)