Moveable Gates HELP
#2

hello!

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;
    }
}
Reply


Messages In This Thread
Moveable Gates HELP - by necrobg3 - 19.08.2012, 14:00
Re: Moveable Gates HELP - by avivelkayam - 19.08.2012, 14:15
Re: Moveable Gates HELP - by necrobg3 - 19.08.2012, 14:27

Forum Jump:


Users browsing this thread: 2 Guest(s)