Timer on my command?
#1

Hello guys.

I would REALLY REALLY REALLY appriciate (fail) if one of you could help me with this. I just got a /search
Command for my Zombie Server, but now i want a TIMER on it. This means that a player can only use this command
each 5 minutes. Could one of you edit it with that?

COMMAND: search(playerid,params[])
{
#pragma unused params
new rand;
rand = (5);
switch(random(rand) )
{
case 0: SetPlayerHealth(playerid,100);
case 1: SetPlayerArmour(playerid,100);
case 2: GivePlayerWeapon(playerid,24,500);
case 3: GivePlayerWeapon(playerid,30,500);
case 4: GivePlayerMoney(playerid,500);
case 5: GivePlayerMoney(playerid,1000);
}
return 1;
}

Please help me
Reply


Messages In This Thread
Timer on my command? - by CrazyManiac - 09.08.2012, 19:21
Re: Timer on my command? - by [KHK]Khalid - 09.08.2012, 19:39
Re: Timer on my command? - by CrazyManiac - 09.08.2012, 20:19
Re: Timer on my command? - by FalconX - 09.08.2012, 20:26
Re: Timer on my command? - by CrazyManiac - 09.08.2012, 20:41

Forum Jump:


Users browsing this thread: 1 Guest(s)