Beiträge von xFreak

    Hallo.


    Diesmal habe ich nicht denn System erstellt/bearbeitet. Trozdem wollte ich es vorstellen. Und diesen System habe ich von @Whice. [ Bester Mann ] :)


    Gov System:

    //----------------------------------[Government]-----------------------------------------------
    if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
    {
    if(!IsPlayerConnected(playerid))return 1;
    //if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0)return SendClientMessage(playerid, COLOR_GREY, " Du bist kein Mitglied einer Fraktion !");
    if(PlayerInfo[playerid][pRank] < 5)return SendClientMessage(playerid, COLOR_GREY, " Du brauchst Rang 5 !");
    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++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))return SendClientMessage(playerid, COLOR_GRAD2, "Benutze: (/gov)ernment [Text]");
    new govstring[256];
    format(govstring, sizeof(govstring), "|___________ %s ___________|", GetFracName(playerid));
    if(PlayerInfo[playerid][pMember] == 0)
    {
    switch(PlayerInfo[playerid][pLeader])
    {
    case 1:
    {
    SendClientMessageToAll(NAMECOLOR_LSCOP, govstring);
    format(govstring, sizeof(govstring), "Polizeipräsident: %s: %s", sendername, result);
    SendClientMessageToAll(NAMECOLOR_LSCOP, govstring);
    }
    case 2:
    {
    SendClientMessageToAll(NAMECOLOR_FBI, govstring);
    format(govstring, sizeof(govstring), "Director: %s: %s", sendername, result);
    SendClientMessageToAll(NAMECOLOR_FBI, govstring);
    }
    case 3:
    {
    SendClientMessageToAll(NAMECOLOR_ARMY, govstring);
    format(govstring, sizeof(govstring), "General: %s: %s", sendername, result);
    SendClientMessageToAll(NAMECOLOR_ARMY, govstring);
    }
    case 4:
    {
    SendClientMessageToAll(0xFF0000FF, govstring);
    format(govstring, sizeof(govstring), "Chef Arzt: %s: %s", sendername, result);
    SendClientMessageToAll(0xFF0000FF, govstring);
    }
    case 5:
    {
    SendClientMessageToAll(0x787878FF, govstring);
    format(govstring, sizeof(govstring), "Pablo: %s: %s", sendername, result);
    SendClientMessageToAll(0x787878FF, govstring);
    }
    case 6:
    {
    SendClientMessageToAll(0x120E00FF, govstring);
    format(govstring, sizeof(govstring), "Destro: %s: %s", sendername, result);
    SendClientMessageToAll(0x120E00FF, govstring);
    }
    case 7:
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Direktor: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 8:
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Unbekannt: %s", result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 9:
    {
    SendClientMessageToAll(0xFF7800FF, govstring);
    format(govstring, sizeof(govstring), "Network Producer: %s: %s", sendername, result);
    SendClientMessageToAll(0xFF7800FF, govstring);
    }
    case 10:
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Taxi Company Owner: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 11:
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Fahrschul-Leiter: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 12:
    {
    SendClientMessageToAll(0x1717A9FF, govstring);
    format(govstring, sizeof(govstring), "Boss: %s: %s", sendername, result);
    SendClientMessageToAll(0x1717A9FF, govstring);
    }
    case 13:
    {
    SendClientMessageToAll(0x008500FF, govstring);
    format(govstring, sizeof(govstring), "Big Smoke: %s: %s", sendername, result);
    SendClientMessageToAll(0x008500FF, govstring);
    }
    case 14:
    {
    SendClientMessageToAll(0xAA00D3FF, govstring);
    format(govstring, sizeof(govstring), "Street-Nigga: %s: %s", sendername, result);
    SendClientMessageToAll(0xAA00D3FF, govstring);
    }
    case 15:
    {
    SendClientMessageToAll(0x196C32FF, govstring);
    format(govstring, sizeof(govstring), "Bikerboss: %s: %s", sendername, result);
    SendClientMessageToAll(0x196C32FF, govstring);
    }
    case 16:
    {
    SendClientMessageToAll(0xFFF000FF, govstring);
    format(govstring, sizeof(govstring), "Maestro: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFF000FF, govstring);
    }
    case 17:
    {
    SendClientMessageToAll(0x00F5FF8E, govstring);
    format(govstring, sizeof(govstring), "Jefazo: %s: %s", sendername, result);
    SendClientMessageToAll(0x00F5FF8E, govstring);
    }
    case 18:
    {
    SendClientMessageToAll(0x00D7FFF1, govstring);
    format(govstring, sizeof(govstring), "Rädelsführer: %s: %s", sendername, result);
    SendClientMessageToAll(0x00D7FFF1, govstring);
    }
    case 19: //Red Soldiers
    {
    SendClientMessageToAll(0xFF0A00C3, govstring);
    format(govstring, sizeof(govstring), "Red King: %s: %s", sendername, result);
    SendClientMessageToAll(0xFF0A00C3, govstring);
    }
    case 20: //Terrorist
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Al-Qaida Anführer: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 21: //Wheelman
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Ghost Rider: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 22: //SWAT
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Director: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 23: //Brigada
    {
    SendClientMessageToAll(0xFEFEFEFF, govstring);
    format(govstring, sizeof(govstring), "Baron: %s: %s", sendername, result);
    SendClientMessageToAll(0xFEFEFEFF, govstring);
    }
    case 24: //Ordnungsamt
    {
    SendClientMessageToAll(0x37FF6AD1, govstring);
    format(govstring, sizeof(govstring), "Ordnungsamt-Leiter: %s: %s", sendername, result);
    SendClientMessageToAll(0x37FF6AD1, govstring);
    }
    }
    }
    else
    {
    switch(PlayerInfo[playerid][pMember])
    {
    case 1:
    {
    SendClientMessageToAll(NAMECOLOR_LSCOP, govstring);
    format(govstring, sizeof(govstring), "Polizeipräsident: %s: %s", sendername, result);
    SendClientMessageToAll(NAMECOLOR_LSCOP, govstring);
    }
    case 2:
    {
    SendClientMessageToAll(NAMECOLOR_FBI, govstring);
    format(govstring, sizeof(govstring), "Director: %s: %s", sendername, result);
    SendClientMessageToAll(NAMECOLOR_FBI, govstring);
    }
    case 3:
    {
    SendClientMessageToAll(NAMECOLOR_ARMY, govstring);
    format(govstring, sizeof(govstring), "General: %s: %s", sendername, result);
    SendClientMessageToAll(NAMECOLOR_ARMY, govstring);
    }
    case 4:
    {
    SendClientMessageToAll(0xFF0000FF, govstring);
    format(govstring, sizeof(govstring), "Chef Arzt: %s: %s", sendername, result);
    SendClientMessageToAll(0xFF0000FF, govstring);
    }
    case 5:
    {
    SendClientMessageToAll(0x787878FF, govstring);
    format(govstring, sizeof(govstring), "Pablo: %s: %s", sendername, result);
    SendClientMessageToAll(0x787878FF, govstring);
    }
    case 6:
    {
    SendClientMessageToAll(0x120E00FF, govstring);
    format(govstring, sizeof(govstring), "Destro: %s: %s", sendername, result);
    SendClientMessageToAll(0x120E00FF, govstring);
    }
    case 7:
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Direktor: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 8:
    {
    SendClientMessageToAll(0x050000FF, govstring);
    format(govstring, sizeof(govstring), "Unbekannt: %s", result);
    SendClientMessageToAll(0x050000FF, govstring);
    }
    case 9:
    {
    SendClientMessageToAll(0xFF7800FF, govstring);
    format(govstring, sizeof(govstring), "Network Producer: %s: %s", sendername, result);
    SendClientMessageToAll(0xFF7800FF, govstring);
    }
    case 10:
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Taxi Company Owner: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 11:
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Fahrschul-Leiter: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 12:
    {
    SendClientMessageToAll(0x1717A9FF, govstring);
    format(govstring, sizeof(govstring), "Boss: %s: %s", sendername, result);
    SendClientMessageToAll(0x1717A9FF, govstring);
    }
    case 13:
    {
    SendClientMessageToAll(0x008500FF, govstring);
    format(govstring, sizeof(govstring), "Big Smoke: %s: %s", sendername, result);
    SendClientMessageToAll(0x008500FF, govstring);
    }
    case 14:
    {
    SendClientMessageToAll(0xAA00D3FF, govstring);
    format(govstring, sizeof(govstring), "Street-Nigga: %s: %s", sendername, result);
    SendClientMessageToAll(0xAA00D3FF, govstring);
    }
    case 15:
    {
    SendClientMessageToAll(0x196C32FF, govstring);
    format(govstring, sizeof(govstring), "Bikerboss: %s: %s", sendername, result);
    SendClientMessageToAll(0x196C32FF, govstring);
    }
    case 16:
    {
    SendClientMessageToAll(0xFFF000FF, govstring);
    format(govstring, sizeof(govstring), "Maestro: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFF000FF, govstring);
    }
    case 17:
    {
    SendClientMessageToAll(0x00F5FF8E, govstring);
    format(govstring, sizeof(govstring), "Jefazo: %s: %s", sendername, result);
    SendClientMessageToAll(0x00F5FF8E, govstring);
    }
    case 18:
    {
    SendClientMessageToAll(0x00D7FFF1, govstring);
    format(govstring, sizeof(govstring), "Rädelsführer: %s: %s", sendername, result);
    SendClientMessageToAll(0x00D7FFF1, govstring);
    }
    case 19: //Red Soldiers
    {
    SendClientMessageToAll(0xFF0A00C3, govstring);
    format(govstring, sizeof(govstring), "Red King: %s: %s", sendername, result);
    SendClientMessageToAll(0xFF0A00C3, govstring);
    }
    case 20: //Terrorist
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Al-Qaida Anführer: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 21: //Wheelman
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Ghost Rider: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 22: //SWAT
    {
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    format(govstring, sizeof(govstring), "Director: %s: %s", sendername, result);
    SendClientMessageToAll(0xFFFFFFFF, govstring);
    }
    case 23: //Brigada
    {
    SendClientMessageToAll(0xFEFEFEFF, govstring);
    format(govstring, sizeof(govstring), "Baron: %s: %s", sendername, result);
    SendClientMessageToAll(0xFEFEFEFF, govstring);
    }
    case 24: //Ordnungsamt
    {
    SendClientMessageToAll(0x37FF6AD1, govstring);
    format(govstring, sizeof(govstring), "Ordnungsamt-Leiter: %s: %s", sendername, result);
    SendClientMessageToAll(0x37FF6AD1, govstring);
    }
    }
    }
    return 1;
    }


    Und die Fraktionen also [case 0-24]:
    stock GetFracName(playerid)
    {
    new fname[32];
    if(PlayerInfo[playerid][pLeader] == 0)
    {
    switch(PlayerInfo[playerid][pMember])
    {
    case 0:{fname="Zivilist";}
    case 1:{fname="Los Santos Police Department";}
    case 2:{fname="Federal Bureau of Investigation";}
    case 3:{fname="United States of Army";}
    case 4:{fname="Notdienst";}
    case 5:{fname="La Cosa Nostra";}
    case 6:{fname="Yakuza";}
    case 7:{fname="Regierung";}
    case 8:{fname="Hitman Agency";}
    case 9:{fname="Center News Network";}
    case 10:{fname="Taxi Company";}
    case 11:{fname="Fahrschule";}
    case 12:{fname="Triaden";}
    case 13:{fname="Grove Street Family";}
    case 14:{fname="Front Yard Ballas";}
    case 15:{fname="Biker Club";}
    case 16:{fname="Vagos";}
    case 17:{fname="Atzecas";}
    case 18:{fname="Rifas";}
    case 19:{fname="Red Soldiers";}
    case 20:{fname="Terrorist";}
    case 21:{fname="Wheelman Agency";}
    case 22:{fname="SWAT";}
    case 23:{fname="Brigada";}
    case 24:{fname="Ordnungsamt";}
    }
    }
    else
    {
    switch(PlayerInfo[playerid][pLeader])
    {
    case 0:{fname="Zivilist";}
    case 1:{fname="Los Santos Police Department";}
    case 2:{fname="Federal Bureau of Investigation";}
    case 3:{fname="United States of Army";}
    case 4:{fname="Notdienst";}
    case 5:{fname="La Cosa Nostra";}
    case 6:{fname="Yakuza";}
    case 7:{fname="Regierung";}
    case 8:{fname="Hitman Agency";}
    case 9:{fname="Center News Network";}
    case 10:{fname="Taxi Company";}
    case 11:{fname="Fahrschule";}
    case 12:{fname="Triaden";}
    case 13:{fname="Grove Street Family";}
    case 14:{fname="Front Yard Ballas";}
    case 15:{fname="Biker Club";}
    case 16:{fname="Vagos";}
    case 17:{fname="Atzecas";}
    case 18:{fname="Rifas";}
    case 19:{fname="Red Soldiers";}
    case 20:{fname="Terrorist";}
    case 21:{fname="Wheelman Agency";}
    case 22:{fname="SWAT";}
    case 23:{fname="Brigada";}
    case 24:{fname="Ordnungsamt";}
    }
    }
    return fname;
    }



    Einfach die Fraknamen/Fraknummern Ändern.


    Und ein riesen Dank an @Whice.

    Hier ist mal ein System für alle Cops :D


    Aber dafür braucht man eine SD-Pistole und dieses System wurde leider nicht getestet weil ich keine Test Person hatte.



    public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
    {
    PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
    //
    if(weaponid == 23) {
    if(issuerid != INVALID_PLAYER_ID)
    {
    if(gTeam[issuerid] == 2 || IsACop(issuerid) || PlayerInfo[issuerid][pLeader] == 24 || PlayerInfo[issuerid][pMember] == 24 || PlayerInfo[issuerid][pLeader] == 7)
    {
    if(PlayerCuffed[playerid] > 0)
    {
    SendClientMessage(issuerid, COLOR_GREY, " Spieler ist schon gefesselt !");
    return 1;
    }
    if(GetDistanceBetweenPlayers(issuerid,playerid) < 5)
    {
    if(gTeam[playerid] == 2)
    {
    SendClientMessage(issuerid, COLOR_GREY, " Du kannst keinen Beamten Tazern! !");
    return 1;
    }
    if(IsPlayerInAnyVehicle(playerid))
    {
    SendClientMessage(issuerid, COLOR_GREY, " Der Betroffene ist in einem Fahrzeug !");
    return 1;
    }
    if(TazerBereit[issuerid] == 0)
    {
    SendClientMessage(issuerid, COLOR_GREY, " Dein Tazer ist noch nicht aufgeladen! (ca. 30 Sekunden)");
    return 1;
    }
    if(random(3) == 0)
    {
    SendClientMessage(issuerid, COLOR_GREY, " Du hast ihn nicht getroffen!");
    return 1;
    }
    new giveplayer[128], sendername[128], string[128];
    GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(issuerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s hat dich mit einem Stromschocker niedergestreckt.", sendername);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "Du hast %s mit einem Stromschocker niedergestreckt.", giveplayer);
    SendClientMessage(issuerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* %s holt seinen Stromschocker raus und streckt %s nieder.", sendername ,giveplayer);
    ProxDetector(30.0, issuerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    GameTextForPlayer(playerid, "~r~Geschockt", 2500, 3);
    ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 1.0, 0, 0, 0, 0, 0);
    FreezePlayer(playerid);
    // PlayerCuffed[playerid] = 1;
    // PlayerCuffedTime[playerid] = 20 + random(10);
    TazerBereit[issuerid] = 0;
    SetTimerEx("TazerBereitForPlayer",30000,0,"i",issuerid);
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du bist kein Beamter !");
    }
    }
    }
    //
    return 1;
    }

    Hallo.


    Ich habe einen kleinen Hitsound System erstellt eigentlich ganz Simpel es zu nutzen/einfügen


    Man muss im Script einfach ganz runter Scrollen und danach das einfügen:


    public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
    {
    PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
    return 1;
    }

    Hallo.


    Ich dachte mir warum sollen alle Server Farbenlos sein (Na klar haben manche Servers Farben) aber hier mal so:



    Function SetPlayerToTeamColor(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    SetPlayerColor(playerid,NAMECOLOR_LSCOP); // Copfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    SetPlayerColor(playerid,NAMECOLOR_FBI); // Copfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
    {
    //SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    SetPlayerColor(playerid,NAMECOLOR_ARMY); // Armyfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
    {
    SetPlayerColor(playerid,0xFF0000FF); // white SetPlayerColor(playerid,NAMECOLOR_MEDIC); // Arztfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,0x37271BA4); // LaCostaNostrafarbe
    }
    else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,0x828282FF); // Yakuzafarbe
    }
    else if(PlayerInfo[playerid][pLeader] == 7)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_PRAESI); // Präsifarbe
    }
    else if(PlayerInfo[playerid][pMember] == 7)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,0xFF460063); // Präsischutzfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    }
    else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
    {
    SetPlayerColor(playerid,0xFF7800FF); // white SetPlayerColor(playerid,NAMECOLOR_CNN); // CNNfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
    {
    SetPlayerColor(playerid,NAMECOLOR_TAXI); // white SetPlayerColor(playerid,NAMECOLOR_TAXI); // Taxifarbe
    }
    else if(PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,COLOR_LEHRER); // Fahrlehrerfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    }
    else if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_GROVE); // Grovefarbe
    }
    else if(PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,0xD200FFFF); // Ballasfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,0x4B0000FF); // Dillimore Devils-farbe
    }
    else if(PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,0xFFD200FF); // Vagosfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white SetPlayerColor(playerid,NAMECOLOR_AZTECAS); //Aztecasfarbe
    }
    else if(PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    }
    else if(PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white // white SetPlayerColor(playerid,NAMECOLOR_FAF);
    }
    else if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    }
    else if(PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white // white SetPlayerColor(playerid,0xFF0000FF);
    }
    else if(PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white // white SetPlayerColor(playerid,0x483E00FF);
    }
    else if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24)
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // OAMT Farbe
    }
    else
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR); // white
    }
    }
    }


    Die Farben kann man ganz leicht wieder ändern in dem ihr einfach einen Color Picker habt.


    Hier ist meiner wo mit ich die Farben eingefügt habe:


    Download: http://www.file-upload.net/dow…1346/Colorpicker.rar.html
    Antivirus (Virustotal): https://www.virustotal.com/de/…1892/analysis/1461950497/

    Hallo.


    Hier ist ein Ortungs System für alle Cops.


    Oben in denn Script bei Forward

    forward OrtenTimer(playerid,suchid);
    new OrtenAktiv[MAX_PLAYERS] = 0;
    new OrtenTimer1[MAX_PLAYERS];


    bei Public

    }
    public OrtenTimer(playerid,suchid)
    {
    new Float:PPos[3];
    GetPlayerPos(suchid,PPos[0],PPos[1],PPos[2]);
    SetPlayerCheckpoint(playerid,PPos[0],PPos[1],PPos[2],3.0);
    return 1;
    }


    Das System:

    //======== ORTEN Verfolgen ==========//
    if(strcmp(cmd, "/orten", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(!IsACop(playerid))
    {
    SendClientMessage(playerid, COLOR_GREY, "Du bist kein Cop!");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutzung: /orten [Spieler ID]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if(OrtenAktiv[playerid]==0)
    {
    OrtenAktiv[playerid] = 1;
    OrtenTimer1[playerid] = SetTimerEx("OrtenTimer",1000,1,"ii",playerid,giveplayerid);
    }
    else
    {
    OrtenAktiv[playerid]=0;
    DisablePlayerCheckpoint(playerid);
    KillTimer(OrtenTimer1[playerid]);
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Falsche ID!");
    }
    }
    return 1;
    }


    Hoffe es gefällt&klappt.


    Bei Fragen oder Problemen einfach Fragen

    Hier ist ein Wheelman System [ /knackcuff ] einfach nur einen Timer setzen wie lange man braucht um die Handschellen zu knacken. [ könnt auch ohne Timer ]



    }
    if(strcmp(cmd, "/knackcuff", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(IsPlayerInFrac(playerid, 21))
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "BEFEHL: /knackcuff [playerid]");
    return 1;
    }
    giveplayerid = ReturnUser(tmp);
    if(IsPlayerConnected(giveplayerid))
    {
    if(giveplayerid != INVALID_PLAYER_ID)
    {
    if (ProxDetectorS(8.0, playerid, giveplayerid))
    {
    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Du hast dir selbst die Handschellen geknackt!"); return 1; }
    if(PlayerCuffed[giveplayerid])
    {
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* Wheelman %s hat dir die Handschellen geknackt.", sendername);
    SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Du knackst %s die Handschellen ab.", giveplayer);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    GameTextForPlayer(giveplayerid, "~g~Entfesselt", 2500, 3);
    RemovePlayerAttachedObject(giveplayerid,0);
    SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_NONE);
    UnFreezePlayer(giveplayerid);
    PlayerCuffed[giveplayerid] = 0;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Der Spieler ist nicht gecufft!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Der Spieler ist nicht in deiner Nähe!");
    return 1;
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Dieser Spieler ist Offline!");
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Du bist kein Wheelman!");
    }
    }//not connected
    return 1;


    Viel Spaß

    @Invictus http://forum.sa-mp.com/showthread.php?t=282801 genau das ist der Standart Map Editor.


    Es gibt sogar ein Tutorial [

    Externer Inhalt www.youtube.com
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
    Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.
    ]


    Hier habe ich gelernt wie man mit dem Map Editor um geht

    Hallo.


    ich wollte fragen wie man einen API setzt.


    Ich brauche eine API und die dll.


    weil ich nicht weiß wo man es downloaden kann.


    Und wie macht man einen Killzähler?


    Weil auf meinem Keybinder. Zeile 45 muss ein Killzähler stehen also fängt mein KIllzähler an


    Killzähler:
    :?:/g::
    Suspend Permit
    IniRead, Kills, Killzähler.ini, Optionen, Kills ;
    Kills++
    IniWrite, %Kills%, Killzähler.ini, Optionen, Kills
    GetZoneName(MyZone)
    SendInput t/f DEINNAME hat wieder zugeschlagen in %MyZone%. Gesamte Snacks: %Kills%{Enter}
    sleep 100
    Sendinput tSteh auf, es ist kalt auf dem Boden {Enter}
    return

    Hallo Leute.


    ich verlose meine SAMP Server und wollte mal daraus einen kleinen Spiel machen :) [Hoffe es ist nicht verboten]


    Ich habe eine Zahl aus 1-50 ausgedacht.


    Ihr müsst einfach diesen Thema Liken und mit einer Antwort eure Zahl rein senden.


    Und der Gewinner bekommt denn SAMP Server


    SAMP Server:
    Slots: 75
    NPC: 75
    + Anfangs Roleplay Script


    Ein Tipp die Zahl ist irgendwo in einem Thema die ich jetzt erstellen werde

    Ach und hier kam das



    C:\Users\korha\Desktop\German Reality\pawno\include\dini.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\pawno\include\utils.inc(1) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\pawno\include\utils.inc(52) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\pawno\include\morphinc.inc(5) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\pawno\include\morphinc.inc(5) : warning 219: local variable "y" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\pawno\include\morphinc.inc(5) : warning 219: local variable "z" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\pawno\include\M_Bot.inc(147) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\pawno\include\M_Bot.inc(285) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\pawno\include\M_Bot.inc(292) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\pawno\include\M_Bot.inc(486) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\pawno\include\M_Bot.inc(801) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\pawno\include\MD5.inc(312) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3701) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3701) : warning 219: local variable "y" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3701) : warning 219: local variable "z" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3717) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3717) : warning 219: local variable "y" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3717) : warning 219: local variable "z" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3738) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3781) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3791) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3809) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3819) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3876) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(3877) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(4176) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(4178) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(4416) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(4955) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(5256) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(5258) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(5258) : warning 219: local variable "y" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(5258) : warning 219: local variable "z" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(5305) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(5305) : warning 219: local variable "y" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(5305) : warning 219: local variable "z" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(5372) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(5383) : warning 219: local variable "x" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6094) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6126) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6145) : warning 202: number of arguments does not match definition
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6145) : warning 202: number of arguments does not match definition
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6158) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6177) : warning 202: number of arguments does not match definition
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6177) : warning 202: number of arguments does not match definition
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6191) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6229) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6239) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6259) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6354) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6369) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6416) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6431) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6484) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6603) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6620) : warning 202: number of arguments does not match definition
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6620) : warning 202: number of arguments does not match definition
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6630) : warning 202: number of arguments does not match definition
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(6630) : warning 202: number of arguments does not match definition
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7678) : warning 219: local variable "string" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7679) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7719) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7721) : error 021: symbol already defined: "GetPlayerPos"
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7725) : error 021: symbol already defined: "GetPlayerPos"
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7730) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7738) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7740) : error 021: symbol already defined: "M_GivePlayerMoney"
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7740) : warning 215: expression has no effect
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7740) : error 001: expected token: ";", but found ")"
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7741) : error 021: symbol already defined: "M_SetPlayerHealth"
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7744) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7757) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7761) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7766) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7770) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7774) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7779) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7783) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7785) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7787) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7793) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7797) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7802) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7804) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7808) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7812) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7818) : error 010: invalid function or declaration
    C:\Users\korha\Desktop\German Reality\gamemodes\German-Reality.pwn(7820) : error 010: invalid function or declaration


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



    26 Errors.




    Ich habe es so eingefügt



    Function OnPlayerDeath(playerid, killerid, reason)
    {
    GW_OnPlayerDeath(playerid, killerid, reason);
    M_OnPlayerDeath(playerid,killerid,reason);
    if(killerid != INVALID_PLAYER_ID)
    {
    if(killerid == playerid)
    {
    SendClientMessage(playerid,0xFFD70000,"Du hast dich selbst getötet!");
    }
    else
    {
    new string[128],string2[128];
    new name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    GetPlayerName(killerid,name2,sizeof(name2));
    format(string,sizeof(string),"Du wurdest von %s getötet.",name2);
    format(string2,sizeof(string2),"Du hast den Spieler %s getötet.",name);
    SendClientMessage(playerid,0xFFD70000,string);
    SendClientMessage(killerid,0xFFD70000,string2);
    }
    }

    An @IceWave & alle anderen



    Function OnPlayerDeath(playerid, killerid, reason)
    {
    GW_OnPlayerDeath(playerid, killerid, reason);
    M_OnPlayerDeath(playerid,killerid,reason);
    if(killerid != INVALID_PLAYER_ID) {
    {
    if(killerid == playerid)
    {
    SendClientMessage(killerid, 0xFFD70000, " Du wurdest von ss getötet.");
    } else {
    SendClientMessage(killerid, 0xFF009B00, " Du hast den Spieler ss getötet.");
    }
    }


    bei mir ist dies anders wie soll das so gemacht werden

    Ja aber wie mache ich das der Killer also der, der die Person getötet hat eine Nachricht bekommt. das er die Person gekillt hat.
    Und wie bekommt der gekillte eine Message.


    Muss man irgendwelche Variabelen setzen?
    Wenn ja, welche?

    Hallo.


    Ist dies richtig Formuliert?



    SendClientMessage(killerid, 0xFFD70000, " Du wurdest von %s getötet.", playerid);
    } else {
    SendClientMessage(killerid, 0xFF009B00, " Du hast den Spieler %s getötet.", issuerid);