Team Random spawn
#4

CJ skin is case 10 as it starts from 0 not 1.

Edit: As foir the other code still spawning you at the default position. I would change your switch to simple if statements to see if it works that way.

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(gTeam[playerid] == TEAM_GROVE)
    {
        new RandomG = random(sizeof(RandomSpawnGrove));
        SetPlayerPos(playerid, RandomSpawnGrove[RandomG][0], RandomSpawnGrove[RandomG][1], RandomSpawnGrove[RandomG][2]);
            SetPlayerFacingAngle(playerid, RandomSpawnGrove[RandomG][3]);
    }
    return 1;
}
Reply


Messages In This Thread
Team Random spawn - by TheLonelyMoo - 05.01.2012, 10:57
Re: Team Random spawn - by Infamous - 05.01.2012, 10:59
Re: Team Random spawn - by TheLonelyMoo - 05.01.2012, 11:03
Re: Team Random spawn - by Infamous - 05.01.2012, 11:07
Re: Team Random spawn - by TheLonelyMoo - 05.01.2012, 11:16
Re: Team Random spawn - by Infamous - 05.01.2012, 11:18

Forum Jump:


Users browsing this thread: 1 Guest(s)