30.09.2009, 14:09
Try this:
pawn Код:
new Float:checkpoints[4][3] =
{
{-18.4717, 2349.4331, 24.1406},
{-439.3994, 2229.5598, 42.3833},
{-793.1042, 2772.0095, 45.6958},
{637.9069, 1686.1379, 6.9871}
};
new randomCheckpoint = random(sizeof(checkpoints));
SetPlayerCheckpoint(i, checkpoints[randomCheckpoint][0], checkpoints[randomCheckpoint][1], checkpoints[randomCheckpoint][2], 5.0);