24.12.2015, 16:38
Hi, i don't ask here much but I'm mind boggled on this question..
When the player spawns his vehicle it assigns Vehicle[playerid] = createvehicle...
However I don't want to destroy the variable when the player leaves because then the vehicle would be destroyed and I couldn't make systems like breaking in scripts because the vehicleid isn't linked with the owner playerid..
But I don't want to destroy the variable and vehicle when the player leaves because if they crashed people in their car would destroy and would reset to the spawn point..
Fixes?
When the player spawns his vehicle it assigns Vehicle[playerid] = createvehicle...
However I don't want to destroy the variable when the player leaves because then the vehicle would be destroyed and I couldn't make systems like breaking in scripts because the vehicleid isn't linked with the owner playerid..
But I don't want to destroy the variable and vehicle when the player leaves because if they crashed people in their car would destroy and would reset to the spawn point..
Fixes?