Per-player vehicles - Id's get mixed up (Car stealing problem)
#6

Quote:
Originally Posted by denNorske
Посмотреть сообщение
A dead vehicle is still using the slot of that vehicle id -
And I know that CreateVehicle isn't going to return a used ID, so I need to prevent destroying the old car, in case it is used by someone else.

But why would a car, that someone spawned; suddenly have another owner? Just, w00t?
That is my problem.

Player 0 spawns a car, and have it saved in his "spawnedcarid".
Player 1 Spawns his car, destroys id 0's car, and creates id 0's "spawnedcarid". (Aka; car is stolen)

I can do it the way you say, but wasn't exactly what i was thinking in first place.
Player 0 spawns a car, and have it saved in his "spawnedcarid".
We're all good for now.

Player 1 Spawns his car, destroys id 0's car, and creates id 0's "spawnedcarid". (Aka; car is stolen)
If player 1's vehicle is destroyed, then why don't you just reset their variable since their car is gone?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)