06.06.2013, 11:49
create an array with spawn locations in it. (OnPlayerSpawn)
then check for example in what team he is or just do
(you are setting the position from the player random to one of the array)
pawn Код:
new Float:RandSpawn[][4] = {//x, y, z, angle
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0},
{0.0, 0.0, 0.0, 0.0}
};
(you are setting the position from the player random to one of the array)
pawn Код:
new rand = random(sizeof(RandSpawn));
SetPlayerPos(playerid, RandSpawn[rand][0], RandSpawn[rand][1], RandSpawn[rand][2]);
SetPlayerFacingAngle(playerid, RandSpawn[rand][3]);