20.09.2010, 18:28
I have a script like this, it works fine.
but how could i make that after player writes /eat he needs to wait 3 seconds to write /eat again (so that "FOOD", "EAT_Burger" animation finishes)
Код:
if(!strcmp("/eat", cmdtext,true)) { if(!IsPlayerInRangeOfPoint(playerid, 2.0, 240.1804,1117.3380,1080.9922))return SendClientMessage(playerid, 0xFF9900AA,"You are not in /eat checkpoint."); { ApplyAnimation(playerid, "FOOD", "EAT_Burger", 3.0, 0, 0, 0, 0, 0,1); new Float:health; GetPlayerHealth(playerid,health); SetPlayerHealth(playerid, health+20); return 1; }