02.03.2015, 21:36
Код:
new ptimer[MAX_PLAYERS];
CMD:test(playerid, params[])
{
if(pCMD[playerid]==0)
{
//CMD code there..
pCMD[playerid]=1;
ptimer[playerid] = SetTimerEx("CMDSPAWN", 60000, false,"i", playerid);
}
else{
SCM(playerid, COLOR_YELLOW,"You need to wait 60 sec to use this CMD again!");
}
return 1;
}
forward CMDSPAWN(playerid);
stock CMDSPAWN(playerid)
{
KillTimer(ptimer[playerid]);
pCMD[playerid]=0;
return 1;
}

