17.01.2011, 18:01
name says it all, im working on a rp server but need help makeing a /n command that the player has to wait 30 seconds to use again unless they are a helper please help
new W30SEC;
CMD:n(playerid,params[])
{
if(GetPVarInt("UsedCmd" == 1))
{
SendClientMessage(playerid,-1,"Wait! N00B!");
}
SetPVarInt("UsedCmd",1);
W30SEC = SetTimer("Wait",30000,true);
SendClientMessage(playerid,-1,"Yay, it r work!");
return 1;
}
forward Wait();
public Wait()
{
SetPVarInt("USedCmd",0);
KillTimer(W30SEC);
return 1;
}