Beiträge von HandsUper

    Hallo Leute


    Mein Arrest System ist so dass man einen Spieler nur durch die Aktion Gestellt oder nicht gestellt einsperren kann. Keine Spieler ID oder.
    Der Spieler muss nur in deiner Nähe sein. Ich würde es gerne so haben dass man die Spieler ID eingeben kann und die Sekunden.
    Kein gestellt oder nicht sondern einfach nur selber entscheiden kann wv Sekunden der sitzt. Natürlich muss der Spieler auch Wanteds besitzen.


    z.B /arrest [Spieler-ID] [Sekunden]


    Wie mache ich das??


    Ich freue mich auf eure Hilfe.



    if(strcmp(cmd, "/arrest", true) == 0)
    {
    if(IsACop(playerid))
    {
    if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 2)
    {
    SendClientMessage(playerid,rot,"Du bist nicht im Dienst!");
    return 1;
    }
    if(IsPlayerInRangeOfPoint(playerid,2.0,X,Y,Z) || IsPlayerInRangeOfPoint(playerid,3.0,X,Y,Z))
    {
    new suspect = GetClosestPlayer(playerid);
    if(IsACop(suspect))
    {
    SendClientMessage(playerid,rot,"Du kannst keine Polizisten einsperren");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_WHITE, "Benutze: /arrest [Aktion]");
    SendClientMessage(playerid, COLOR_WHITE, "Aktion: 1-Nicht Gestellt, 2-Gestellt");
    return 1;
    }
    if(strcmp(tmp, "1", true) == 0)
    {
    if(IsPlayerConnected(suspect))
    {
    if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
    {
    moneys = WantedLevel[suspect] * 1000;
    new time = WantedLevel[suspect] * 120;
    GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(WantedLevel[suspect] < 1)
    {
    SendClientMessage(playerid,rot, "Der Spieler wird nicht gesucht!");
    return 1;
    }
    GivePlayerMoney(playerid, moneys/2);
    FraktionsKasse[0] += moneys/2;
    format(string, sizeof(string), "Du hast %s eingesperrt. Geldstrafe [%d$], Zeit %d Sekunden!", giveplayer,moneys, time);
    SendClientMessage(playerid, COLOR_GREEN, string);
    GivePlayerMoney(suspect, -moneys);
    format(string, sizeof(string), "Du wurdest von %s für %d Sekunden eingesperrt. [Geldstrafe %d$]", sendername, time, moneys);
    SendClientMessage(suspect,rot, string);
    UnFreezePlayer(suspect);
    ResetPlayerWeapons(suspect);
    if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
    {
    format(string, sizeof(string), "<< Officer %s hat den Verdächtigen %s eingesperrt >>", sendername, giveplayer);
    OOCNews(0x1E4C99FF, string);
    }
    else if(PlayerInfo[playerid][pMember]==2)
    {
    format(string, sizeof(string), "<< Polizist %s hat den Verdächtigen %s eingesperrt >>", sendername, giveplayer);
    OOCNews(0x1E4C99FF, string);
    }
    else if(PlayerInfo[playerid][pLeader]==2)
    {
    format(string, sizeof(string), "<< FBI-Leader %s hat den Verdächtigen %s eingesperrt >>", sendername, giveplayer);
    OOCNews(0x1E4C99FF, string);
    }
    if(PolizeiZellen == 0)
    {
    SetPlayerInterior(suspect,0);
    SetPlayerPos(suspect,X,Y,Z);
    SetPlayerFacingAngle(suspect,270.000);
    SetPlayerVirtualWorld(suspect,0);
    PolizeiZellen += 1;
    }
    PlayerInfo[suspect][pJailTime] = time;
    PlayerInfo[suspect][pJailed] = 1;
    PlayerInfo[suspect][pArrested] += 1;
    SetPlayerInterior(suspect, 0);
    WantedPoints[suspect] = 0;
    WantedLevel[suspect] = 0;
    SetPlayerWantedLevel(suspect,0);
    }
    else
    {
    SendClientMessage(playerid,rot, "Es befindet sich kein Spieler in deiner Nähe");
    }
    }
    else
    {
    SendClientMessage(playerid,rot, "Es befindet sich kein Spieler in deiner Nähe!");
    }
    }
    else if(strcmp(tmp, "2", true) == 0)
    {
    if(IsPlayerConnected(suspect))
    {
    if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
    {
    moneys = WantedLevel[suspect] * 500;
    new time = WantedLevel[suspect] * 60;
    GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(WantedLevel[suspect] < 1)
    {
    SendClientMessage(playerid,rot, "Der Spieler ist nicht gesucht!");
    return 1;
    }
    GivePlayerMoney(playerid, moneys/2);
    FraktionsKasse[0] += moneys/2;
    format(string, sizeof(string), "Du hast %s eingesperrt für %d$ und %d Sekunden!", giveplayer,moneys, time);
    SendClientMessage(playerid, COLOR_GREEN, string);
    GivePlayerMoney(suspect, -moneys);
    format(string, sizeof(string), "Du wurdest von %s für %d Sekunden und für %d$ eingesperrt", sendername, time, moneys);
    SendClientMessage(playerid,rot, string);
    ResetPlayerWeapons(suspect);
    if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
    {
    format(string, sizeof(string), "<< Officer %s hat den Verdächtigen %s eingesperrt >>", sendername, giveplayer);
    OOCNews(0x1E4C99FF, string);
    }
    else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
    {
    format(string, sizeof(string), "<< FBI-Agent %s hat den Verdächtigen %s eingesperrt >>", sendername, giveplayer);
    OOCNews(0x1E4C99FF, string);
    }
    else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
    {
    format(string, sizeof(string), "<< Soldat %s hat den Verdächtigen %s eingesperrt >>", sendername, giveplayer);
    OOCNews(0x1E4C99FF, string);
    }
    if(PolizeiZellen == 0)
    {
    SetPlayerInterior(suspect,0);
    SetPlayerPos(suspect,X,Y,Z);
    SetPlayerFacingAngle(suspect,270.000);
    SetPlayerVirtualWorld(suspect,0);
    PolizeiZellen += 1;
    }
    PlayerInfo[suspect][pJailTime] = time;
    PlayerInfo[suspect][pJailed] = 1;
    PlayerInfo[suspect][pArrested] += 1;
    SetPlayerInterior(suspect, 0);
    WantedPoints[suspect] = 0;
    WantedLevel[suspect] = 0;
    SetPlayerWantedLevel(suspect,0);
    }
    else
    {
    SendClientMessage(playerid,rot, "Es befindet sich kein Spieler in deiner Nähe!");
    }
    }
    else
    {
    SendClientMessage(playerid, rot, "Spieler ist nicht online!");
    }
    }
    }
    else
    {
    SendClientMessage(playerid,rot, "Du bist nicht an der Zelle!");
    }
    }
    else
    {
    SendClientMessage(playerid,rot, "Du bist kein Polizist");
    }
    return 1;
    }




    Mit freundlichen Grüßen

    Hmm ka was Schuld ist aber es klappt nicht Pfffff



    if(newkeys == KEY_CTRL_BACK)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0, 1589.60828, -1638.15710, 14.57770)) OnPlayerCommandText(playerid,"/mv");
    else if(IsPlayerInRangeOfPoint(playerid,10.0, 1544.68750, -1630.83167, 13.11210)) OnPlayerCommandText(playerid,"/mv2");
    }
    else OnPlayerCommandText(playerid, "/enter");
    }

    Doch habe ich auch vorhin so eingefügt. Es klappt trotzdem nicht :/



    if(newkeys & KEY_CTRL_BACK)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0, X, -Y, Z)) OnPlayerCommandText(playerid,"/mv");
    else if(IsPlayerInRangeOfPoint(playerid,10.0, X, -Y, Z)) OnPlayerCommandText(playerid,"/mv2");
    }
    else OnPlayerCommandText(playerid, "/enter");
    }

    Wo ist mein Fehler :D Hab ehrlich ka warum es nicht geht



    if(newkeys & KEY_CTRL_BACK)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    if(IsPlayerInRangeOfPoint(playerid,10.0, X, Y, Z))
    {
    OnPlayerCommandText(playerid,"/mv");
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0, X, Y, Z))
    {
    OnPlayerCommandText(playerid,"/mv2");
    }
    else OnPlayerCommandText(playerid, "/kacken");
    }
    }


    MFG

    Guten Abend Leute


    Ich habe versucht ein Fahrzeug Hupe Tor System zu erstellen aber es klappt irgendwie nicht :/
    Ich möchte dass das Tor geöffnet wird indem man hupt.


    Was mache ich falsch???



    if(newkeys == KEY_CTRL_BACK)
    {
    if(PlayerInfo[playerid][pTot] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, "Tote können keine Befehle nutzen!");
    return 1;
    }
    if(IsPlayerConnected(playerid))
    {
    OnPlayerCommandText(playerid, "/enter");
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0, X, Y, Z))
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    OnPlayerCommandText(playerid,"/gate");
    }
    else if(IsPlayerInRangeOfPoint(playerid,10.0, X, Y, Z))
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    OnPlayerCommandText(playerid,"/gate2");
    }
    }
    }
    }



    Mit freundlichen Grüßen

    Hallo Breadfish


    Wie kann man es scripten dass wenn man ein Befehl ausgeführt hat. Eine Zeit abwarten muss um es nochmal benutzen zu können.


    Nehmen wir diesen Befehl als Beispiel.




    if(strcmp(cmd,"/hotdog",true)==0)
    {
    if(IsPlayerInRangeOfPoint(playerid,2.0,X, Y, Z))
    {
    OnPlayerCommandText(playerid,"/me hat ein HotDog gegessen");
    SetPlayerHealth(playerid,100);
    GivePlayerMoney(playerid,-2);
    }
    return 1;
    }


    Mit freundlichen Grüßen

    Hallo @Douq



    Function OnPlayerSpawn(playerid)
    {



    Spawned[playerid] = 1;
    SetPlayerHealth(playerid,100);
    TextDrawShowForPlayer(playerid, spawnschutz);
    SetTimerEx("EndAntiSpawnKill", 10000, false, "i", playerid);
    if (PlayerInfo[playerid][pAdmin] > 0)
    {
    TextDrawShowForPlayer(playerid,OTickets[playerid]);
    }
    M_OnPlayerSpawn(playerid);
    GW_OnPlayerSpawn(playerid);
    StopAudioStreamForPlayer(playerid);
    TextDrawShowForPlayer(playerid,Copyright);




    if(PlayerInfo[playerid][pTot] == 1) //Wenn man stirbt.
    {
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_WHITE, " ");
    SendClientMessage(playerid, COLOR_GREEN, "Los Santos Krankenhaus ");
    SendClientMessage(playerid, COLOR_WHITE, "Du bist nun im Krankenhaus");
    SendClientMessage(playerid, COLOR_WHITE, "Die Ärzte werden dir helfen");
    SendClientMessage(playerid, COLOR_WHITE, "Du wirst in 60 Sekunden geheilt");
    SetPlayerHealth(playerid, 100);
    SetPlayerSkin(playerid,2);
    SetPlayerPos(playerid,1167.3525, -1320.1394, 24.2600);
    SetPlayerCameraPos(playerid,1218.57, -1321.66, 26.01);
    SetPlayerCameraLookAt(playerid,1215.94, -1321.66, 26.01);
    SetPlayerColor(playerid,TEAM_HIT_COLOR);
    FreezePlayer(playerid);
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);


    if(IsPlayerInFrac(playerid, 1))
    {
    SetPlayerColor(playerid,NAMECOLOR_LSCOP);
    }
    else if(IsPlayerInFrac(playerid, 4))
    {
    SetPlayerColor(playerid, NAMECOLOR_MEDIC);
    }
    else
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR);
    }
    ResetPlayerWeapons(playerid);
    return 1;
    }
    STDPlayer[playerid] = 0;
    gTeam[playerid] = PlayerInfo[playerid][pTeam]; //Set the Team
    if (gTeam[playerid] == 4) //medic / criminal reset team
    {
    gTeam[playerid] = 3;
    }
    if(gPlayerLogged[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "Um spielen zu können, musst du dir einen Account erstellen oder dich einloggen!");
    Kick(playerid);
    return 1;
    }
    if(AtClothes[playerid] == 1)
    {
    PlayerInfo[playerid][pChar] = GetPlayerSkin(playerid);
    PlayerInfo[playerid][pModel] = GetPlayerSkin(playerid);
    AtClothes[playerid] = 0;


    }
    if(gTeam[playerid] == 11 && PlayerInfo[playerid][pLeader] < 1)
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_GREEN, "Du hast dein Skin erfolgreich geändert.");
    PlayerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0); // NACH SKIN WECHSEL
    PlayerInfo[playerid][pModel] = CIV[rand];
    SpawnPlayer(playerid);



    }
    if(gTeam[playerid] == 5)
    {
    if(PlayerInfo[playerid][pMember] < 1)
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_ORANGE, "Du hast dein Skin erfolgreich geändert.");
    PlayerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
    PlayerInfo[playerid][pModel] = CIV[rand];
    SpawnPlayer(playerid);
    }
    }
    if(gTeam[playerid] == 10)
    {
    if(PlayerInfo[playerid][pMember] != 8)
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    PlayerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
    PlayerInfo[playerid][pModel] = CIV[rand];
    SpawnPlayer(playerid);
    }
    }
    if(gTeam[playerid] == 2 && !IsACop(playerid))
    {
    MedicBill[playerid] = 0;
    new rand = random(sizeof(CIV));
    SendClientMessage(playerid, COLOR_LIGHTRED, "");
    PlayerInfo[playerid][pTeam] = 3;
    gTeam[playerid] = 3;
    SetSpawnInfo(playerid, gTeam[playerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
    PlayerInfo[playerid][pModel] = CIV[rand];
    SpawnPlayer(playerid);
    }
    if(gTeam[playerid] == 3)
    {
    if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pLeader] > 0)
    {
    MedicBill[playerid] = 0;
    new model = PlayerInfo[playerid][pChar];
    if(PlayerInfo[playerid][pMember] == 1) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 2) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 3) { SetSpawnInfo(playerid, 2, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 2; gTeam[playerid] = 2; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 4) { SetSpawnInfo(playerid, 1, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 1; gTeam[playerid] = 1; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 5) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 6) { SetSpawnInfo(playerid, 5, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 5; gTeam[playerid] = 5; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 7) { SetSpawnInfo(playerid, 7, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 7; gTeam[playerid] = 7; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 8) { SetSpawnInfo(playerid, 10, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 10; gTeam[playerid] = 10; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 9) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 10) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 11) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pMember] == 12) { SetSpawnInfo(playerid, 12, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Triaden
    else if(PlayerInfo[playerid][pMember] == 13) { SetSpawnInfo(playerid, 13, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Groove Street
    else if(PlayerInfo[playerid][pMember] == 14) { SetSpawnInfo(playerid, 14, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Bloodz
    else if(PlayerInfo[playerid][pMember] == 15) { SetSpawnInfo(playerid, 15, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//2fast
    else if(PlayerInfo[playerid][pMember] == 16) { SetSpawnInfo(playerid, 16, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Los Santos Vagos
    else if(PlayerInfo[playerid][pMember] == 17) { SetSpawnInfo(playerid, 17, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Varios Los Aztecas
    else if(PlayerInfo[playerid][pMember] == 18) { SetSpawnInfo(playerid, 18, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Cripz
    else if(PlayerInfo[playerid][pMember] == 19) { SetSpawnInfo(playerid, 19, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//West Coast Customs
    else if(PlayerInfo[playerid][pMember] == 20) { SetSpawnInfo(playerid, 20, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//
    else if(PlayerInfo[playerid][pMember] == 21) { SetSpawnInfo(playerid, 21, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//
    else if(PlayerInfo[playerid][pMember] == 22) { SetSpawnInfo(playerid, 22, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//
    else if(PlayerInfo[playerid][pMember] == 23) { SetSpawnInfo(playerid, 23, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//
    else if(PlayerInfo[playerid][pMember] == 24) { SetSpawnInfo(playerid, 24, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//
    else if(PlayerInfo[playerid][pMember] == 25) { SetSpawnInfo(playerid, 25, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// CarliCartell
    else if(PlayerInfo[playerid][pLeader] == 1) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 2) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 3) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 4) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 5) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 6) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 7) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 8) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 9) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 10) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 11) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 11; gTeam[playerid] = 11; PlayerInfo[playerid][pModel] = model; }
    else if(PlayerInfo[playerid][pLeader] == 12) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Triaden
    else if(PlayerInfo[playerid][pLeader] == 13) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Groove Street
    else if(PlayerInfo[playerid][pLeader] == 14) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Bloodz
    else if(PlayerInfo[playerid][pLeader] == 15) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//2fast
    else if(PlayerInfo[playerid][pLeader] == 16) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Los Santos Vagos
    else if(PlayerInfo[playerid][pLeader] == 17) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Varios Los Aztecas
    else if(PlayerInfo[playerid][pLeader] == 18) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//Cripz
    else if(PlayerInfo[playerid][pLeader] == 19) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }//West Coast Customs
    else if(PlayerInfo[playerid][pLeader] == 20) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// Terroristen
    else if(PlayerInfo[playerid][pLeader] == 21) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// Wheelman
    else if(PlayerInfo[playerid][pLeader] == 23) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// Grundwehrdienst
    else if(PlayerInfo[playerid][pLeader] == 22) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// Feuerwehr
    else if(PlayerInfo[playerid][pLeader] == 24) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// Oamt
    else if(PlayerInfo[playerid][pLeader] == 25) { SetSpawnInfo(playerid, 11, model,0.0,0.0,0.0,0,0,0,0,0,0,0); PlayerInfo[playerid][pTeam] = 12; gTeam[playerid] = 12; PlayerInfo[playerid][pModel] = model; }// Cali Cartell
    //SetSpawnInfo(playerid, team, model,0.0,0.0,0.0,0,0,0,0,0,0,0);
    SpawnPlayer(playerid);



    }
    }
    if(!gPlayerAnimLibsPreloaded[playerid])
    {
    PreloadAnimLib(playerid,"BOMBER");
    PreloadAnimLib(playerid,"RAPPING");
    PreloadAnimLib(playerid,"SHOP");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"SMOKING");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"DEALER");
    PreloadAnimLib(playerid,"CRACK");
    PreloadAnimLib(playerid,"CARRY");
    PreloadAnimLib(playerid,"COP_AMBIENT");
    PreloadAnimLib(playerid,"PARK");
    PreloadAnimLib(playerid,"INT_HOUSE");
    PreloadAnimLib(playerid,"FOOD");
    gPlayerAnimLibsPreloaded[playerid] = 1;
    }
    if(PlayerInfo[playerid][pChar] > 0) { SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]); }
    else { SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]); }
    //SetPlayerWeapons(playerid);
    SetPlayerSpawn(playerid);
    SetPlayerToTeamColor(playerid);
    PlayerFixRadio(playerid);



    if(MapIconsShown[playerid] != 1)
    {


    MapIconsShown[playerid] = 1;
    /* SetPlayerMapIcon(playerid, 59, 2001.7866,-1128.8413,25.4584, 59, COLOR_YELLOW); //Bloodz Map Icon
    SetPlayerMapIcon(playerid, 62, 2487.4963,-1669.9874,13.3359, 62, COLOR_YELLOW); //Crips Map Icon
    SetPlayerMapIcon(playerid, 60, -2188.5515,988.2034,80.0000, 60, COLOR_YELLOW); //Bloodz Map Icon
    SetPlayerMapIcon(playerid, 52, -2651.4575,376.0330,5.6843, 52, COLOR_YELLOW); // /Bank SF Icon
    SetPlayerMapIcon(playerid, 23, -793.5161,1548.3273,27.1172, 21, COLOR_YELLOW); //BSN Map Icon
    SetPlayerMapIcon(playerid, 23, -1483.2383,2633.9021,58.7813, 23, COLOR_YELLOW); //Waffenladen Map Icon*/
    SetPlayerMapIcon(playerid, 42, 1944.0486,-1775.4786,13.3906, 42, COLOR_YELLOW); //Tanke Icon
    SetPlayerMapIcon(playerid, 22, 1169.5400,-1320.0100,24.2600, 22, COLOR_YELLOW); //Krankenhaus Icon
    SetPlayerMapIcon(playerid, 52, 1166.1927,-1641.5510,14.0000, 52, COLOR_YELLOW); // /Bank LS Icon
    SetPlayerMapIcon(playerid, 27, -1935.9150,237.0524,34.3125, 27, COLOR_YELLOW); //Tuning Garage Icon
    SetPlayerMapIcon(playerid, 27, -2714.2554,217.5764,4.2854, 27, COLOR_YELLOW); //Tuning Garage Icon 2 für S E T
    SetPlayerMapIcon(playerid, 61, 2769.3811,-1943.4061,13.3762, 61, COLOR_YELLOW); //Varrios Los Aztecas Icon
    SetPlayerMapIcon(playerid, 6, 1368.4399,-1279.7990,13.5469, 6, COLOR_YELLOW); //Ammunation
    SetPlayerMapIcon(playerid, 45, 1457.4734,-1137.6210,23.9780, 45, COLOR_YELLOW); //Skin Shop
    SetPlayerMapIcon(playerid, 25, 1396.9078,-1569.9150,14.3077, 25, COLOR_YELLOW); // /Stadthalle LS Icon


    }
    if(PlayerInfo[playerid][pGangJailed] == 1)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, -86.5283,-103.4094,3.1181);
    SendClientMessage(playerid, COLOR_LIGHTRED, " Du befindest dich noch im GangJail!");
    return 1;
    }
    if(PlayerInfo[playerid][pwJailed] == 1)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 769.7139,-1446.7474,13.7101);
    SendClientMessage(playerid, COLOR_LIGHTRED, " Du befindest dich noch im wJail!");
    return 1;
    }
    return 1;
    }


    GW_OnPlayerSpawn



    forward GW_OnPlayerSpawn(playerid);
    public GW_OnPlayerSpawn(playerid){
    if(!GetPVarInt(playerid,"Spawned")){
    SetPVarInt(playerid,"Spawned",1);
    for(new fs;fs<sizeof(FightSystem);fs++){
    if(FightSystem[fs][fsAttackFaction] != -255 && FightSystem[fs][fsFightTime]){
    GangZoneFlashForPlayer(playerid,FightSystem[fs][fsZoneID],GetZoneColorOfFaction(FightSystem[fs][fsAttackFaction]));
    if(GetPlayerFaction(playerid) == FightSystem[fs][fsOwnerFaction] || GetPlayerFaction(playerid) == FightSystem[fs][fsAttackFaction]){
    TextDrawShowForPlayer(playerid,GANGFIGHT);
    TextDrawShowForPlayer(playerid,FightSystem[fs][fsWinFaction]);
    TextDrawShowForPlayer(playerid,FightSystem[fs][fsLoseFaction]);
    TextDrawShowForPlayer(playerid,FightSystem[fs][fsWinKills]);
    TextDrawShowForPlayer(playerid,FightSystem[fs][fsLoseKills]);
    TextDrawShowForPlayer(playerid,FightSystem[fs][fsTime]);
    }
    }
    }
    }return 1;
    }


    MFG

    Hallo @Douq




    public OnPlayerDeath(playerid, killerid, reason)
    {
    M_OnPlayerDeath(playerid,killerid,reason);
    GW_OnPlayerDeath(playerid, killerid, reason); // Das hier ist der Gangfight SysteM Kill
    SendDeathMessage(killerid, playerid, reason);
    if(PlayerInfo[playerid][pBankrob] == 1)
    {
    if(PlayerInfo[playerid][pbarena] == 1)
    {
    GivePlayerMoney(killerid,25);
    GivePlayerMoney(playerid,-25);
    GameTextForPlayer(killerid, "~g~KILL+!", 1000,5);
    }
    if(GetPlayerScore(killerid) == 1)
    {
    new name[MAX_PLAYER_NAME], string[70];
    GetPlayerName(killerid, name, sizeof(name));format(string, sizeof(string), "[Anti-DM]: Spieler %s wurde vom Server gekickt + Warn. [Grund]: DM als Neuling.",name);
    SendClientMessageToAll(rot, string);
    Kick(killerid);
    }


    new name[MAX_PLAYER_NAME];
    new string[256];
    PlayerInfo[playerid][pInvWeapon] = 0;
    PlayerInfo[playerid][pInvAmmo] = 0;
    PlayerInfo[playerid][pInvWeapon2] = 0;
    PlayerInfo[playerid][pInvAmmo2] = 0;
    FrakMatsHolding[playerid] = 0;
    new playercash;
    new victimteam;
    // new killerteam;
    if(PlayerInfo[playerid][pJailed] == 0 && PlayerInfo[playerid][sparena] == 0 && PlayerInfo[playerid][pbarena] == 0 && KHSperre[playerid] == 0 && PlayerInfo[playerid][pwJailed] == 0 && PlayerInfo[playerid][pGangJailed] == 0 && PlayerPaintballing[playerid] == 0)
    {
    PlayerInfo[playerid][pTot] = 1;
    }
    if(gPlayerUsingLoopingAnim[playerid])
    {
    gPlayerUsingLoopingAnim[playerid] = 0;
    }
    if(PlayerOnFire[playerid])
    {
    SendClientMessage(playerid, 0xff000000, "Du bist verbrannt!"); StopPlayerBurning(playerid);
    }
    if(BlindFold[playerid] == 1)
    {
    BlindFold[playerid] = 0;
    }
    if(PlayerInfo[playerid][pMauled] == 1)
    {
    PlayerInfo[playerid][pMauled] = 0;
    }
    if(IsBlacklist[playerid]==1)
    {
    ClearBlack(playerid);
    IsBlacklist[playerid]=0;
    }
    InCargo[playerid] = 0; InShamal[playerid] = 0;
    if(FirstSpawn[playerid] == 1)
    {
    FirstSpawn[playerid] = 0;
    }


    if (WantedLevel[playerid] >= 1)
    {
    new price = WantedLevel[playerid] * 150;
    //new count;
    if (IsACop(killerid))
    {
    // COP
    format(string, sizeof(string), "COPKILL", price);
    GameTextForPlayer(killerid, string, 2000, 1);
    ConsumingMoney[killerid] = 1;
    FraktionsKasse[0] += price/2;
    FraktionsKasse[1] += price/2;
    FraktionsKasse[2] += price/2;
    PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
    // VERBRECHER
    GivePlayerMoney(playerid, -price);
    PlayerInfo[playerid][pWantedDeaths] += 1;
    PlayerInfo[playerid][pJailed] = 1;
    SpawnPlayer(playerid);
    PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid] * 120);
    format(string, sizeof(string), "Du musst für %d Sekunden ins Gefängnis-[Strafe: $%d]", PlayerInfo[playerid][pJailTime], price);
    GameTextForPlayer(playerid, "~r~BUSTED", 2300,5);
    SendClientMessage(playerid, rot, string);
    WantedPoints[playerid] = 0;
    WantedLevel[playerid] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    }
    }


    gPlayerSpawned[playerid] = 0;
    GetPlayerName(playerid, name, sizeof(name));
    PlayerInfo[playerid][pLocal] = 255;
    if(killerid != 255)
    if(reason == 38)
    {
    new kstring[128];
    new kickname[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid))
    {
    GetPlayerName(killerid, kickname, sizeof(kickname));
    format(string, 256, "Warnung: [%d]%s hat einen Spieler mit einer Minigun gekillt. ACHTUNG [CheatVerdacht].",killerid,kickname);
    ABroadCast(COLOR_YELLOW,string,1);
    printf("%s", kstring);
    }
    }
    if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
    {
    DisablePlayerCheckpoint(playerid);
    gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
    }
    new caller = Mobile[playerid];
    if(caller != 255)
    {
    if(caller < 255)
    {
    SendClientMessage(caller, rot, "Die Verbindung wurde unterbrochen....");
    CellTime[caller] = 0;
    CellTime[playerid] = 0;
    Mobile[caller] = 255;
    }
    Mobile[playerid] = 255;
    CellTime[playerid] = 0;
    }
    ClearCrime(playerid);
    if(PlayerPaintballing[playerid] != 0)
    {
    PlayerPaintballKills[killerid] ++;
    if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
    {
    new killer[MAX_PLAYER_NAME];
    PaintballWinner = killerid;
    SetPlayerInterior(playerid, 10);
    PaintballWinnerKills = PlayerPaintballKills[killerid];
    GetPlayerName(killerid, killer, sizeof(killer));
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerPaintballing[i] != 0)
    {
    format(string, sizeof(string), "* %s ist mit %d Kills in Führung.",killer,PaintballWinnerKills);
    SendClientMessage(i, COLOR_WHITE, string);
    }
    }
    }
    }
    return 1;
    }
    if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
    {
    if(IsPlayerConnected(killerid))
    {
    if(GettingCK[killerid] < 999 || OnCK[playerid] < 999)
    {
    new killer[MAX_PLAYER_NAME];
    new dier[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dier, sizeof(dier));
    GetPlayerName(killerid, killer, sizeof(killer));
    format(string, sizeof(string), "* %s hat deinen Charakter gesperrt, du kannst nun mit diesem Charakter nicht mehr Spielen.",killer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "** %s hat den Spieler %s erledigt**",killer,dier);
    CKLog(string);
    PlayerInfo[playerid][pCK] = 1;
    if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
    else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
    if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
    else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
    KickPlayer[playerid] = 1;
    }
    }
    }
    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(PlayerInfo[killerid][pMember] == 8 || PlayerInfo[killerid][pLeader] == 8)
    {
    if(GoChase[killerid] == playerid)
    {
    ConsumingMoney[killerid] = 1;
    new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    new fkasse = PlayerInfo[playerid][pHeadValue]/2;
    FraktionsKasse[7] += fkasse;
    GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]/2);
    format(string,128,"<< Hitman %s hat den Auftrag an %s erfüllt und bekommt: $%d >>",killer,name,PlayerInfo[playerid][pHeadValue]/2);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    SendClientMessage(playerid, COLOR_YELLOW, "Du wurdest von einem Hitman getötet, da auf dich ein Contract gesetz war.");
    PlayerInfo[playerid][pHeadValue] = 0;
    GotHit[playerid] = 0;
    GetChased[playerid] = 999;
    GoChase[killerid] = 999;
    }
    }
    }
    }


    if(victimteam >= 4)
    {
    if(IsPlayerConnected(killerid))
    {
    new slice = 100; //$100
    playercash = GetPlayerMoney(playerid);
    if(gTeam[killerid] != 2 && PlayerInfo[killerid][pMember] != 7) { WantedPoints[killerid] += 2; } //+ 2 wanted points
    if(SafeTime[playerid] <= 0)
    {
    if(gTeam[killerid] != gTeam[playerid])
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 1;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    PlayerInfo[playerid][pDeaths]++;
    }
    }
    if (playercash > 0)
    {
    GivePlayerMoney(playerid, -slice);
    }
    else
    {
    slice = slice+500;
    }
    GivePlayerMoney(killerid, slice);
    PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
    if (((gTeam[killerid]) == 3) && reason != 49 && PlayerInfo[killerid][pJailed] == 0 && !IsPlayerInArea(killerid, 560.538, -724.0283, 875.8406, -362.0141))
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    else if (victimteam == 2)
    {
    if(IsPlayerConnected(killerid))
    {
    // Cop kill
    PlayerInfo[playerid][pKills]--;
    if (gTeam[killerid] == 2)//cops kill cop
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    if (gTeam[killerid] >= 3)
    {
    WantedPoints[killerid] += 2; //+ 2 wanted points
    if(reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    if(gTeam[killerid] >= 5 && SafeTime[playerid] <= 0)
    {
    if(GetPlayerState(killerid) == 1)
    {
    PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills]+2;
    }
    else
    {
    PlayerInfo[killerid][pKills]++;
    }
    WantedPoints[killerid]+=2;
    }
    }
    }
    else if (victimteam == 3)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2 || PlayerInfo[killerid][pMember] == 7)//cops kill civ
    {
    if(WantedLevel[playerid] < 1)
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    }
    else
    {
    WantedPoints[killerid] += 2;
    }
    if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) >= 3 || (gTeam[killerid]) == 1) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    else if (victimteam == 1)
    {
    if(IsPlayerConnected(killerid))
    {
    // Civ kill
    if ((gTeam[killerid]) == 2)//cops kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    else if ((gTeam[killerid]) == 1)//med kill civ
    {
    PlayerPlaySound(killerid, 1084, 0.0, 0.0, 0.0);
    GivePlayerMoney(killerid, -suecost);
    GivePlayerMoney(playerid, suecost+100);//+100pays hospital bill
    }
    if (((gTeam[killerid]) == 4) && reason != 49)
    {
    SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
    }
    else if (((gTeam[killerid]) == 3) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    }
    }
    return 1;
    }


    MFG

    Hallo Leute


    Ich habe leider ein großes Problem. Wie ich vorhin geschrieben habe gibt es ein Problem beim BUSTED System.
    Die Zivis und Staatsfraktionen landen im Knast nachdem sie mit Wanteds von einem Cop gekillt wurden. Was aber bei den Gang/Mafien Mitgliedern nicht der Fall ist.
    Die Fightfactions also die Gang/Mafien landen nur im Knast wenn Sie in einem Gangfight Gebiet gekillt wurden. Aber außerhalb landen Sie ganz normal in der Base.
    Wie kann ich abfragen ob ein Gang/Mafia Mitglied umgebracht wurde damit die Fightfactions auch im Knast landen. Die Gang Mafien Mitglieder landen nie im Krankenhaus
    nach dem Tod. Sie landen im Krankenhaus nachdem Tod nur wenn sie im Gebiet getötet wurden. Der Normale OnPlayerDeath funkzuniert bei den Gang/Mafien Mitgliedern nur wenn sie im Gebiet sterben.


    Ich brauche dringend Hilfe :/ Ich kann sonst leider nicht weiter machen.



    Function IsAGang(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==5 || member==6 || member==12 || member==13 || member==14 || member==16 || member==17 || member==18 || member == 19 || member==21 || member==23 || member==25)
    {
    return 1;
    }
    else if(leader==5 || leader==6 || leader==12 || leader==13 || leader==14 || leader==16 || leader==17 || leader==18 || leader == 19 || leader==21 || leader==23 || leader==25)
    {
    return 1;
    }
    }
    return 0;
    }



    stock IsAFightFaction(Faction){
    if(Faction == 5 || Faction == 6 || Faction == 13 || Faction == 14 || Faction == 16 || Faction == 17 || Faction == 23 || Faction == 25 || Faction == 12)
    return 1;
    return 0;
    }



    if (WantedLevel[playerid] >= 1)
    {
    new price = WantedLevel[playerid] * 150;
    //new count;
    if (IsACop(killerid))
    {
    // COP
    format(string, sizeof(string), "COPKILL", price);
    GameTextForPlayer(killerid, string, 2000, 1);
    ConsumingMoney[killerid] = 1;
    FraktionsKasse[0] += price/2;
    FraktionsKasse[1] += price/2;
    FraktionsKasse[2] += price/2;
    PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
    // VERBRECHER
    {


    GivePlayerMoney(playerid, -price);
    PlayerInfo[playerid][pWantedDeaths] += 1;
    PlayerInfo[playerid][pJailed] = 1;
    SpawnPlayer(playerid);
    PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid] * 120);
    format(string, sizeof(string), "Du musst für %d Sekunden ins Gefängnis-[Strafe: $%d]", PlayerInfo[playerid][pJailTime], price);
    GameTextForPlayer(playerid, "~r~BUSTED", 2300,5);
    SendClientMessage(playerid, rot, string);
    WantedPoints[playerid] = 0;
    WantedLevel[playerid] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    }
    }
    }




    Mit freundlichen Grüßen

    Die Gang Anfrage ist die



    if(IsAGang(playerid)


    Wie füge ich das richtig ein?? @Kaliber



    if (WantedLevel[playerid] >= 1)
    {
    new price = WantedLevel[playerid] * 150;
    //new count;
    if (IsACop(killerid))
    {
    // COP
    format(string, sizeof(string), "COPKILL", price);
    GameTextForPlayer(killerid, string, 2000, 1);
    ConsumingMoney[killerid] = 1;
    FraktionsKasse[0] += price/2;
    FraktionsKasse[1] += price/2;
    FraktionsKasse[2] += price/2;
    PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
    // VERBRECHER
    if(IsAGang(playerid)) //Ist das richtig??
    {


    GivePlayerMoney(playerid, -price);
    PlayerInfo[playerid][pWantedDeaths] += 1;
    PlayerInfo[playerid][pJailed] = 1;
    SpawnPlayer(playerid);
    PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid] * 120);
    format(string, sizeof(string), "Du musst für %d Sekunden ins Gefängnis-[Strafe: $%d]", PlayerInfo[playerid][pJailTime], price);
    GameTextForPlayer(playerid, "~r~BUSTED", 2300,5);
    SendClientMessage(playerid, rot, string);
    WantedPoints[playerid] = 0;
    WantedLevel[playerid] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    }
    }
    }

    Hallo Leute


    Kann man eig auch anders fragen ob der Cop der Killer ist. Weil mein Gang System also nur die Gangs haben ein eigenes OnPlayerDeath. Es heißt Gw_OnPlayerDeath voll die kacke irgendwie.
    Das Problem ist dass bei OnPlayerDeath überlist es die Gang/Mafia Mitglieder und die landen nicht im Knast. Können wir es irgendwo anders einfügen z.B bei OnPlayerStatChange?? aber da ist das Wort Killerid ein Fehler.


    Ich freue mich auf eure Hilfe

    if (WantedLevel[playerid] >= 1)
    {
    new price = WantedLevel[playerid] * 150;
    //new count;
    if (IsACop(killerid))
    {
    // COP
    format(string, sizeof(string), "COPKILL", price);
    GameTextForPlayer(killerid, string, 2000, 1);
    ConsumingMoney[killerid] = 1;
    FraktionsKasse[0] += price/2;
    FraktionsKasse[1] += price/2;
    FraktionsKasse[2] += price/2;
    PlayerPlaySound(killerid, 1058, 0.0, 0.0, 0.0);
    // VERBRECHER
    GivePlayerMoney(playerid, -price);
    PlayerInfo[playerid][pWantedDeaths] += 1;
    PlayerInfo[playerid][pJailed] = 1;
    SpawnPlayer(playerid);
    PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid] * 120);
    format(string, sizeof(string), "Du musst für %d Sekunden ins Gefängnis-[Strafe: $%d]", PlayerInfo[playerid][pJailTime], price);
    GameTextForPlayer(playerid, "~r~BUSTED", 2300,5);
    SendClientMessage(playerid, rot, string);
    WantedPoints[playerid] = 0;
    WantedLevel[playerid] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    }
    }



    Mit freundlichen Grüßen

    Bei Function OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) wird IsACop nach gefragt


    und Wasted System bei OnPlayerStateChange


    Killerid hab ich auch nachgefragt das der Cop halt der Killer ist. Wahrscheinlich lag es an der Anzahl von den Cops oder ka was


    Ich danke dir viel mals ;)

    Guten Morgen Leute


    Ich habe ein Problem. Bei meinem Verbrecher Kill System ist es so dass der Täter im Knast landet nicht nur wenn er durch einen Cop gekillt wird sondern auch wenn er durch einen Normalen User
    gekillt wird. Also wenn der Spieler Wanteds hat und egal von wen er gekillt wird landet er im Knast. Ich habe die If(IsaCop) Anfrage ja drin aber da passt trotzdem was nicht.


    Was mache ich falsch :/ ???


    Ich freue mich auf eure Hilfe ;)



    if(newstate == PLAYER_STATE_WASTED)
    {
    if(WantedLevel[playerid] >= 1)
    {
    new price = WantedLevel[playerid] * 150;
    new count;
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsACop(i) && CrimInRange(70.0, playerid,i)) //Hier habe ich es ja geschrieben :/
    {
    count = 1;
    format(string, sizeof(string), "COPKILL", price);
    GameTextForPlayer(i, string, 2000, 1);
    ConsumingMoney[i] = 1;
    FraktionsKasse[0] += price/2;
    FraktionsKasse[1] += price/2;
    FraktionsKasse[2] += price/2;
    PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);
    }
    }
    }
    if(count == 1)
    {
    if(WantedLevel[playerid] >= 1)
    {
    GivePlayerMoney(playerid, -price);
    PlayerInfo[playerid][pWantedDeaths] += 1;
    PlayerInfo[playerid][pJailed] = 1;
    SpawnPlayer(playerid);
    PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid] * 120);
    format(string, sizeof(string), "Du musst für %d Sekunden ins Gefängnis-[Strafe: $%d]", PlayerInfo[playerid][pJailTime], price);
    GameTextForPlayer(playerid, "~r~BUSTED", 2300,5);
    SendClientMessage(playerid,rot, string);
    WantedPoints[playerid] = 0;
    WantedLevel[playerid] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    }
    }
    }
    }



    Mit freundlichen Grüßen