01.09.2009, 16:43
Try:
pawn Код:
new Float:RandomSpawn[7][3] = //[7] = amount of coords [4] = size of string
{ /*X*/ /*Y*/ /*Z*/
{2605.8538,1692.6309,10.9766}, // 0
{2518.4373,2155.6116,10.8125}, // 1
{2031.8082,1919.0184,12.3359}, // 2
{2024.7225,1545.3295,10.8188}, // 3
{1958.4229,1342.8798,15.3746}, // 4
{2090.7458,1163.3665,11.6552}, // 5
{2800.9646,1326.1124,10.8984}, // 6
{2119.4382,2218.6707,10.8203} // 7
};
[/pawn]new Spawn;
Spawn = random(sizeof(RandomSpawn));
SetPlayerPos(playerid, RandomSpawn[Spawn][0], RandomSpawn[Spawn][1], RandomSpawn[Spawn][2]);[/pawn]