#8

for me I use.
PHP код:

new AdminGate1;
new 
AdminGate2;
new 
AdminGatesMove[MAX_PLAYERS];
//under onplayerupdate
    //AdminGates move
    
if(IsPlayerInRangeOfPoint(playerid7.0, -82.88,-1648.43,3.64))
    {
      if(
PlayerInfo[playerid][pAdmin] > 9)
      {
         
AdminGatesMove[playerid] =3;
      }
    }
//Create a timer for one second.
//post this under it
      
if(AdminGatesMove[i] > 1//move it down (whereever u want)
      
{
         
MoveObject(AdminGate1, -79.4000015,-1647.1999512,-2.59999995.00.0000000,0.0000000,196.0000000);
         
MoveObject(AdminGate2, -87.0000000,-1649.4000244,-2.5999999,5,0.0000000,0.0000000,196.0000000);
         
AdminGatesMove[i]--;
      }
      if(
AdminGatesMove[i] == 1// back to it's original spot
      
{
         
MoveObject(AdminGate1, -79.4000015,-1647.1999512,5.7999999,5,0.0000000,0.0000000,196.0000000);
         
MoveObject(AdminGate2, -87.0000000,-1649.4000244,5.7999999,5,0.0000000,0.0000000,196.0000000);
         
AdminGatesMove[i] =-1;
      } 
that's from my server, hope that helps
of course add the gates under ongamemodeinit AdminGate1 = createobject.........
Reply


Messages In This Thread
Help - by CSLangdale - 29.03.2016, 19:11
Re: Help - by Crystallize - 29.03.2016, 19:21
Re: Help - by CSLangdale - 30.03.2016, 08:16
Re: Help - by Sjn - 30.03.2016, 08:48
Re: Help - by CSLangdale - 30.03.2016, 13:54
Re: Help - by Mencent - 30.03.2016, 13:56
Re: Help - by Untonyst - 30.03.2016, 14:37
Re: Help - by Vanter - 30.03.2016, 14:46
Re: Help - by CSLangdale - 30.03.2016, 16:11
Re: Help - by CSLangdale - 31.03.2016, 15:07

Forum Jump:


Users browsing this thread: 1 Guest(s)