09.12.2009, 21:24
How can i move gates in filter script?
Originally Posted by turky
How can i move gates in filter script?
|
Top of script- new gate1; OnPlayerCommandText- if(strcmp(cmdtext, "/open1", true) == 0)//open gates { MoveObject(gate1,X,Y,Z, GATE SPEED);//cordinates open gate SendClientMessage(playerid,COLOR_WHITE," Gate Opening!"); return 1; } if(strcmp(cmdtext,"/close1",true)==0)//close gates { MoveObject(gate1, X,Y,Z, GATE SPEED);//cordinates open gate SendClientMessage(playerid,COLOR_WHITE," Gate Closed"); return 1; } Make sure under create objects you put OnGameModeInt gate1 = CreateObject(id,cords,etc) note that this has to be your closed gate