SA-MP Forums Archive
How to make a airport gates same like single player? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to make a airport gates same like single player? (/showthread.php?tid=582902)



How to make a airport gates same like single player? - Hotspot - 24.07.2015

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


Re: How to make a irport gates same like single player?;););););) - CodeStyle175 - 24.07.2015

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;




Re: How to make a irport gates same like single player?;););););) - Hotspot - 24.07.2015

thanks for fast reply

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




Re: How to make a airport gates same like single player? - Hotspot - 28.08.2015

why my other posts get removed

plz tell me