Gate problem
#1

I have a gate that i made to test the open/close function. But the commands dont make it move. Help please if you can.

top of script
Код:
new brandongate1;
public OnGameModeInit()
Код:
brandongate1 = CreateObject(969, 1530.947265625, 96.14453125, 28.636119842529, 0, 0, 25.801391601563);
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext,"/opengate",true))//Will open your gates
	{
  MoveObject(brandongate1, 1538.9044189453, 100.001953125, 28.584012985229, 2.5);
  return 1;
	}
	if(!strcmp(cmdtext,"/closegate",true))//Will close your gates
	{
  MoveObject(brandongate1, 1530.947265625, 96.14453125, 28.636119842529, 2.5);
  return 1;
	}
  return 0;
}
Reply


Messages In This Thread
Gate problem - by RoneyRemington - 25.02.2010, 10:25
Re: Gate problem - by aircombat - 25.02.2010, 10:30
Re: Gate problem - by RoneyRemington - 25.02.2010, 10:41
Re: Gate problem - by RoneyRemington - 25.02.2010, 10:52

Forum Jump:


Users browsing this thread: 1 Guest(s)