18.02.2017, 11:31
Thank you guys for response. It seems that I was just ignorant to not know "OnVehicleSpawn" existed for when the vehicle is respawned which was a big miss from me. I guess the problem will be solved from here on.
The core issue was that everytime a CreateVehicle had a respawn time they would make a timer be stuck forever looping on and on and a KillTimer would not solve it even if you went through all vehicle id's and killed their timers.
The idea of setting false on looping and just reapply SetTimer inside the forwarded timer function could work I suppose but that requires the timer's indexes to be reusable and from what I understood from people that wrote above and on previous page is that the indexing works a bit like MySQL's auto increment? If the index just becomes inactive and is reusable then that's really nice. Either way thank you guys for the response!
The core issue was that everytime a CreateVehicle had a respawn time they would make a timer be stuck forever looping on and on and a KillTimer would not solve it even if you went through all vehicle id's and killed their timers.
The idea of setting false on looping and just reapply SetTimer inside the forwarded timer function could work I suppose but that requires the timer's indexes to be reusable and from what I understood from people that wrote above and on previous page is that the indexing works a bit like MySQL's auto increment? If the index just becomes inactive and is reusable then that's really nice. Either way thank you guys for the response!