11.05.2012, 07:12
So, if I were in Las Venturas Airport and I type /w (work cmd) how would i get a new mission from here:
and it picks out the nearest Airport (so if i am flying near in LS, it would get a new mission from Ls airport, and if i were to fly around lv, it would get the mission from Lv airport)
how would i do that? any Examples, or tutorials on how to get the nearest airport / location?
PHP код:
//LVA to LSA
{"Las Venturas Airport Gate 1 to Los Santos Airport Gate 1 with 31 Passengers", false,24356,1580.8203,1533.4772,10.8324,1727.2162,-2412.8289,13.5547},
{"Las Venturas Airport Gate 1 to Los Santos Airport Gate 1 with 29 Passengers", false,23089,1580.8203,1533.4772,10.8324,1727.2162,-2412.8289,13.5547},
{"Las Venturas Airport Gate 1 to Los Santos Airport Gate 1 with 17 Passengers", false,22783,1580.8203,1533.4772,10.8324,1727.2162,-2412.8289,13.5547},
//LSA TO LVA
{"Los Santos Airport Gate 1 to Las Venturas Airport Gate 1 with 61 Passengers", false,25349,1727.2162,-2412.8289,13.5547,1580.8203,1533.4772,10.8324},
{"Los Santos Airport Gate 1 to Las Venturas Airport Gate 1 with 53 Passengers", false,22000,1727.2162,-2412.8289,13.5547,1580.8203,1533.4772,10.8324},
{"Los Santos Airport Gate 1 to Las Venturas Airport Gate 1 with 34 Passengers", false,22984,1727.2162,-2412.8289,13.5547,1580.8203,1533.4772,10.8324},
how would i do that? any Examples, or tutorials on how to get the nearest airport / location?