09.08.2012, 19:21
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
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