Vehicle on spawn - 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)
+--- Thread: Vehicle on spawn (
/showthread.php?tid=402512)
Vehicle on spawn -
UnknownGamer - 27.12.2012
Hey people,
Is there a way to assign a car id to a spawned car, like if i add createvehicle to script and I want that car id to be id 32 is their any such way?
Like /gotocar 32, will be my car?
Re: Vehicle on spawn -
Chrillzen - 27.12.2012
Make a variable for it.
pawn Код:
new mycar;
mycar = CreateVehicle(modelid, Float:x, Float:y, Float:z, Float:angle, color1, color2, respawn_delay);
And code the rest.
Re: Vehicle on spawn -
UnknownGamer - 27.12.2012
I mean if I spawn a car, instead of been ID 1/2 with no cars in game.