29.08.2011, 16:57
hi,
id try smth. like:
Use this code in the callback OnPlayerRequestClass.
Do u use gTeam?
If so, just adjust the gTeam variable to ur needs: gTeam[playerid] = ChangeThisToYourDefinedTeams;
Was this helpfull?
id try smth. like:
pawn Code:
if (classid == 0)//ur first skin added with AddPlayerClass
{
GameTextForPlayer(playerid, "~r~Zombie", 500, 5);
gTeam[playerid] = TEAM1;
SetPlayerTeam(playerid,TEAM1);
}
else if (classid == 1)//second skin
{
GameTextForPlayer(playerid, "~b~Human", 500, 5);
gTeam[playerid] = TEAM2;
SetPlayerTeam(playerid,TEAM2);
}
}
else if (classid == 2)//and so on...
{
//...
}
Do u use gTeam?
If so, just adjust the gTeam variable to ur needs: gTeam[playerid] = ChangeThisToYourDefinedTeams;
Was this helpfull?