23.10.2011, 16:04
Quote:
The only problem i think i will have with that is if 2 or 3 people do the challange at the same time they will lose there vehicle if im not mistaken?
|
If multiple people can do the challenge, then it might be a good idea to simply create a vehicle for them specifically for the challenge and then destroy it later, or else you could make a variable to track if the vehicle is taken or not and if it is, put them in the next available vehicle.
I saw you edited your post too, if you wanted to check if the player was in a certain vehicle, you would use GetPlayerVehicleID and GetVehicleModel on the ID returned by GetPlayerVehicleID, then simply compare that to your model ID of choice.