08.10.2011, 21:17
okay i have a new problem how would i set the team colors as i tryed all of this:
but it didnt work :/
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerVirtualWorld(playerid,1);
SetupPlayerForClassSelection(playerid);
switch(GetPlayerSkin(playerid))
{
case 105,106,107: GameTextForPlayer(playerid,"~g~Grove Gangster",500,1);
case 110,109,108: GameTextForPlayer(playerid,"~y~Los Santos Vagos Gangster",500,1);
}
switch(GetPlayerTeam(playerid))
{
case 110,109,108: SetPlayerTeam(playerid,TEAM_VAGOS);
case 105,106,107: SetPlayerTeam(playerid,TEAM_GROVE);
}
switch(GetPlayerColor(playerid))
{
case 110,109,108: SetPlayerColor(playerid,COLOR_VAGOS);
case 105,106,107: SetPlayerColor(playerid,COLOR_GROVE);
}
return 1;
}