13.10.2012, 17:18
here :
Code:
new Gate1; public OnGameModeInit() { Gate1 = CreateObject(986, 3925.7256, 3417.4690, 27.4700, 313.4052, 0.0, 0.0); } public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/opengate")) { MoveObject(Gate1, 3925.7256, 3417.4690, 27.4700, 10.0); return 1; } if(!strcmp(cmdtext, "/closegate")) { MoveObject(Gate1, 3925.7256, 3417.4690, 27.4700, 10.0); return 1; } return 0; }