17.06.2015, 00:47
Quote:
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. |
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?