Quote:
Originally Posted by justinkomnuga
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp(cmdtext, "/close", true) == 0) { MoveObject(obj, X, Y, Z, 5); SendClientMessage(playerid, 0xFF000000, "Gate is closing"); return 1; } return 0; }
|
X, Y, Z are the coords of the old position (where the object has been spawned mostly =P)