Random Colors car 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Random Colors car spawn (
/showthread.php?tid=104284)
Random Colors car spawn -
MB@ - 23.10.2009
How can i make an Random Color car spawn?
So if my car is white , when it destroyes it spawns at a random color like black or blue...
Re: Random Colors car spawn -
Peter_Corneile - 23.10.2009
pawn Код:
AddStaticVehicle(carid,X,Y,Z,A,-1,-1);
Just make the color id to -1
Re: Random Colors car spawn -
MB@ - 23.10.2009
Quote:
Originally Posted by ►Peter Corneile◄ [hugu-hosting.co.uk
]
pawn Код:
AddStaticVehicle(carid,X,Y,Z,A,-1,-1);
Just make the color id to -1
|
Wow easy
Thanks
Re: Random Colors car spawn -
Tigerbeast11 - 23.10.2009
Won't that make it the default colour?
Re: Random Colors car spawn -
Rzzr - 23.10.2009
Nopes, it will change the color every time it respawns.
Re: Random Colors car spawn -
Peter_Corneile - 23.10.2009
Quote:
Originally Posted by Tigerbeast11
Won't that make it the default colour?
|
It will make it default color for vehicles like Cop car , cop bike , ambulance , patriot , hunter , taxi etc...