10.07.2011, 11:32
Код:
if(strcmp(cmdtext, "/open", true) == 0) { MoveObject(gate, cordX, cordY, cordZ, speed); // Normally speed 1 is enough | For coords take the coords of your opened gate SendClientMessage(playerid, color, "Gate opened!"); }
Код:
if(strcmp(cmdtext, "/close'", true) == 0) { MoveObject(gate, cordX, cordY, cordZ, speed); // Normally speed 1 is enough | For coords take the coords of your closed gate SendClientMessage(playerid, color, "Gate closed!"); }