20.07.2017, 07:55
You have to learn about timers. Consider the wiki.
PHP код:
CMD:cmdname(playerid, params[])
{
SetTimerEx("CommandTimer", Time, 0, "i", playerid); //Run a timer. When the command executes
return 1;
}
forward CommandTimer(playerid);
public CommandTimer(playerid)
{
//The things you want to do.
}