SA-MP Forums Archive
Select random route - 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: Select random route (/showthread.php?tid=342406)



Select random route - Why - 13.05.2012

Hello, I am currently creating a trucking filterscript for roleplay servers.

I am creating a LoadTruck function, and what I am wondering is how do I make it so it selects one of the random arrays of destinations?

pawn Код:
new Float:Destinations[5][3] = {
   
    { 2401.7175,-1506.1350,23.5402 },
    { 1191.0847,-888.5489,42.7969 },
    { -69.6424,-1162.2354,1.5007 },
    { 334.1184,-1340.1366,14.2125 },
    { 481.7301,-1533.2468,19.6644 }
};



Re: Select random route - Dolby - 13.05.2012

Use the wiki example: https://sampwiki.blast.hk/wiki/Random