ASK CMD
#4

Something like this, on top of script:
Код:
new commandcd[MAX_PLAYERS];
when player use command:
Код:
if(commandcd[playerid] == 1) return SendClientMessage(playerid, -1, "Wait 20 mins.");
commandcd[playerid] = 1;
SetTimerEx("command", 1000*60*20, false, "i", playerid);
on the last line:
Код:
forward command(playerid);
public command(playerid)
{
commandcd[playerid] = 0;
return 1;
}
Reply


Messages In This Thread
ASK CMD - by [IND]Crazy - 01.04.2014, 16:27
Re: ASK CMD - by Sithis - 01.04.2014, 16:30
Re: ASK CMD - by [IND]Crazy - 01.04.2014, 16:32
Re: ASK CMD - by CroM256 - 01.04.2014, 16:36
Re: ASK CMD - by Sithis - 01.04.2014, 16:40
Re: ASK CMD - by Konstantinos - 01.04.2014, 17:15
Re: ASK CMD - by [IND]Crazy - 01.04.2014, 17:30

Forum Jump:


Users browsing this thread: 2 Guest(s)