Select random route
#1

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 }
};
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)