05.01.2012, 11:07
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.
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;
}