Automatic gate
#1

i have this but gate 2 not works.how to fix it?
PHP код:
forward areagatecheck();
public 
areagatecheck()
{
      for(new 
iMAX_PLAYERSi++)
      {
        if(
IsPlayerInRangeOfPoint(i15134.70611941.581421.6600))
        {
            if(
gTeam[i] != TEAM_Internationalforces) return;
              if(
areagate1o == false
              {
                    
MoveObject(areagate1121.60211941.584521.66005);
                
areagate1o true;
              }
              return;
        }
        else if(
IsPlayerInRangeOfPoint(i15205.49221730.351617.8281))
        {
            if(
gTeam[i] != TEAM_Internationalforces) return;
              if(
areagate2o == false)
              {
                    
MoveObject(areagate2286.06971833.772019.96115);
                
areagate2o true;
              }
              return;
        }
        return;
      }
      if(
areagate1o == true)
      {
        
MoveObject(areagate1134.70611941.581421.66005);
        
areagate1o false;
        return;
      }
      if(
areagate2o == true)
      {
        
MoveObject(areagate2205.49221730.351617.82815);
        
areagate2o false;
        return;
      }
      return;

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)