Car Models Question - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Car Models Question (
/showthread.php?tid=90080)
Car Models Question -
Zeromanster - 06.08.2009
Hello,
I've got 2 teams in my gamemode:
Army and
Drug Smugglers.
Both of them have cars, and i wanted to ask you this:
Could I change the
vehicle model without making a
gamemode restart/and without destroying the vehicle (just respawning).
Because I use things like
IsAnArmyVeh and
IsAnDSVeh so if i would destroy vehicles it would mess up the ID's.
Does anyone know how to do this ? Thank you.
Re: Car Models Question -
Joe Staff - 06.08.2009
If you immediately replace the vehicle once it's deleted then it's ID will remain the same. It will only change if you have deleted multiple vehicles with IDs lower than the formentioned vehicle.
Re: Car Models Question -
Sergei - 06.08.2009
If you make like this ID will stay the same:
pawn Код:
DeleteVehicle(vehicleid);
Createvehicle(...);