// Filterscript Information: // - Name: Airport Gate // - Date: 07 February 2008 // - Author: TigerTails // // For questions join #Tiger on irc.gtanet.com // Credit goes to someone else for PointToPoint, I don't know who.. #include // Variables new lsapg1, lsapg2; new sf1apg1, sf1apg2; new sf2apg1, sf2apg2; new lvapg1, lvapg2; // Forwards forward CloseAPGate(airportid, playerid); forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z); forward CheckAPGates(); public OnGameModeInit() { lsapg1 = CreateObject(988, 1964.342, -2189.776, 13.533, 0, 0, 180.0); lsapg2 = CreateObject(988, 1958.851, -2189.777, 13.553, 0, 0, 180.0); sf1apg1 = CreateObject(988, -1543.742, -432.703, 6.039, 0, 0, -45.0); sf1apg2 = CreateObject(988, -1547.625, -428.82, 6.039, 0, 0, -45.0); sf2apg1 = CreateObject(988, -1222.953, 53.826, 14.134, 0, 0, -135.0); sf2apg2 = CreateObject(988, -1218.206, 68.883, 14.134, 0, 0, -135.0); lvapg1 = CreateObject(988, 1704.777, 1605.165, 10.058, 0, 0, 73.0); lvapg2 = CreateObject(988, 1706.364, 1610.422, 10.058, 0, 0, 73.0); SetTimer("CheckAPGates", 1000, 1); return 1; } public CheckAPGates() { for(new i=0; i -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { return 1; } } return 0; }