PutPlayerInVehicle problem
#4

Quote:
Originally Posted by manchestera
Посмотреть сообщение
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?
Well if the vehicle is already occupied it simply won't put them in it.

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.
Reply


Messages In This Thread
PutPlayerInVehicle problem - by manchestera - 23.10.2011, 15:26
Re: PutPlayerInVehicle problem - by JaTochNietDan - 23.10.2011, 15:55
Re: PutPlayerInVehicle problem - by manchestera - 23.10.2011, 16:00
Re: PutPlayerInVehicle problem - by JaTochNietDan - 23.10.2011, 16:04
Re: PutPlayerInVehicle problem - by manchestera - 23.10.2011, 16:12
Re: PutPlayerInVehicle problem - by JaTochNietDan - 23.10.2011, 16:19
Re: PutPlayerInVehicle problem - by manchestera - 23.10.2011, 16:59
Re: PutPlayerInVehicle problem - by JaTochNietDan - 23.10.2011, 17:04
Re: PutPlayerInVehicle problem - by manchestera - 23.10.2011, 17:26
Re: PutPlayerInVehicle problem - by JaTochNietDan - 23.10.2011, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)