27.03.2013, 12:16
(
Последний раз редактировалось [..MonTaNa..]; 30.04.2013 в 04:48.
)
.....
new Float:RandomSpawns[][] =
{
{1309.1375,2085.1611,10.8203,93.1750}, // RandomSpawn 1
{2200.9204,1390.4510,10.8203,181.6723}, // RandomSpawn 2
{2617.5205,718.1686,10.8203,359.8032}, // RandomSpawn 3
{1450.8284,751.4382,11.0234,92.4259} // RandomSpawn 4
};
new
Random = random(sizeof(RandomSpawns))
;
// an example
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
new Float:RandomSpawns[][] =
{
{1309.1375,2085.1611,10.8203,93.1750}, // RandomSpawn 1
{2200.9204,1390.4510,10.8203,181.6723}, // RandomSpawn 2
{2617.5205,718.1686,10.8203,359.8032}, // RandomSpawn 3
{1450.8284,751.4382,11.0234,92.4259} // RandomSpawn 4
};