How to make a airport gates same like single player?
#1

I want to make airport gates that open and closes when player gets near, i mean comes in range that trigers the moveobject
I have made gates with commands /open and /close but now i want that it moves open and close gates automatically can someone tell me how to
what code can be used
Reply
#2

PHP код:
for(new iMAX_GATESi++){    
    if(!
IsPlayerInRangeOfPoint(playerid,15.0,gInfo[i][Pos][0],gInfo[i][Pos][1],gInfo[i][Pos][2]))continue;
    if(!
gInfo[i][Open]){
        
//gate open function 
        
gInfo[i][Open]=1;
    }else{
        
//gate close function  
        
gInfo[i][Open]=0;
    }
    break;

Reply
#3

thanks for fast reply

if you want rep then sorry casde it gives me error that you have given too much reputation

Reply
#4

why my other posts get removed

plz tell me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)