Random Position
#2

PHP код:
new cps[][] = //An array for holding the pos of our cps
{
     {
xyz}, //for first
     
{xyz//for second
};
new 
rand Random(sizeof(cps)); //random the size of cps, in this case 2. And put it in variable rand
SetPlayerRaceCheckpoint(playerid1cps[rand][0], cps[rand][1], cps[rand][2], 0005.0); 
Reply


Messages In This Thread
Random Position - by silverms - 21.04.2017, 16:54
Re: Random Position - by coool - 21.04.2017, 17:02
Re: Random Position - by silverms - 21.04.2017, 17:32
Re: Random Position - by Toroi - 21.04.2017, 18:19
Re: Random Position - by oktokt1 - 21.04.2017, 20:39

Forum Jump:


Users browsing this thread: 1 Guest(s)