21.04.2017, 17:02
PHP код:
new cps[][] = //An array for holding the pos of our cps
{
{x, y, z}, //for first
{x, y, z} //for second
};
new rand = Random(sizeof(cps)); //random the size of cps, in this case 2. And put it in variable rand
SetPlayerRaceCheckpoint(playerid, 1, cps[rand][0], cps[rand][1], cps[rand][2], 0, 0, 0, 5.0);