Gate open / Close HELP!
#5

Quote:
Originally Posted by Ma
Посмотреть сообщение
Place below "#include <a_samp>"

Код:
new Gate1;
Place in "public OnGameModeInit()"

Код:
Gate1 = CreateObject(987, 3180.2431640625, -1987.5537109375, 12.356931686401, 0.000000, 0.000000, 269); // [closed]
Place in "public OnPlayerCommandText(playerid, cmdtext[])"

Код:
if (strcmp("/gate", cmdtext, true, 10) == 0)
	{
    if (gate == 0)
    {
		MoveObject(Gate1, 3180.2431640625, -1987.5537109375, 12.356931686401, 4.5000);
		gate=1;
		}else{
		MoveObject(Gate1, 3180.1784667969, -1998.6683349609, 12.26300239563, 4.5000);
		gate=0;
		return 1;
	}
	}
That will get the job done.
you forgot to assign variable
Reply


Messages In This Thread
Gate open / Close HELP! - by Karl115 - 09.02.2010, 08:04
Re: Gate open / Close HELP! - by Ma - 09.02.2010, 10:03
Re: Gate open / Close HELP! - by Karl115 - 09.02.2010, 10:19
Re: Gate open / Close HELP! - by windartist - 05.08.2011, 17:12
Re: Gate open / Close HELP! - by [MG]Dimi - 05.08.2011, 17:57

Forum Jump:


Users browsing this thread: 2 Guest(s)