09.12.2009, 12:36
try with this
put somewhere and modify
somewhere in script put and modify
OnPlayerSpawn
TopOfScript
try with this things
EDIT: try with gTeam
put this Top Of Your SCRIPT
put somewhere and modify
Код:
public SetPlayerToTeamColor(playerid) { if(gTeam[playerid] == TEAM_GROVE) { SetPlayerColor(playerid,0x33AA33AA); // green } if(gTeam[playerid] == TEAM_COP) { SetPlayerColor(playerid,0x375FFFFF); // blue } }
Код:
SetPlayerTeamFromClass(playerid, classid) { if(classid == 0 || classid == 1 || classid == 2) { gTeam[playerid] = TEAM_GROVE; // DONE } if(classid == 3 || classid == 4) { gTeam[playerid] = TEAM_COP; // DONE } }
Код:
SetPlayerToTeamColor(playerid);
Код:
forward SetPlayerToTeamColor(playerid);
EDIT: try with gTeam
put this Top Of Your SCRIPT
Код:
static gTeam[MAX_PLAYERS]; // Tracks the team assignment for each player