24.06.2012, 07:30
You have to check for it, obviously. For the cmd, check
if(govon==1) return 0;
or whatever, and then use a pre-defined timer:
if(govon==0){if(IsCop(playerid)||etc){SetTimer("Go vTime",etc.); govon=1;}}
Later, you forward GovTime(playerid);
public GovTime(playerid)
{
KillTimer(GovTimer);
govon =0;
}
Simple as that.
if(govon==1) return 0;
or whatever, and then use a pre-defined timer:
if(govon==0){if(IsCop(playerid)||etc){SetTimer("Go vTime",etc.); govon=1;}}
Later, you forward GovTime(playerid);
public GovTime(playerid)
{
KillTimer(GovTimer);
govon =0;
}
Simple as that.