19.08.2012, 14:15
hello!
you can do it like this:
you can do it like this:
Код:
new bool:OpenGate; new Area51Gate; // on top Area51Gate = CreateObject(988, 96.800003051758, 1920.4000244141, 17.299999237061, 0, 0, 268.5); //ongamemodeinit OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/MoveGate",true)) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: You are not authorised to use that command."); if(!OpenGate) { OpenGate = true; MoveObject(Area51Gate, 96.800003051758, 1920.4000244141, 13, 3); } else { OpenGate = false; MoveObject(Area51Gate, 96.800003051758, 1920.4000244141, 17.299999237061, 3); } return 1; } }