12.02.2013, 10:45
I did it otherwise. So, whenever a player buys a car, it makes a .ini file to store all his data. Make a new line named CarID or something. Then, when a player buys a car/connects, you make a new car. But store that under a variable, something like this:
Then you write the carid in the .ini file of the player, like:
Something like that. Now the CarID in the player's .ini file is an unique car id! (I think..)
pawn Код:
new carid = CreateVehicle(... //your things here)
pawn Код:
INI_WriteInt(File,"CarID", carid);