06.11.2010, 03:31
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/command", cmdtext, true, 9) == 0)
{
if(GetPVarInt(playerid,"WAITBEFOREUSINGITAGAIN")>GetTickCount())return SendClientMessage(playerid,Colour,"ERROR : You must wait before using a command");
SetPVarInt(playerid,"WAITBEFOREUSINGITAGAIN",GetTickCount()+5000); // 1000 = 1 secs
// Put some codes here
}
return 1;
}
EDIT : Oh shi... Better look at the time and date next time >.>