Automatic gate
#2

try this

PHP код:
forward areagatecheck();
public 
areagatecheck()
{
      for(new 
iMAX_PLAYERSi++)
      {
        if(
IsPlayerInRangeOfPoint(i15134.70611941.581421.6600))
        {
            if(
gTeam[i] == TEAM_Internationalforces)
            {
                  if(
areagate1o == false)
                   {
                    
MoveObject(areagate1121.60211941.584521.66005);
                    
areagate1o true;
                   }
            }
        }
        if(
IsPlayerInRangeOfPoint(i15205.49221730.351617.8281))
        {
            if(
gTeam[i] == TEAM_Internationalforces)
            {
                  if(
areagate2o == false)
                  {
                    
MoveObject(areagate2286.06971833.772019.96115);
                    
areagate2o true;
                  }
            }
        }
        if(!
IsPlayerInRangeOfPoint(i15134.70611941.581421.6600))
        {
                if(
areagate1o == true)
                {
                    
MoveObject(areagate1134.70611941.581421.66005);
                    
areagate1o false;
                }
        }
        if(!
IsPlayerInRangeOfPoint(i15205.49221730.351617.8281))
        {
                  if(
areagate2o == false)
                  {
                    
MoveObject(areagate2286.06971833.772019.96115);
                    
areagate2o true;
                  }
        }

Reply


Messages In This Thread
Automatic gate - by GeneralAref - 30.12.2015, 13:48
Re: Automatic gate - by IceBilizard - 30.12.2015, 14:16
Re: Automatic gate - by GeneralAref - 30.12.2015, 15:15
Re: Automatic gate - by IceBilizard - 30.12.2015, 15:18
Re: Automatic gate - by GeneralAref - 30.12.2015, 17:00

Forum Jump:


Users browsing this thread: 1 Guest(s)