Help With Random Checkpoints - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help With Random Checkpoints (
/showthread.php?tid=77292)
Help With Random Checkpoints -
CJ101 - 10.05.2009
Код:
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?
Re : Help With Random Checkpoints -
timaoux - 23.07.2011
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]);