Help With Random Checkpoints
#1

Код:
new Float:PaperBoyPoints[3][4] = {
{651.8204,-1619.4867,15.0000,256.8740},
{795.1389,-1691.2811,14.4633,185.0004},
{1237.6108,-1582.6001,13.4683,185.8803}
};
i want to set a random checkpoint with SetPlayerCheckpoint. how?
Reply
#2

on the top:

new Float:PaperBoyPoints[3][4] = {
{651.8204,-1619.4867,15.0000,256.8740},
{795.1389,-1691.2811,14.4633,185.0004},
{1237.6108,-1582.6001,13.4683,185.8803}
};


in a cmd or something:

new rand = random(sizeof(PaperBoyPoints));
SetPlayerCheckpoint(playerid,PaperBoyPoints[rand][0],PaperBoyPoints[rand][1],PaperBoyPoints[rand][2],PaperBoyPoints[rand][3]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)