SA-MP Forums Archive
lil help - 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: lil help (/showthread.php?tid=240803)



lil help - tanush - 16.03.2011

I made a dialog for CMD:v, so how do i make if admin spawn vehicle. it will be random colour?


Re: lil help - austin070 - 16.03.2011

Top of script:

pawn Код:
new RandColor;
OnGameModeInit:

pawn Код:
RandColor = random(126);
On the CreateVehicle part of the /v dialog put RandColor as the color integer of the parameters.

EDIT: This will make the cars the same random color. Try this post: https://sampforum.blast.hk/showthread.php?tid=83995