02.05.2012, 19:24
pawn Код:
if(!strcmp("/warusa", cmdtext, true))
{
if(GetPVarInt(playerid,"DisabledCMD") == 1) return SendClientMessage(playerid,COLOR_RED,"You can't use this command, you just used it!");
SetPlayerPos(playerid,2525,-1893,14);
SetPlayerFacingAngle(playerid,180);
SetPVarInt(playerid,"DisabledCMD",1);
SetTimer("DisabledCMD,your_time_here,0); //change the your_time_here to your time!
}
forward DisabledCMD(playerid);
public DisabledCMD(playerid)
{
SetPVarInt(playerid,"DisabledCMD",0);
SendClientMessage(playerid,COLOR_GREEN,"You can use the command again!");
}
