Random spawns + Blueberry for 0.3s
#4



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
};
In OnPlayerSpawn(...)

[/pawn]new Spawn;
Spawn = random(sizeof(RandomSpawn));

SetPlayerPos(playerid, RandomSpawn[Spawn][0], RandomSpawn[Spawn][1], RandomSpawn[Spawn][2]);[/pawn]
Reply


Messages In This Thread
Random spawns + Blueberry for 0.3s - by XtremeChio - 01.09.2009, 15:18
Re: Random spawns + Blueberry for 0.3s - by Jakku - 01.09.2009, 15:20
Re: Random spawns + Blueberry for 0.3s - by XtremeChio - 01.09.2009, 15:23
Re: Random spawns + Blueberry for 0.3s - by LuxurioN™ - 01.09.2009, 16:43
Re: Random spawns + Blueberry for 0.3s - by MadeMan - 01.09.2009, 17:06
Re: Random spawns + Blueberry for 0.3s - by XtremeChio - 01.09.2009, 17:07
Re: Random spawns + Blueberry for 0.3s - by MadeMan - 01.09.2009, 17:10
Re: Random spawns + Blueberry for 0.3s - by XtremeChio - 01.09.2009, 17:12
Re: Random spawns + Blueberry for 0.3s - by MadeMan - 01.09.2009, 17:16
Re: Random spawns + Blueberry for 0.3s - by Kyeno - 03.02.2010, 06:35

Forum Jump:


Users browsing this thread: 1 Guest(s)