Gate timer
#3

I got no error, but still it doesn't work

Код:
	if(strcmp("/aopen", cmdtext, true, 7) == 0)
	{
		MoveObject(agate,321.292,-1188.194,71.049,5.0);
		SendClientMessage(playerid, 0xAA3333AA, "Close the gate by typing: '/aclose' or by waiting 3 sec.");
		return 1;
	}
	if(strcmp("/aclose", cmdtext, true, 8) == 0)
	{
		MoveObject(agate,321.292,-1188.194,78.049,5.0);
		SendClientMessage(playerid, 0xAA3333AA, "You have closed the gate");
		return 1;
	}
	return 0;
}


public CloseGate()
{
  SetTimer("CloseGate", 3000, 0);
  MoveObject(agate,321.292,-1188.194,78.049,5.0);
  return 1;
}
Reply


Messages In This Thread
Gate timer - by Black Souls - 19.06.2009, 14:04
Re: Gate timer - by Vince - 19.06.2009, 14:07
Re: Gate timer - by Black Souls - 19.06.2009, 14:14
Re: Gate timer - by Black Souls - 19.06.2009, 15:09
Re: Gate timer - by Vince - 19.06.2009, 16:04
Re: Gate timer - by Serediucr - 19.06.2009, 16:05
Re: Gate timer - by Black Souls - 20.06.2009, 12:25
Re: Gate timer - by Grim_ - 20.06.2009, 12:28
Re: Gate timer - by Black Souls - 20.06.2009, 12:29
Re: Gate timer - by Black Souls - 20.06.2009, 12:31

Forum Jump:


Users browsing this thread: 1 Guest(s)