Yo hi,
Ich habe mir überlegt wie ich des machen kann das man die Punkte auf der Map sieht.
Ich habe des so:
if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) //Zivi
{
SetPlayerColor(playerid,COLOR_WHITE);
return 1;
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)// LS Police spawn
{
SetPlayerColor(playerid,NB);
return 1;
}
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //SF Police spawn
{
SetPlayerColor(playerid,NB);
return 1;
}
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Army spawn
{
SetPlayerColor(playerid,COLOR_GREEN);
return 1;
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Sanitäter spawn
{
SetPlayerColor(playerid,COLOR_RED);
return 1;
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LaCosaNostra spawn
{
SetPlayerColor(playerid,COLOR_ORANGE);
return 1;
}
if (PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)//Yakuza spawn
{
SetPlayerColor(playerid,COLOR_PURPLE);
return 1;
}
if(PlayerInfo[playerid][pLeader] == 7)//Präsident spawn
{
SetPlayerColor(playerid,COLOR_BLACK);
return 1;
}
if(PlayerInfo[playerid][pMember] == 7)//Bodyguard spawn
{
SetPlayerColor(playerid,COLOR_BLACK);
return 1;
}
if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
{
SetPlayerColor(playerid,COLOR_DARKRED);
return 1;
}
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
{
SetPlayerColor(playerid,COLOR_LIME);
return 1;
}
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi spawn
{
SetPlayerColor(playerid,COLOR_YELLOW);
return 1;
}
if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //LS.Bikers Spawn
{
SetPlayerColor(playerid,COLOR_GREY);
return 1;
}
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //GROOVE STREET FAMILIY
{
SetPlayerColor(playerid,COLOR_LIGHTGREEN);
return 1;
}
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //BALLAS GANG
{
SetPlayerColor(playerid,COLOR_PURPLE);
return 1;
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) //Fast and Furious
{
SetPlayerColor(playerid,COLOR_LIGHTRED);
return 1;
}
if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) //Los Santos Vagos
{
SetPlayerColor(playerid,COLOR_YELLOW);
return 1;
}
if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) //Varios Los Aztecas
{
SetPlayerColor(playerid,COLOR_YELLOW);
return 1;
}
if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18) //San Fierro Rifa
{
SetPlayerColor(playerid,COLOR_GREENYELLOW);
return 1;
}
if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19) //W C Customs
{
SetPlayerColor(playerid,COLOR_LIGHTRED);
return 1;
}
if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) //Terroristen
{
SetPlayerColor(playerid,COLOR_YELLOW);
return 1;
}
if (PlayerInfo[playerid][pMember] == 21) //FBI Agenten spawn
{
SetPlayerColor(playerid,STEALTH_BLUE);
return 1;
}
if (PlayerInfo[playerid][pLeader] == 21) //FBI Leader spawn
{
SetPlayerColor(playerid,STEALTH_BLUE);
return 1;
}
if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22) //Feuerwehr spawn
{
SetPlayerColor(playerid,COLOR_LIGHTRED);
return 1;
}
if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23) //Russenmafia spawn
{
SetPlayerColor(playerid,COLOR_GREY);
return 1;
}
if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24) //Oamt spawn
{
SetPlayerColor(playerid,COLOR_LIGHTBLUE);
return 1;
}
if (PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25) //S.W.A.T. spawn
{
SetPlayerColor(playerid,NB);
return 1;
}
Ich habe des so.
Wo setzt ich des am besten hin das es auch neue Spieler sehen die drauf Conneten.
Wenn ich des bei OnPlayerSpawn hinsetzte spawnt man net mehr an seinem normalen spawn.
Wenn ich es bei OnPlayerUpdateEx hinsetzt dauert es ewig bis es da ist.
Bei OnPlayerlogIn
Kann man sich nicht mehr einloggen.
Also wo kommt es am besten hin?
mfg lolli
//edit
Vill. ist es hilfreich:
Es ist ein stark editiertes LoH 0.4
//edit Überschrift geändärt
//Edit: Authorisierter Push