Getting last vehicle id player was in.
#6

i bet he wont need a distance check looped for all vehicles. who will exit his car in angel pine, walk up to KACC fuels, and try to open the trunk 5 hours later, after walking 10 miles?
setting the last entered vehicle is the way to go with.
if the vehicleid got stored in LastVehicle[playerid], then this variable can be used with GetVehiclePos(LastVehicle[playerid],X,Y,Z), and then checked for being IsPlayerInRangeOfPoint(playerid,5,X,Y,Z). no need for any loops.
Reply


Messages In This Thread
Getting last vehicle id player was in. - by Dokins - 12.03.2012, 23:18
Re: Getting last vehicle id player was in. - by ddnbb - 12.03.2012, 23:31
Re: Getting last vehicle id player was in. - by eesh - 13.03.2012, 04:04
Re: Getting last vehicle id player was in. - by ddnbb - 13.03.2012, 10:28
Re: Getting last vehicle id player was in. - by ddnbb - 13.03.2012, 10:31
Re: Getting last vehicle id player was in. - by Babul - 13.03.2012, 10:51
Re: Getting last vehicle id player was in. - by ddnbb - 13.03.2012, 11:01
Re: Getting last vehicle id player was in. - by Babul - 13.03.2012, 11:11
Re: Getting last vehicle id player was in. - by ddnbb - 13.03.2012, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)