22.05.2011, 12:23
Код:
#include <a_samp> new aGate; public OnGameModeInit() { SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); aGate = CreateObject(969,2482.2783,-1688.2960,13.5078,175.3654,0.00000000,0.00000000,9 0.00000000); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp ("/gate", cmdtext, true) == 0) } MoveObject(aGate, 2482.2783,-1688.2960,13.5078,2);//This will move the gate return 1; { if(strcmp ("/closegate", cmdtext, true) == 0) } MoveObject(aGate, 2482.2783,-1688.2960,13.5078,2);//This will move the gate back to the old position return 1; } return 0; }