Changing player spawn locations.
#4

here u go a simple one
pawn Код:
new Float:RandomSpawns[][] =
{
    {x,y,z}, // Randomspawn
    {x,y,z}, // Randomspawn
    {x,y,z}, // Randomspawn
    {x,y,z}, // Randomspawn
    {x,y,z}, // Randomspawn
};
pawn Код:
//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!
i hope that helps
Reply


Messages In This Thread
Changing player spawn locations. - by MrPlatinum - 30.09.2012, 04:49
Re: Changing player spawn locations. - by XtremeR - 30.09.2012, 05:02
Re: Changing player spawn locations. - by MrPlatinum - 30.09.2012, 05:13
Re: Changing player spawn locations. - by XtremeR - 30.09.2012, 05:18

Forum Jump:


Users browsing this thread: 1 Guest(s)