Gate timer
#1

Hey

I need a gate that when you open it, that it closed automatic after 3 sec

here is what I already got:

OnPlayerCommandText
Код:
	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;
	}
This works, It closes and opens normal, but now I try to upgrade it so that it closes automatic after 3 sec.

Thanks
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)