25.10.2014, 07:12
pawn Код:
new Float: random_destinations[][3] =
{
{771.1042,-1357.3729,13.5323},
{557.8225,-1265.6511,17.2422},
{1224.9829,-1829.7542,13.4032},
{1882.5809,-2281.4395,13.5469},
{1937.4445,-1776.8722,13.3828},
{2296.4216,-15.1040,26.3285},
{1364.9675,467.9350,20.1037},
{1345.6343,280.0660,19.5615},
{77.5986,1213.2402,18.8355},
{-293.9685,1052.0466,19.5886},
{-83.9216,1359.8287,10.3647},
{135.5094,1964.2729,19.4917},
{-302.6055,1523.6019,75.3594}
};
pawn Код:
//put these lines under ur mission CMD
new Random=random(sizeof(random_destinations));
SetPlayerCheckPoint(playerid,random_destinations[Random][0],random_destinations[Random][1],random_destinations[Random][2]);