20.06.2009, 05:14
pawn Код:
//top of the script
new Float:checkpoints[][] = {
{-22.2549,-55.6575,1003.5469,2.0}, // your x,y,z,radius
{295.7192,-80.4445,1001.5156,5.0},
{-1957.5327,300.2131,35.4688,2.0}
};
//somewhere it the script, where you want to set a checkpoint
new rand = random(sizeof(checkpoints));
SetPlayerCheckpoint(playerid,checkpoints[rand][0],checkpoints[rand][1],checkpoints[rand][2],checkpoints[rand][3]);