01.07.2009, 11:01
it can be done with a variable.
sorry it's messy but if you edit it properly it hsould work. this is just the principle how it should be like
pawn Код:
//On top of script
new CommandUsed[MAX_PLAYERS];
// command
if(strcmp(...)==0)
{
if(CommandUsed[playerid] == -1) return SendClientMessage(... /* command was used before, pleae wait this and that */);
//do command here
CommandUsed[playerid] = -1;
SetTimerEx("ResetCmd", 5000 /*5 seconds*/, 0 /* not repeating*/, "i", playerid /* this sets the first parameter of ResetCmd(i) to be playerid);
}
//ResetCmd(i)
{
CommandUsed[i] = 0;
}

