SA-MP Forums Archive
Set a player in a random vehicle? - 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: Set a player in a random vehicle? (/showthread.php?tid=148257)



Set a player in a random vehicle? - rbN. - 16.05.2010

How could you make that a player goes in a vehicle that is randomly chosen?


Re: Set a player in a random vehicle? - juice.j - 16.05.2010

Use random(max); (https://sampwiki.blast.hk/wiki/Random) in the range of different vehicle ids you have.