10.11.2014, 19:18
Hello guys, could you please help me with a little cooldown timer, i was woundering if someone could help me put a cool down timer in this code
If you can thank you!
Код:
PCMD:pclass(playerid, params[]) { if(pInfo[playerid][PremiumLevel] < 1) return SCM(playerid, red, "You are not premium, read /premium to see information"); GivePlayerWeapon(playerid, 24, 120);//Deagle GivePlayerWeapon(playerid, 9, 1);//chainsaw GivePlayerWeapon(playerid, 31, 500);//M4 GivePlayerWeapon(playerid, 28, 800);//Micro GivePlayerWeapon(playerid, 26, 500);//sawnoff GivePlayerWeapon(playerid, 34, 120);//Sniper SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SCM(playerid, -1, "[Premium]: You have chosen premium class"); return 1; }