Mhm funktioniert noch immer nicht. Nicht wie du es geschrieben hast, auch nicht mit den Zahlen
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == TEAM_GROVE) {
SetPlayerColor(playerid,COLOR_GREEN);
return 1;
}
if(gTeam[playerid] == TEAM_COPS) {
SetPlayerColor(playerid,COLOR_BLUE);
return 1;
}
if(gTeam[playerid] == TEAM_BALLAS) {
SetPlayerColor(playerid,COLOR_PURPLE);
return 1;
}
if(gTeam[playerid] == TEAM_ZIVIS) {
SetPlayerColor(playerid,COLOR_WHITE);
return 1;
}
if(gTeam[playerid] == TEAM_MAFIA) {
SetPlayerColor(playerid,COLOR_OLIVE);
return 1;
}
if(gTeam[playerid] == TEAM_PARA) {
SetPlayerColor(playerid,COLOR_ORANGE);
return 1;
}
GivePlayerMoney(playerid,5000);
if(GetPlayerTeam(playerid) == 1) {
SetPlayerTeam(playerid, 1);
}
if(GetPlayerTeam(playerid) == 2) {
SetPlayerTeam(playerid, 2);
}
if(GetPlayerTeam(playerid) == 0) {
SetPlayerTeam(playerid, 0);
}
if(GetPlayerTeam(playerid) == 4) {
SetPlayerTeam(playerid, 4);
}
if(GetPlayerTeam(playerid) == 3) {
SetPlayerTeam(playerid, 3);
}
if(GetPlayerTeam(playerid) == 5) {
SetPlayerTeam(playerid, 5);
}
return 0;
}