19.01.2015, 05:14
Quote:
Okey, you need to move it.. you need x,y,z open gates, ant close. simple example
new gates; public OnGameModeInit() gates = CreateObject(gatesID,x,y,z, 0.00000, 0.00000, 0.00000); } CMD: open(playerid, params[]) { MoveObject(gates, Open gates cords ,moving speed); GameTextForPlayer(playerid, "~R~ Opening!", 3000, 5); return 1; } |
Код:
new gates //defines the gates, place at the top of your gamemode //now move to OnGameModeInit() public OnGameModeInit() //our gamemode we're using { gates = CreateObject(gatesID, x, y, z); //You must include the X Y and X! } CMD:opengates(playerid, params[])// start of command { MoveObject(gates, X, Y, Z ,moving speed); //gates is what we defined and the moving speed must be added. return 1;// end of command }