23.06.2010, 05:55
What about using a variable?
new CanUseOOC[MAX_PLAYERS];
SetTimerEx("HasGateOpen", 3000, 0, "d", playerid);
CanUseOOC[playerid] =1;
forward CanUseO(playerid)
public CanUseO(playerid)
{
CanUseOOC[playerid] = 1;
return 1;
}
if(strcmp(cmd, "/o", true) == 0)
{
if(CanUseOOC[playerid] == 1);
{
Work something out.
new CanUseOOC[MAX_PLAYERS];
SetTimerEx("HasGateOpen", 3000, 0, "d", playerid);
CanUseOOC[playerid] =1;
forward CanUseO(playerid)
public CanUseO(playerid)
{
CanUseOOC[playerid] = 1;
return 1;
}
if(strcmp(cmd, "/o", true) == 0)
{
if(CanUseOOC[playerid] == 1);
{
Work something out.