24.02.2013, 17:32
Код:
#include <a_samp> new Gate; public OnGameModeInit() { Gate = CreateObject(968,2467.5000000,-1663.1999512,13.1000004,0.0000000,270.0000000,271.9999695); } public OnPlayerCommandText(playerid, cmdtext[]) } if(strcmp(cmd, "/opengate", true) == 0) { MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004,0.0000000, 1); } SendClientMessage(playerid, COLOR_YELLOW, "The gate is open."); return 1; } if(strcmp(cmd, "/closegate", true) == 0) { MoveObject(Gate, 2467.5000000,-1663.1999512,13.1000004, 1); } SendClientMessage(playerid, COLOR_YELLOW, "The gate is closed.");