07.06.2009, 11:23
Don't really know how efficient this is but ought to work (not tested):
Код:
new StopKwak[MAX_PLAYERS]; //at the top of your script forward AllowKwak(playerid);
Код:
OnPlayerText(playerid, text[])
{
if(!strcmp(text, "kwakbox",false, 7))
{
if(StopKwak[playerid] == 0)
{
StopKwak[playerid] = 1;
SetTimerEx("AllowKwak", 300000, false, "i", playerid);
}
else
{
SendClientMessage(playerid, 0xFF0000, "Please wait 5 minutes before saying kwakbox again!");
return 0;
}
}
return 1;
}
Код:
public AllowKwak(playerid) //anywhere in your script
{
StopKwak[playerid] = 0;
}

