25.02.2010, 10:25
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
public OnGameModeInit()
top of script
Код:
new brandongate1;
Код:
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; }