30.09.2012, 04:49
(
Последний раз редактировалось MrPlatinum; 30.09.2012 в 07:40.
)
new Float:RandomSpawns[][] =
{
{x,y,z}, // Randomspawn
{x,y,z}, // Randomspawn
{x,y,z}, // Randomspawn
{x,y,z}, // Randomspawn
{x,y,z}, // Randomspawn
};
//underonplayerspawn
if(GetPlayerTeam(playerid) == 1)
{
new Random = random(sizeof(RandomSpawns));
SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
}
//more team here and so on!