28.08.2015, 16:31
Replace
With
Код:
public OnPlayerSpawn(playerid) { forward SetPlayerToTeamColor(playerid) if (gTeam[playerid] == TEAM_GROVE) { SetPlayerColor(playerid, TEAM_GROVE_COLOR); } else if (gTeam[playerid] == TEAM_BALLA) { SetPlayerColor(playerid, TEAM_BALLA_COLOR); } return 1; }
Код:
forward SetPlayerToTeamColor(playerid) public SetPlayerToTeamColor(playerid) { if(gTeam[playerid] == TEAM_GROVE) { SetPlayerColor(playerid, TEAM_GROVE_COLOR); } if(gTeam[playerid] == TEAM_BALLA) { SetPlayerColor(playerid, TEAM_BALLA_COLOR); } return 1; } public OnPlayerSpawn(playerid) { SetPlayerToTeamColor(playerid); return 1; }