21.12.2013, 18:55
Then use it in OnPlayerCommandReceived callback.
Something like that should work:
Something like that should work:
pawn Код:
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if (gettime() - Player_ACS[playerid] < 3)
{
SendClientMessage(playerid, 0xFF0000FF, "You must wait 3 seconds before using command again.");
return 0;
}
Player_ACS[playerid] = gettime();
return 1;
}