Dynamic Vehicle Issues
#8

Use your own id and try to match it with the car id, when you create "throwaway cars" don't increase so the next car takes it, but don't save with it unless you're restarting the server, cause it's not gonna be correct most of the times, or when you spawn a car after deleting one. like this
pawn Код:
new carid;

//Spawn a normal car

carid ++;//should match the normal id aslong as you didn't create any throwaways

//Spawn a throwaway car

nothing, so the next car takes this id, but don't save it cause it's just when you restart/respawn a car

//restart server

use the carid as the actual id, since the trowaway cars aren't going to respawn
You'll have to do some optimization (like when a normal car is destroyed normally, somebody blow it up), but you should get my idea
Reply


Messages In This Thread
Dynamic Vehicle Issues - by BornHuman - 18.07.2014, 02:59
Re: Dynamic Vehicle Issues - by GeekSiMo - 18.07.2014, 03:05
Re: Dynamic Vehicle Issues - by BornHuman - 18.07.2014, 03:09
Re: Dynamic Vehicle Issues - by BornHuman - 18.07.2014, 17:18
Re: Dynamic Vehicle Issues - by BornHuman - 20.07.2014, 18:50
Re: Dynamic Vehicle Issues - by Scottas - 20.07.2014, 20:09
Re: Dynamic Vehicle Issues - by Bob007 - 22.07.2015, 18:28
Re: Dynamic Vehicle Issues - by xVIP3Rx - 22.07.2015, 19:46
Re: Dynamic Vehicle Issues - by FrankTimber - 22.07.2015, 20:58
Re: Dynamic Vehicle Issues - by xVIP3Rx - 22.07.2015, 21:17

Forum Jump:


Users browsing this thread: 3 Guest(s)