Punkte auf der Map sichtbar(anfang getan

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • 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


    Bewerte mich und meine Transaktionen als Mittelsmann

    3 Mal editiert, zuletzt von lollipop ()

  • public SetPlayerColor(playerid)
    {
    if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0) //Zivi
    {
    SetPlayerColor(playerid,COLOR_WHITE);
    }
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)// LS Police spawn
    {
    SetPlayerColor(playerid,NB);
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //SF Police spawn
    {
    SetPlayerColor(playerid,NB);
    }
    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);
    }
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//LaCosaNostra spawn
    {
    SetPlayerColor(playerid,COLOR_ORANGE);
    }
    if (PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6)//Yakuza spawn
    {
    SetPlayerColor(playerid,COLOR_PURPLE);
    }
    if(PlayerInfo[playerid][pLeader] == 7)//Präsident spawn
    {
    SetPlayerColor(playerid,COLOR_BLACK);
    }
    if(PlayerInfo[playerid][pMember] == 7)//Bodyguard spawn
    {
    SetPlayerColor(playerid,COLOR_BLACK);
    }
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Hitman spawn
    {
    SetPlayerColor(playerid,COLOR_DARKRED);
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //News spawn
    {
    SetPlayerColor(playerid,COLOR_LIME);
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Taxi spawn
    {
    SetPlayerColor(playerid,COLOR_YELLOW);
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //LS.Bikers Spawn
    {
    SetPlayerColor(playerid,COLOR_GREY);
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //GROOVE STREET FAMILIY
    {
    SetPlayerColor(playerid,COLOR_LIGHTGREEN);
    }
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //BALLAS GANG
    {
    SetPlayerColor(playerid,COLOR_PURPLE);
    }
    if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) //Fast and Furious
    {
    SetPlayerColor(playerid,COLOR_LIGHTRED);
    }
    if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) //Los Santos Vagos
    {
    SetPlayerColor(playerid,COLOR_YELLOW);
    }
    if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) //Varios Los Aztecas
    {
    SetPlayerColor(playerid,COLOR_YELLOW);
    }
    if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18) //San Fierro Rifa
    {
    SetPlayerColor(playerid,COLOR_GREENYELLOW);
    }
    if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19) //W C Customs
    {
    SetPlayerColor(playerid,COLOR_LIGHTRED);
    }
    if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) //Terroristen
    {
    SetPlayerColor(playerid,COLOR_YELLOW);
    }
    if (PlayerInfo[playerid][pMember] == 21) //FBI Agenten spawn
    {
    SetPlayerColor(playerid,STEALTH_BLUE);
    }
    if (PlayerInfo[playerid][pLeader] == 21) //FBI Leader spawn
    {
    SetPlayerColor(playerid,STEALTH_BLUE);
    }
    if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22) //Feuerwehr spawn
    {
    SetPlayerColor(playerid,COLOR_LIGHTRED);
    }
    if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23) //Russenmafia spawn
    {
    SetPlayerColor(playerid,COLOR_GREY);
    }
    if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24) //Oamt spawn
    {
    SetPlayerColor(playerid,COLOR_LIGHTBLUE);
    }
    if (PlayerInfo[playerid][pMember] == 25 || PlayerInfo[playerid][pLeader] == 25) //S.W.A.T. spawn
    {
    SetPlayerColor(playerid,NB);
    }
    }




    Wenn der Spieler Spawnt setzt du das
    SetPlayerColor(playerid);

  • Yo,
    habe des ma gemacht bei SetPlayerSpawn eingefgt.
    Hier die errors:
    [hide]C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(3000) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(3025) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(3713) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4431) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4443) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4455) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4466) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4476) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4488) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4499) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4511) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4521) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4531) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4543) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4553) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4564) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4575) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4586) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4598) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4610) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4622) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4634) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4646) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4658) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4670) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4683) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4697) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4708) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4719) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4730) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4742) : error 004: function "SetPlayerToTeamColor" is not implemented
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4750) : error 004: function "SetPlayerToTeamColor" is not implemented
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4760) : error 004: function "SetPlayerToTeamColor" is not implemented
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4771) : error 004: function "SetPlayerToTeamColor" is not implemented
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4779) : error 004: function "SetPlayerToTeamColor" is not implemented
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4782) : warning 215: expression has no effect
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4992) : error 001: expected token: "-identifier-", but found "("
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4994) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(4998) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5002) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5006) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5009) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5011) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5015) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5019) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5023) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5027) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5031) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5035) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5039) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5043) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5047) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5051) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5055) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5059) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5063) : error 010: invalid function or declaration
    C:\Users\Sven\Desktop\3c Client released\gamemodes\Life-Your-Dream.pwn(5067) : error 010: invalid function or declaration


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.
    [/hide]
    Hier das ganze Public:
    http://pastebin.com/BmZSk5TV
    Es kommt immer die Errors bei:

    SetPlayerColor(playerid);



    Hoffe mir kann jemand helfen.
    mfg lolli


    Bewerte mich und meine Transaktionen als Mittelsmann