Need help to put timer on CMD
#1

Код:
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;
}
the Problem is timer not working..
Reply


Messages In This Thread
Need help to put timer on CMD - by MBilal - 02.03.2015, 21:36
Re: Need help to put timer on CMD - by wooolly - 02.03.2015, 21:40
Re: Need help to put timer on CMD - by MBilal - 02.03.2015, 21:45

Forum Jump:


Users browsing this thread: 1 Guest(s)