/leader + /ld für Hitman

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
  • Guten Abend Community von Breadfish.


    Ich hätte da eine Frage also die wäre.


    -Leaderchat für Hitman das exisitiert alles.


    Ich bin ein Anfänger Scripter (:.


    Also z.B beim /ld Wenn Hitman schreibst Unknown NAME = Unbekannt also das es da steht und beim /leaderliste das da Hitman Leader Unbekannt ist.



    Ich hoffe ihr könnt mir helfen .


    Danke !

  • Einfach Hitman mit Unknown tauschen? Aber das ist genau so unauffällig als wenn hitman drinnen stehen bleibt.

  • /ld



    if(strcmp(cmd, "/ld", true) == 0 || strcmp(cmd, "/leaderchat", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    if(!ldchat)
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Der Leaderchat wurde ausgestellt");
    return 1;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Verwendung: (/ld)(Leader-Chat) [TEXT]");
    return 1;
    }
    if(PlayerInfo[playerid][pLeader] >=1)
    {
    if(PlayerInfo[playerid][pLeader] == 1) { format(string, sizeof(string), "** LSPD-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 2) { format(string, sizeof(string), "** FBI-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 3) { format(string, sizeof(string), "** Army-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 4) { format(string, sizeof(string), "** Medic-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 5) { format(string, sizeof(string), "** LCN-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 6) { format(string, sizeof(string), "** Yakuza-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 7) { format(string, sizeof(string), "** Praesident %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 8) { format(string, sizeof(string), "** Unknown %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 9) { format(string, sizeof(string), "** News Reporter-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 10) { format(string, sizeof(string), "** Taxi-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 11) { format(string, sizeof(string), "** Fahrschul-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 12) { format(string, sizeof(string), "** Hacker-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 13) { format(string, sizeof(string), "** Crips-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 14) { format(string, sizeof(string), "** Groove-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 15) { format(string, sizeof(string), "** Los Santos Biker-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 16) { format(string, sizeof(string), "** Los Santos Vagos-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 17) { format(string, sizeof(string), "** Aztecas-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 18) { format(string, sizeof(string), "** Vatos Locos-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 19) { format(string, sizeof(string), "** LSGD-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 20) { format(string, sizeof(string), "** Terror-Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 21) { format(string, sizeof(string), "** Wheelmen Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 22) { format(string, sizeof(string), "** SWAT Leader %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 23) { format(string, sizeof(string), "** Russische Mafia %s: %s **", sendername, result); }
    else if(PlayerInfo[playerid][pLeader] == 24) { format(string, sizeof(string), "** OAmt-Leader %s: %s **", sendername, result); }
    else
    {
    format(string, sizeof(string), "** Noob %s: %s, Ende. **", sendername, result);
    }
    SendLeaderMessage(1, 0xD7AD62FF, string);
    SendLeaderMessage(2, 0xD7AD62FF, string);
    SendLeaderMessage(3, 0xD7AD62FF, string);
    SendLeaderMessage(4, 0xD7AD62FF, string);
    SendLeaderMessage(5, 0xD7AD62FF, string);
    SendLeaderMessage(6, 0xD7AD62FF, string);
    SendLeaderMessage(7, 0xD7AD62FF, string);
    SendLeaderMessage(8, 0xD7AD62FF, string);
    SendLeaderMessage(9, 0xD7AD62FF, string);
    SendLeaderMessage(10, 0xD7AD62FF, string);
    SendLeaderMessage(11, 0xD7AD62FF, string);
    SendLeaderMessage(12, 0xD7AD62FF, string);
    SendLeaderMessage(13, 0xD7AD62FF, string);
    SendLeaderMessage(14, 0xD7AD62FF, string);
    SendLeaderMessage(15, 0xD7AD62FF, string);
    SendLeaderMessage(16, 0xD7AD62FF, string);
    SendLeaderMessage(17, 0xD7AD62FF, string);
    SendLeaderMessage(18, 0xD7AD62FF, string);
    SendLeaderMessage(19, 0xD7AD62FF, string);
    SendLeaderMessage(20, 0xD7AD62FF, string);
    SendLeaderMessage(21, 0xD7AD62FF, string);
    SendLeaderMessage(22, 0xD7AD62FF, string);
    SendLeaderMessage(23, 0xD7AD62FF, string);
    SendLeaderMessage(24, 0xD7AD62FF, string);
    printf("%s", string);
    return 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, " Du bist kein Leader!.");
    return 1;
    }
    }
    return

  • Bin grad mit dem Handy on, bitte mache dies mit der pwn Funktion hier im forum.

  • if (strcmp(cmd, "/leader", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, 0xCDB221FF, "**Fraktions - Leader Online**"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[i][pLeader] == 1) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *LSPD-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 2) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *FBI Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 3) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *Army Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 4) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *Medic Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); }
    if(PlayerInfo[i][pLeader] == 5) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *LCN-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 6) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *Yakuza-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 9) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *News Reporter-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 11) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 40, " *Fahrlehrer-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 13) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *Crips-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 14) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *Groove-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 16) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *Los Santos Vagos-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 17) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *Aztecas-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 19) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *LSGD-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 22) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *SWAT-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 23) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *Russische Mafia-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } if(PlayerInfo[i][pLeader] == 24) { GetPlayerName(i, sendername, sizeof(sendername)); format(string, 80, " *Ordnungsamt-Leader: %s", sendername); SendClientMessage(playerid, COLOR_GOLD, string); } } } return 1; } }



    Muss ich vllt so machen ^^



    }
    if(PlayerInfo[pLeader] ==8 )
    {
    GetPlayerName(i, sendername, sizeof(sendername));
    format(string, 40, " *Hitman-Leader: UNBEKANNT", sendername);
    SendClientMessage(playerid, COLOR_GOLD, string);

  • Beitrag von N0SKILL ()

    Dieser Beitrag wurde gelöscht, Informationen über den Löschvorgang sind nicht verfügbar.
  • Letzte Frage, beim Leaderchat ,


    else if(PlayerInfo[playerid][pLeader] == 8) { format(string, sizeof(string), "** Unknown %s: UNBEKANNT **", sendername, result); }


    Geändert und ingame schreibe ich z.B /ld haha , steht da Unknown kill.exe : UNBEKANNT , wenn ich Unknown UNBEKANNT: %s , mache steht da Unknown kill.exe : UNBEKANNT


    was soll ich machen :c