I wrote a simple spawn script for players to use and I need to refine it so the players stop spamming the feature. Players can spawn a vehicle in every 5 mins and the vehicle is then deleted, but the players found that if they log out and then back in, the vehicle stays on the server. I need an global Array to add newly spawned vehicles to a list and a eventhandler to update the list on the client/server side and when the player logs out, I can exe. a script to access the array, ID the player and deletevehicle from the array and remove that element.
_spwnd = [playerID, _vehicle];
SpawnedObjects = [_spwnd,_spwnd];
or
SpawnedObjects = [[playerID, _vehicle],[playerID, _vehicle],[playerID, _vehicle]]
Im familiar with arrays but not eventhandlers, any help plz!
_spwnd = [playerID, _vehicle];
SpawnedObjects = [_spwnd,_spwnd];
or
SpawnedObjects = [[playerID, _vehicle],[playerID, _vehicle],[playerID, _vehicle]]
Im familiar with arrays but not eventhandlers, any help plz!