habe ich etwas falsch? public buggt

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
  • Hier einmal den Public von mir


    PWN QUELLTEXT GEHT NICHT ..




    public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
    {
    new string[126];
    new Damage1 = strval(string);
    if(PlayerInfo[playerid][pImDMSchutz] == 1){
    if(weaponid == 0){
    ApplyAnimation(issuerid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
    //TogglePlayerControllable(issuerid,0);
    SetTimerEx("PressJump", 1000, false, "i", issuerid);
    new Float:hp;
    GetPlayerHealth(playerid,hp);
    SetPlayerHealth(playerid,hp+Damage1);
    }
    }
    if(PlayerInfo[issuerid][pImDMSchutz] == 1){
    if(weaponid == 0){
    ApplyAnimation(issuerid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
    //TogglePlayerControllable(issuerid,0);
    SetTimerEx("PressJump", 1000, false, "i", issuerid);
    new Float:hp;
    GetPlayerHealth(playerid,hp);
    SetPlayerHealth(playerid,hp+Damage1);
    }
    }
    if(HitSound[issuerid] == 1)
    {
    PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
    }
    format(string, sizeof(string), "%f", amount);
    new Damage = strval(string);
    new sendername[MAX_PLAYER_NAME],giveplayer[MAX_PLAYER_NAME];
    GetPlayerName(playerid, giveplayer, sizeof(giveplayer)); //Er Verliert HP
    GetPlayerName(issuerid, sendername, sizeof(sendername)); // Er hat Geschossen


    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    for(new i = 0; i < MAX_PLAYERS; i++){
    if(Schussmeldung == 1){
    if (playerid != INVALID_PLAYER_ID ) {
    if(IsPlayerInRangeOfPoint(playerid,50.0,x,y,z)){
    format(string,sizeof(string),"[AdmWarning] In deiner Sichtweite hat [%d]%s dem Spieler [%d]%s %d HP abgezogen (Waffe: %s)",issuerid,SpielerName(issuerid),playerid,SpielerName(playerid),Damage,WaffenNamen[weaponid]);
    SendClientMessage(i,COLOR_YELLOW,string);
    }
    }
    }
    }
    if (playerid != INVALID_PLAYER_ID ) {
    format(string,sizeof(string),"[dm] [%s] hat %s mit einer (%s) %d HP abgezogen.",SpielerName(issuerid),SpielerName(playerid),WaffenNamen[weaponid],Damage);
    EnterToLog("dmlog",string);
    }
    if(NoDmTimer[playerid] > 0){
    new PunishTime, PunsihRestTime;
    if(IsAHitman(issuerid) && GoChase[issuerid] == playerid){
    PunishTime = 60;
    }
    else{
    PunishTime = 15;
    }
    PunsihRestTime = PunishTime-NoDmTimer[playerid];
    if(PunsihRestTime > 0){
    format(string, sizeof(string), "[NoDM] Der NoDM schutz deines Opfers beginnt in %d Sekunden.", PunsihRestTime);
    SendClientMessage(issuerid,COLOR_GRAD2, string);
    }
    else
    {
    format(string, sizeof(string), "[NoDM] %s hat %s in der NoDM Zone angegriffen. Schaden: %d HP.", sendername,giveplayer,Damage);
    SendClientMessage(playerid,COLOR_GRAD2, string);
    }
    }
    if(SpawnKillAktiv[playerid] == 1 && weaponid != 54 && weaponid != 51){
    SendClientMessage(issuerid,COLOR_YELLOW, "[Antispawnschutz]: Unterlass das Dm auf Usern mit Anti-Spawnschutz!");
    format(string, sizeof(string), "[Antispawnschutz]: %s hat dich im Anti-Spawnschutz angeschossen!", sendername);
    SendClientMessage(playerid,COLOR_YELLOW, string);
    }
    if(SpawnKillAktiv[issuerid] == 1){SpawnSkillSchutz(issuerid);}
    if(weaponid == 23 && TazerCan[issuerid] == 1)
    {
    if(PlayerInfo[issuerid][pTeam] == 7 && OnDuty[issuerid] == 1 || PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[issuerid][pTeam] == 14 && OnDuty[issuerid] == 1 || PlayerInfo[issuerid][pTeam] == 16 && OnDuty[issuerid] == 1 || PlayerInfo[issuerid][pTeam] == 13 && OnDuty[issuerid] == 1)
    {
    if(PlayerInfo[issuerid][pLocal] == 100 || PlayerInfo[issuerid][pLocal] == 101 || PlayerInfo[issuerid][pLocal] == 102){
    return 1;
    }
    if(IsPlayerInAnyVehicle(issuerid))
    {
    return 1;
    }
    new suspect = playerid;
    if(IsPlayerConnected(suspect))
    {
    if(/*PlayerInfo[suspect][pSQLID] == 1 || PlayerInfo[suspect][pSQLID]] == 2 ||*/ PlayerInfo[suspect][pSQLID] == 3){
    return 1;
    }
    if(PlayerCuffed[suspect] > 0)
    {
    SendClientMessage(issuerid, COLOR_ERRORTEXT, "Spieler ist schon getazert!");
    return 1;
    }
    if(IsPlayerInAnyVehicle(suspect))
    {
    SendClientMessage(issuerid, COLOR_ERRORTEXT, "Ziel ist in einem Auto, die Person muss zuerst aussteigen!");
    return 1;
    }
    GivePlayerWeapons(issuerid, PlayerInfo[issuerid][pGun2], PlayerInfo[issuerid][pAmmo2]);
    TazerCan[issuerid] = 0;
    format(string, sizeof(string), "* Du wurdest von %s elektrisiesrt für 30 sekunden.", sendername);
    SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Du elektrisierst %s für 30 sekunden.", giveplayer);
    SendClientMessage(issuerid, COLOR_LIGHTBLUE, string);
    if(Maske[suspect] == 1)
    {
    format(string, sizeof(string), "* %s schießt mit dem Tazer auf einen Unbekannten, und elektrisiert ihn.", sendername);
    ProxDetector(60.0, issuerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    else
    {
    format(string, sizeof(string), "* %s schießt mit dem Tazer auf %s, und elektrisiert ihn.", sendername ,giveplayer);
    ProxDetector(60.0, issuerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    GameTextForPlayer(suspect, "~r~Tazed", 5000, 3);
    ApplyAnimation(suspect, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
    PlayerCuffed[suspect] = 1;
    PlayerCuffedTime[suspect] = 30;
    }
    }
    }
    return 1;
    }


    ERRORCODE im samp-server.exe wenn ich Sterbe



    [18:56:04] [debug] Run time error 4: "Array index out of bounds"
    [18:56:04] [debug] Accessing element at index 65535 past array upper bound 282
    [18:56:04] [debug] AMX backtrace:
    [18:56:04] [debug] #0 000387c0 in public OnPlayerTakeDamage () from Original.amx
    [18:56:06] [debug] Run time error 4: "Array index out of bounds"
    [18:56:06] [debug] Accessing element at index 65535 past array upper bound 282
    [18:56:06] [debug] AMX backtrace:
    [18:56:06] [debug] #0 000387c0 in public OnPlayerTakeDamage () from Original.amx

  • Du hast die Abfragen auf INVALID_PLAYER_ID zum Teil vergessen.
    Teste es mal so:
    public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
    {
    new string[126];
    new Damage1 = strval(string);
    if(PlayerInfo[playerid][pImDMSchutz] == 1)
    {
    if(weaponid == 0)
    {
    ApplyAnimation(issuerid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
    //TogglePlayerControllable(issuerid,0);
    SetTimerEx("PressJump", 1000, false, "i", issuerid);
    new Float:hp;
    GetPlayerHealth(playerid,hp);
    SetPlayerHealth(playerid,hp+Damage1);
    }
    }
    if(issuerid != INVALID_PLAYER_ID && PlayerInfo[issuerid][pImDMSchutz] == 1)
    {
    if(weaponid == 0)
    {
    ApplyAnimation(issuerid, "PED", "BIKE_fall_off", 4.1, 0, 1, 1, 1, 0, 1);
    //TogglePlayerControllable(issuerid,0);
    SetTimerEx("PressJump", 1000, false, "i", issuerid);
    new Float:hp;
    GetPlayerHealth(playerid,hp);
    SetPlayerHealth(playerid,hp+Damage1);
    }
    }
    if(issuerid != INVALID_PLAYER_ID && HitSound[issuerid] == 1)
    {
    PlayerPlaySound(issuerid,17802,0.0,0.0,0.0);
    }
    format(string, sizeof(string), "%f", amount);
    new Damage = strval(string);
    new sendername[MAX_PLAYER_NAME],giveplayer[MAX_PLAYER_NAME];
    GetPlayerName(playerid, giveplayer, sizeof(giveplayer)); //Er Verliert HP
    GetPlayerName(issuerid, sendername, sizeof(sendername)); // Er hat Geschossen

    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(Schussmeldung == 1)
    {
    if (playerid != INVALID_PLAYER_ID )
    {
    if(IsPlayerInRangeOfPoint(playerid,50.0,x,y,z))
    {
    format(string,sizeof(string),"[AdmWarning] In deiner Sichtweite hat [%d]%s dem Spieler [%d]%s %d HP abgezogen (Waffe: %s)",issuerid,SpielerName(issuerid),playerid,SpielerName(playerid),Damage,WaffenNamen[weaponid]);
    SendClientMessage(i,COLOR_YELLOW,string);
    }
    }
    }
    }
    if (playerid != INVALID_PLAYER_ID )
    {
    format(string,sizeof(string),"[dm] [%s] hat %s mit einer (%s) %d HP abgezogen.",SpielerName(issuerid),SpielerName(playerid),WaffenNamen[weaponid],Damage);
    EnterToLog("dmlog",string);
    }
    if(NoDmTimer[playerid] > 0)
    {
    new PunishTime, PunsihRestTime;
    if(issuerid != INVALID_PLAYER_ID && IsAHitman(issuerid) && GoChase[issuerid] == playerid)
    {
    PunishTime = 60;
    }
    else
    {
    PunishTime = 15;
    }
    PunsihRestTime = PunishTime-NoDmTimer[playerid];
    if(PunsihRestTime > 0)
    {
    format(string, sizeof(string), "[NoDM] Der NoDM schutz deines Opfers beginnt in %d Sekunden.", PunsihRestTime);
    SendClientMessage(issuerid,COLOR_GRAD2, string);
    }
    else
    {
    format(string, sizeof(string), "[NoDM] %s hat %s in der NoDM Zone angegriffen. Schaden: %d HP.", sendername,giveplayer,Damage);
    SendClientMessage(playerid,COLOR_GRAD2, string);
    }
    }
    if(SpawnKillAktiv[playerid] == 1 && weaponid != 54 && weaponid != 51)
    {
    SendClientMessage(issuerid,COLOR_YELLOW, "[Antispawnschutz]: Unterlass das Dm auf Usern mit Anti-Spawnschutz!");
    format(string, sizeof(string), "[Antispawnschutz]: %s hat dich im Anti-Spawnschutz angeschossen!", sendername);
    SendClientMessage(playerid,COLOR_YELLOW, string);
    }
    if(issuerid != INVALID_PLAYER_ID && SpawnKillAktiv[issuerid] == 1)
    {
    SpawnSkillSchutz(issuerid);
    }
    if(issuerid != INVALID_PLAYER_ID && weaponid == 23 && TazerCan[issuerid] == 1)
    {
    if(PlayerInfo[issuerid][pTeam] == 7 && OnDuty[issuerid] == 1 || PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[issuerid][pTeam] == 14 && OnDuty[issuerid] == 1 || PlayerInfo[issuerid][pTeam] == 16 && OnDuty[issuerid] == 1 || PlayerInfo[issuerid][pTeam] == 13 && OnDuty[issuerid] == 1)
    {
    if(PlayerInfo[issuerid][pLocal] == 100 || PlayerInfo[issuerid][pLocal] == 101 || PlayerInfo[issuerid][pLocal] == 102)
    {
    return 1;
    }
    if(IsPlayerInAnyVehicle(issuerid))
    {
    return 1;
    }
    new suspect = playerid;
    if(IsPlayerConnected(suspect))
    {
    if(/*PlayerInfo[suspect][pSQLID] == 1 || PlayerInfo[suspect][pSQLID]] == 2 ||*/ PlayerInfo[suspect][pSQLID] == 3)
    {
    return 1;
    }
    if(PlayerCuffed[suspect] > 0)
    {
    SendClientMessage(issuerid, COLOR_ERRORTEXT, "Spieler ist schon getazert!");
    return 1;
    }
    if(IsPlayerInAnyVehicle(suspect))
    {
    SendClientMessage(issuerid, COLOR_ERRORTEXT, "Ziel ist in einem Auto, die Person muss zuerst aussteigen!");
    return 1;
    }
    GivePlayerWeapons(issuerid, PlayerInfo[issuerid][pGun2], PlayerInfo[issuerid][pAmmo2]);
    TazerCan[issuerid] = 0;
    format(string, sizeof(string), "* Du wurdest von %s elektrisiesrt für 30 sekunden.", sendername);
    SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Du elektrisierst %s für 30 sekunden.", giveplayer);
    SendClientMessage(issuerid, COLOR_LIGHTBLUE, string);
    if(Maske[suspect] == 1)
    {
    format(string, sizeof(string), "* %s schießt mit dem Tazer auf einen Unbekannten, und elektrisiert ihn.", sendername);
    ProxDetector(60.0, issuerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    else
    {
    format(string, sizeof(string), "* %s schießt mit dem Tazer auf %s, und elektrisiert ihn.", sendername ,giveplayer);
    ProxDetector(60.0, issuerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    GameTextForPlayer(suspect, "~r~Tazed", 5000, 3);
    ApplyAnimation(suspect, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); // Dieing of Crack
    PlayerCuffed[suspect] = 1;
    PlayerCuffedTime[suspect] = 30;
    }
    }
    }
    return 1;
    }

  • bekomme einen error

    Code
    C:\Users\bizzi\Desktop\original\gamemodes\Original.pwn(9094) : error 033: array must be indexed (variable "Schussmeldung")


    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    /* 9094 */ if(Schussmeldung == 1)
    {
    if (playerid != INVALID_PLAYER_ID )
    {
    if(IsPlayerInRangeOfPoint(playerid,50.0,x,y,z))
    {
    format(string,sizeof(string),"[AdmWarning] In deiner Sichtweite hat [%d]%s dem Spieler [%d]%s %d HP abgezogen (Waffe: %s)",issuerid,SpielerName(issuerid),playerid,SpielerName(playerid),Damage,WaffenNamen[weaponid]);
    SendClientMessage(i,COLOR_YELLOW,string);
    }
    }
    }
    }

  • Schussmeldung


    Oke danke

    bekomme aber bei hier auch errorcodes wenn ich sterbe


    [20:36:39] [debug] AMX backtrace:[20:36:39] [debug] #0 0002ebb8 in public FC_OnPlayerDeath () from Original.amx[20:36:39] [debug] #1 native CallLocalFunction () [00472ad0] from samp-server.exe[20:36:39] [debug] #2 0000293c in public OnPlayerDeath () from Original.amx


    Hier OnPlayerDeath




    public OnPlayerDeath(playerid, killerid, reason)
    {
    SWAT[playerid] = 0;
    Schild[playerid] = 0;
    MCCEnter[playerid] = 0;
    new Float:xh,Float:yh,Float:zh;
    GetPlayerPos(playerid,xh,yh,zh);
    for(new i = 0; i < MAX_PLAYERS; i++){
    if(Schussmeldung[i] == 1){
    if (playerid != INVALID_PLAYER_ID) {
    new string[258];
    if(IsPlayerInRangeOfPoint(playerid,50.0,xh,yh,zh)){
    format(string,sizeof(string),"[AdmWarning] In deiner Sichtweite hat [%d]%s den Spieler [%d]%s getötet (Waffe/Grund: %s)",killerid,SpielerName(killerid),playerid,SpielerName(playerid),WaffenNamen[reason]);
    SendClientMessage(i,COLOR_ORANGE,string);
    }
    }
    }
    }
    if(IsInBus[playerid] == 1) { IsInBus[playerid] = 0; Haltestellevar[playerid] = 0; }
    new CopArrest = 3,string[285];
    new name[MAX_PLAYER_NAME],killername[MAX_PLAYER_NAME],sendername[MAX_PLAYER_NAME],Float:px,Float:py,Float:pz,Variable = 0;


    if(IsPlayerInArea(playerid, -166.313476, -3000.031250, 3001.686523, 471.968750)){ MedicBill[playerid] = 1; CopArrest = 3;}// LS
    else if(IsPlayerInArea(playerid, -2999.750732, -3003.380371, -1255.750732, 3004.619628) || IsPlayerInArea(playerid, -1257.077636, -3002.345458, -161.077636, 469.654602)){ MedicBill[playerid] = 2; CopArrest = 1;}// SF
    else if(IsPlayerInArea(playerid, -1256.001708, 468.000610, 2999.998291, 3004.000488)){ MedicBill[playerid] = 3; CopArrest = 3;}// LV
    if(MedicBill[playerid] == 0){ MedicBill[playerid] = 1;}


    if(InArena[playerid] == 0 && Maske[playerid] == 0 && cprison[playerid] == 0 && MedicBill[playerid] > 0 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && PlayerInfo[playerid][pAdminOnDuty] == 0 && FirstSpawnAfterLogin[playerid] == 0)
    {
    if(IsACop(playerid) && OnDuty[playerid] == 1 ){
    TAddPickup(playerid, GetPlayerVirtualWorld(playerid), 30, SpielerName(playerid));


    if(GetPlayerInterior(playerid) > 0 || PlayerInfo[playerid][pLocal] != -1)
    {
    format(string,sizeof(string),"%s(ID: %d) ist gestorben und benötigt eine Wiederbelebung in der Gebäudekomplex %d.%d. (Tippe /accept wiederbelebung %d ein um den Notruf anzunehmen.)",SpielerName(playerid),playerid,GetPlayerInterior(playerid), PlayerInfo[playerid][pLocal],playerid);
    SendMedicMessage(COLOR_RED, string);
    format(string, sizeof(string), "Gebäudekomplex %d.%d", GetPlayerInterior(playerid), PlayerInfo[playerid][pLocal]);
    strmid(AnrufZone[playerid], string, 0, strlen(string), 255);
    }
    else
    {
    new zone[MAX_ZONE_NAME];
    GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
    format(string,sizeof(string),"%s(ID: %d) ist gestorben und benötigt eine Wiederbelebung in %s. (Tippe /accept wiederbelebung %d ein um den Notruf anzunehmen.)",SpielerName(playerid),playerid,zone,playerid);
    SendMedicMessage(COLOR_RED,string);
    strmid(AnrufZone[playerid], zone, 0, strlen(zone), 255);
    }
    GetPlayerPos(playerid,DeadPoint[playerid][0],DeadPoint[playerid][1],DeadPoint[playerid][2]);
    AnrufAktiv[playerid] = 1;
    Anruftimer[playerid] = 30;
    AnrifErsteller[playerid] = playerid;
    DeadPeople[playerid] = playerid;
    }else{
    TAddPickup(playerid, GetPlayerVirtualWorld(playerid), 60, SpielerName(playerid));
    if(GetPlayerInterior(playerid) > 0 || PlayerInfo[playerid][pLocal] != -1)
    {
    format(string,sizeof(string),"%s(ID: %d) ist gestorben und benötigt eine Wiederbelebung in der Gebäudekomplex %d.%d. (Tippe /accept wiederbelebung %d ein um den Notruf anzunehmen.)",SpielerName(playerid),playerid,GetPlayerInterior(playerid), PlayerInfo[playerid][pLocal],playerid);
    SendMedicMessage(COLOR_RED,string);
    format(string, sizeof(string), "Gebäudekomplex %d.%d", GetPlayerInterior(playerid), PlayerInfo[playerid][pLocal]);
    strmid(AnrufZone[playerid], string, 0, strlen(string), 255);
    }
    else
    {
    new zone[MAX_ZONE_NAME];
    GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
    format(string,sizeof(string),"%s(ID: %d) ist gestorben und benötigt eine Wiederbelebung in %s. (Tippe /accept wiederbelebung %d ein um den Notruf anzunehmen.)",SpielerName(playerid),playerid,zone,playerid);
    SendMedicMessage(COLOR_RED,string);
    strmid(AnrufZone[playerid], zone, 0, strlen(zone), 255);
    }
    GetPlayerPos(playerid,DeadPoint[playerid][0],DeadPoint[playerid][1],DeadPoint[playerid][2]);
    AnrufAktiv[playerid] = 1;
    Anruftimer[playerid] = 60;
    AnrifErsteller[playerid] = playerid;
    DeadPeople[playerid] = playerid;
    }
    }
    new entry[885],Querry[885];
    if(killerid != INVALID_PLAYER_ID) {
    format(entry, sizeof(entry), "[%s %s] GEKILLT VON >> %s", INCLUDE_Date(),INCLUDE_Time(), SpielerName(killerid));
    format(Querry,sizeof(Querry),"INSERT INTO `deathakte` (`AccountID`, `Eintrag`) VALUES ('%d','%s')",PlayerInfo[playerid][pSQLID],entry);
    mysql_query(Querry);
    }
    if(playerid != INVALID_PLAYER_ID) {
    format(entry, sizeof(entry), "[%s %s] KILL AN >> %s", INCLUDE_Date(),INCLUDE_Time(), SpielerName(playerid));
    format(Querry,sizeof(Querry),"INSERT INTO `killerakte` (`AccountID`, `Eintrag`) VALUES ('%d','%s')",PlayerInfo[killerid][pSQLID],entry);
    mysql_query(Querry);
    }
    new string6[500];
    if(InArena[playerid] == 0 && PlayerInfo[playerid][pTeam] == -1 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && !IsACop(killerid) && PlayerInfo[killerid][pTeam] != 8){
    format(string6,sizeof(string6),"[AdmWarning] [%d]%s (Level %d) ist im verdacht SDM zu betreiben. (SDM Opfer: [%d]%s, Waffe: %s)",killerid,SpielerName(killerid),PlayerInfo[killerid][pLevel],playerid,SpielerName(playerid),WaffenNamen[reason]);
    SendAdminMessage(COLOR_YELLOW,1,string6);
    format(string, sizeof(string), "[KILL]: %s >> gekillt (%s) (SDM-Kill))",SpielerName(playerid),WaffenNamen[reason]);
    KillAkte(PlayerInfo[killerid][pSQLID], string);
    format(string, sizeof(string), "[GEKILLT]: %s von %s >> gekillt (%s) (SDM-Kill)",SpielerName(playerid),SpielerName(killerid),WaffenNamen[reason]);
    KillAkte(PlayerInfo[playerid][pSQLID], string);
    }else{
    format(string, sizeof(string), "[KILL]: %s >> gekillt (%s)",SpielerName(playerid),WaffenNamen[reason]);
    KillAkte(PlayerInfo[killerid][pSQLID], string);
    format(string, sizeof(string), "[GEKILLT]: %s von %s >> gekillt (%s)",SpielerName(playerid),SpielerName(killerid),WaffenNamen[reason]);
    KillAkte(PlayerInfo[playerid][pSQLID], string);
    }


    if(InArena[playerid] == 0 && cprison[playerid] == 0 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && FirstSpawnAfterLogin[playerid] == 0)
    {
    if(PlayerInfo[playerid][pLevel] >= 4)
    {
    new julianstring[258];
    format(julianstring,sizeof(julianstring),"Du hast wegen deines Todes $%d aus der Geldbörse verloren.",GetPlayerMoney(playerid)/100*15);
    SendClientMessage(playerid,COLOR_WHITE,julianstring);
    GivePlayerMoneys(playerid,-PlayerInfo[playerid][pCash]/100*15);
    }
    else
    {
    new julianstring[258];
    SendClientMessage(playerid,COLOR_WHITE,"HINWEIS: Aufgrund des Noob-Schutzes (bis einschließlich Level 3) verlierst du statt 15 nur 5 Prozent deines Bargelds!");
    format(julianstring,sizeof(julianstring),"Du hast wegen deines Todes $%d aus der Geldbörse verloren.",PlayerInfo[playerid][pCash]/100*5);
    SendClientMessage(playerid,COLOR_WHITE,julianstring);
    GivePlayerMoneys(playerid,PlayerInfo[playerid][pCash]/100*5);
    }
    }


    ResetPlayerWeapons(playerid);
    L_AntiWeaponHack(playerid);
    KillTimer(PlayerInfo[playerid][pBaggerTimer]);


    StuffInfo[sToteUser] += 1;
    Tot[playerid] = 1;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
    STDPlayer[playerid] = 0;
    EventEingeladen[playerid] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    GetPlayerPos(playerid, px, py, pz);
    GetPlayerName(playerid, name, sizeof(name));
    if(IsPlayerConnected(killerid))
    {
    if(PlayerInfo[playerid][pJailed] != 0 || cprison[playerid] == 1)
    {
    SendClientMessage(killerid, COLOR_YELLOW, "Das Töten von Prison/Knast Insassen ist verboten. Unterlasse es!");
    return 1;
    }
    else if(PlayerInfo[killerid][pJailed] != 0 || cprison[killerid] == 1)
    {
    SendClientMessage(killerid,COLOR_YELLOW,"Das Töten von Prison/Knast Insassen ist verboten. Unterlasse es!");
    return 1;
    }
    }
    if(PlayerInfo[playerid][pMats] >= 1 || PlayerInfo[playerid][pDrugs] >= 1 || PlayerInfo[playerid][pCodes] >= 1)
    {
    if(PlayerInfo[playerid][pMats] >= 1)
    {
    //DropBoxInfo[i][DBMatsAnzahl] = PlayerInfo[playerid][pMats]/2;
    PlayerInfo[playerid][pMats] = 0;
    SendClientMessage(playerid, COLOR_GRAD2, "Da du gestorben bist hast du alle Materialien verloren.");
    }
    if(PlayerInfo[playerid][pDrugs] >= 1)
    {
    //DropBoxInfo[i][DBDrugsAnzahl] = PlayerInfo[playerid][pDrugs]/2;
    PlayerInfo[playerid][pDrugs] = 0;
    SendClientMessage(playerid, COLOR_GRAD2, "Da du gestorben bist hast du alle Drogen verloren.");
    }
    if(PlayerInfo[playerid][pCodes] >= 1)
    {
    //DropBoxInfo[i][DBCodesAnzahl] = PlayerInfo[playerid][pCodes]/2;
    PlayerInfo[playerid][pCodes] = 0;
    SendClientMessage(playerid, COLOR_GRAD2, "Da du gestorben bist hast du alle Codes verloren.");
    }
    }
    if(killerid == INVALID_PLAYER_ID && Logintime[playerid] >= 5 || killerid != INVALID_PLAYER_ID && Logintime[playerid] >= 5 && !IsACop(killerid)){
    if(PlayerInfo[playerid][pWantedLevel] >= 1 && WantedLoseAllow[playerid] != 0) {
    ForAllPlayers(i){
    if(IsACop(i) && OnDuty[i] == 1 && IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid, i) <= 100 && PlayerInfo[i][pAdminOnDuty] == 0 && Spectate[i] == -1)
    {
    new JailTime = PlayerInfo[playerid][pWantedLevel] * JailSecondsPerWanted;
    new price = PlayerInfo[playerid][pWantedLevel] * JailDollarPerWanted;
    if(PlayerInfo[playerid][pWantedLevel] >= 30)
    {
    PlayerInfo[playerid][pJailTime] += 7200;
    }
    else
    {
    PlayerInfo[playerid][pJailTime] += JailTime;
    }
    if(PlayerInfo[playerid][pWantedLevel] >= 6)
    {
    PlayerInfo[playerid][pJailed] = 2;
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 2144.1943,1617.5361,993.6882);
    SetPlayerFacingAngle(playerid, 270);
    SetPlayerSkin(playerid, 206);
    SetCameraBehindPlayer(playerid);
    }
    else
    {
    PlayerInfo[playerid][pJailed] = 3;
    }
    GivePlayerMoneys(playerid, -price); PlayerInfo[playerid][pArrestTime] += JailTime;
    format(string, sizeof(string), "* Du wurdest eingebuchtet für %d Minuten und verlierst %s$ weil du in der nähe eins Cops gestorben bist.", PlayerInfo[playerid][pJailTime]/60, GetPoint(price));
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "HQ: An alle Einheiten, der Auftrag wurde ausgeführt.");
    SendClientMessage(i,COLOR_DBLUE, string);
    format(string, sizeof(string), "HQ: %s wurde verhaftet, Erschossen",name);
    SendClientMessage(i,COLOR_DBLUE, string);


    SendClientMessage(killerid,COLOR_LIGHTBLUE,"Du hast (25) Coins bekommen, da du den Verbrecher erschossen hast.");
    PlayerInfo[killerid][pCoints] += 25;


    CreateWantedLabel(playerid);
    SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
    PlayerInfo[playerid][pWantedLevel] = 0;
    break;
    }}}}
    if(gPlayerUsingLoopingAnim[playerid]){
    gPlayerUsingLoopingAnim[playerid] = 0;
    TextDrawHideForPlayer(playerid, TextAnimation);
    }
    if(PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0){
    PlayerInfo[playerid][pDeaths] += 1;
    PlayerInfo[killerid][pKills] += 1;
    }
    if(PlayerInfo[playerid][pBankrob] == 1){
    if(IsPlayerConnected(killerid)){
    GetPlayerName(killerid, killername, sizeof(killername));
    GivePlayerMoneys(killerid, 8000);
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Der Bankraub ist gescheitert.");
    format(string, sizeof(string), "[Information]: %s hat den Bankräuber %s erfolgreich ausgeschaltet und verdiente $8000.",killername,name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    StuffInfo[sAusgaben] += 8000; SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pBankrob] = 0;
    BizInfo[3][bLocked] = 0; BizInfo[8][bLocked] = 0; BizInfo[17][bLocked] = 0; BankrobStatus = 0; Variable = 1;
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
    RemovePlayerAttachedObject(playerid, i);
    }
    SendClientMessage(killerid,COLOR_YELLOW,"Du hast für das Ausschalten des Bankräubers (10) Coins erhalten.");
    PlayerInfo[killerid][pCoints] += 10;
    }
    else{
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Der Bankraub ist gescheitert.");
    format(string, sizeof(string), "[Information]: Bankräuber %s ist beim Versuch die Bank auszurauben gestorben.", name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPlayerVirtualWorld(playerid, 0);
    BizInfo[3][bLocked] = 0; BizInfo[8][bLocked] = 0; BizInfo[17][bLocked] = 0; PlayerInfo[playerid][pBankrob] = 0; BankrobStatus = 0; Variable = 1;
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
    RemovePlayerAttachedObject(playerid, i);
    }
    }}
    if(PlayerInfo[playerid][pImRaub] == 1){
    if(IsPlayerConnected(killerid)){
    GetPlayerName(killerid, killername, sizeof(killername));
    GivePlayerMoneys(killerid, 9000);
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Die Geiselnahme gescheitert.");
    format(string, sizeof(string), "[Information]: %s hat den Geiselnehmer %s erfolgreich ausgeschaltet und verdiente $9000.",killername,name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    StuffInfo[sAusgaben] += 9000; SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pImRaub] = 0; PlayerInfo[playerid][pGeiselnahme] = 0;
    KillTimer(Geiselnahme[playerid]);
    Geiselnamestatus = 0;
    SendClientMessage(killerid,COLOR_YELLOW,"Du hast für das Stoppen der Geiselnahme (10) Coins erhalten.");
    PlayerInfo[killerid][pCoints] += 10;
    }
    else{
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Die Geiselnahme gescheitert.");
    format(string, sizeof(string), "[Information]: Geiselnehmer %s ist bei der Geisenahme im Juwelierladen gestorben.", name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pGeiselnahme] = 0;
    PlayerInfo[playerid][pImRaub] = 0;
    KillTimer(Geiselnahme[playerid]);
    Geiselnamestatus = 0;
    }}
    if(PlayerInfo[playerid][pHandyRob] == 1){
    if(IsPlayerConnected(killerid)){
    GetPlayerName(killerid, killername, sizeof(killername));
    GivePlayerMoneys(killerid, 7500);
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Der Handyladenraub ist gescheitert.");
    format(string, sizeof(string), "[Information]: %s hat den Handyladenräuber %s erfolgreich ausgeschaltet und verdiente $7500.",killername,name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    StuffInfo[sAusgaben] += 7500; SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pHandyRob] = 0;
    PlayerInfo[playerid][pHurensohn] = 0;
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
    RemovePlayerAttachedObject(playerid, i);
    }
    HandyAusrauben = 75;
    KillTimer(Handyraubtimer[playerid]);
    Ausraubstatuscheck = 0;
    SendClientMessage(killerid,COLOR_YELLOW,"Du hast für das Ausschalten des Handyladenräuebrs (10) Coins erhalten.");
    PlayerInfo[killerid][pCoints] += 10;
    }
    else{
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Der Handyladenraub ist gescheitert.");
    format(string, sizeof(string), "[Information]: Handyladenräuber %s ist beim Versuch den Handyladen auszurauben gestorben.", name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pHandyRob] = 0;
    PlayerInfo[playerid][pHurensohn] = 0;
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
    RemovePlayerAttachedObject(playerid, i);
    }
    HandyAusrauben = 75;
    KillTimer(Handyraubtimer[playerid]);
    Ausraubstatuscheck = 0;
    }}
    if(InArena[playerid] == 0 && IsACop(killerid) && OnDuty[killerid] == 1 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && PlayerInfo[playerid][pWantedLevel] >= 1 || PlayerInfo[killerid][pTeam] == 12 && OnDuty[killerid] == 1 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && PlayerInfo[playerid][pWantedLevel] >= 1 && InArena[playerid] == 0){
    new JailTime = PlayerInfo[playerid][pWantedLevel] * JailSecondsPerWanted;
    new price = PlayerInfo[playerid][pWantedLevel] * JailDollarPerWanted;
    if(PlayerInfo[playerid][pWantedLevel] >= 6){
    PlayerInfo[playerid][pJailed] = 2;
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 2144.1943,1617.5361,993.6882);
    SetPlayerFacingAngle(playerid, 270);
    SetPlayerSkin(playerid, 206);
    SetCameraBehindPlayer(playerid);
    WantLawyer[playerid] = 0;
    }else{
    PlayerInfo[playerid][pJailed] = CopArrest;
    WantLawyer[playerid] = 1;
    }
    if(PlayerInfo[playerid][pWantedLevel] >= 30)
    {
    PlayerInfo[playerid][pJailTime] += 7200;
    }
    else
    {
    PlayerInfo[playerid][pJailTime] += JailTime;
    }
    GivePlayerMoneys(playerid, -price); //GivePlayerMoneys(killerid, price/2);
    StuffInfo[sSteuerkasse] += price/2;
    PlayerInfo[playerid][pArrestTime] += JailTime;
    format(string, sizeof(string), "* Du wurdest für %d Minuten eingesperrt und verlierst wegen Flucht und Kill durch einen Polizisten %s$.",PlayerInfo[playerid][pJailTime]/60, GetPoint(price)); SendClientMessage(playerid, COLOR_LIGHTRED, string); SetPlayerFree(playerid, killerid, "Erschossen", 0);
    PlayerInfo[playerid][pArrested] += 1; PlayerInfo[playerid][pWantedLevel] = 0; MedicBill[playerid] = -1; Variable = 1;
    GetPlayerName(killerid, killername, sizeof(killername));
    CreateWantedLabel(playerid);
    SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
    format(string, sizeof(string), "~w~Fluechtingen Straftaeter~n~~r~getoetet"); GameTextForPlayer(killerid, string, 2000, 1);
    }
    if(PlayerInfo[playerid][pWantedLevel] > 0 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && InArena[playerid] == 0){
    new wanted = PlayerInfo[playerid][pWantedLevel],
    diecash = PlayerInfo[playerid][pWantedLevel]*10;
    format(string, sizeof(string), "Du verlierst $%d wegen Sterben mit %d Wanted Punkten.", diecash, wanted);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    GivePlayerMoneys(playerid, -diecash);
    }
    /*if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
    new VEH = GetPlayerVehicleID(playerid);
    if(Locked[VEH] == 1){
    Locked[VEH] = 0;
    ForAllPlayers(i){
    SetVehicleParamsForPlayer(VEH,i, 0, 0);
    }}}*/
    for(new vanK = 0; vanK < 20; vanK++){
    if(Kartoffellaster[vanK][KAktive] == 1){
    if(Kartoffellaster[vanK][KMieterID] == playerid){
    Kartoffellaster[vanK][KMieterID] = -1;
    Kartoffellaster[vanK][KAktive] = 0;
    DestroyVehicleSelfmade(Kartoffellaster[vanK][KVehicle]);
    Motorschaden[Kartoffellaster[vanK][KVehicle]] = 0;
    break;
    }
    }
    }
    if(InArena[playerid] == 1){
    Variable = 1;
    if(Minigunarena[playerid] == 1 && Minigunspiel == 1){
    Minigunarenakill[killerid] ++;
    }
    }
    if(PlayerPaintballing[playerid] != 0){
    Variable = 1;
    PlayerPaintballKills[killerid] ++;
    if(PlayerPaintballKills[killerid] > PaintballWinnerKills){
    PaintballWinner = killerid;
    PaintballWinnerKills = PlayerPaintballKills[killerid];
    GetPlayerName(killerid, killername, sizeof(killername));
    format(string, sizeof(string), "~w~Du hast~r~ %s ~w~gekillt (+1 Coin)",name);
    GameTextForPlayer(killerid, string, 2000, 1);
    format(string, sizeof(string), "~w~Du wurdest von ~r~ %s ~w~gekillt",killername);
    GameTextForPlayer(playerid, string, 2000, 1);
    PlayerInfo[killerid][pCoints] += 1;
    ForAllPlayers(i) {
    if(IsPlayerConnected(i)) {
    if(PlayerPaintballing[i] != 0) {
    format(string, sizeof(string), "* %s führt mit %d Morden.",killername,PaintballWinnerKills);
    SendClientMessage(i, COLOR_PURPLE, string);
    }}}}
    return 1;
    }
    if(PlayerTeamPaintballing[playerid] != 0){
    if(PlayerTeamPaintballing[playerid] == 1){
    Team2pk++;
    }
    else if(PlayerTeamPaintballing[playerid] == 2){
    Team1pk++;
    }
    GetPlayerName(killerid, killername, sizeof(killername));
    format(string, sizeof(string), "~r~%s~w~ gekillt",name);
    GameTextForPlayer(killerid, string, 2000, 1);
    format(string, sizeof(string), "~w~Gekillt von~r~ %s",killername);
    GameTextForPlayer(playerid, string, 2000, 1);
    format(string, sizeof(string), "~b~Blau: ~w~%d~n~~g~Grun: ~w~%d",Team2pk,Team1pk);
    TextDrawSetString(Text:TeamDMDraw, string);
    return 1;
    }
    for(new i = 0; i < sizeof(GangfightSystemInfo); i++){
    if(IsPlayerConnected(playerid) && IsPlayerConnected(killerid)){
    if(IsPlayerInArea(killerid, GangfightSystemInfo[i][MinX],GangfightSystemInfo[i][MinY],GangfightSystemInfo[i][MaxX],GangfightSystemInfo[i][MaxY])){
    new Killerteam = PlayerInfo[killerid][pTeam];
    new Playerteam = PlayerInfo[playerid][pTeam];
    if((GangfightSystemInfo[i][GFOwnerID] == Killerteam && GangfightSystemInfo[i][GFGegnerID] == Playerteam) || (GangfightSystemInfo[i][GFOwnerID] == Playerteam && GangfightSystemInfo[i][GFGegnerID] == Killerteam) || killerid == INVALID_PLAYER_ID || GangfightSystemInfo[i][GFOwnerID] == Playerteam && GangfightSystemInfo[i][GFOwnerID] == Killerteam || GangfightSystemInfo[i][GFGegnerID] == Playerteam && GangfightSystemInfo[i][GFGegnerID] == Killerteam){
    if(killerid == INVALID_PLAYER_ID || GangfightSystemInfo[i][GFOwnerID] == Playerteam && GangfightSystemInfo[i][GFOwnerID] == Killerteam || GangfightSystemInfo[i][GFGegnerID] == Playerteam && GangfightSystemInfo[i][GFGegnerID] == Killerteam){
    if(killerid == INVALID_PLAYER_ID)
    {
    if(GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[playerid][pTeam])
    {
    GangfightSystemInfo[i][GFGegnerPoints] += 3;
    return 1;
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[playerid][pTeam]){
    GangfightSystemInfo[i][GFOwnerPoints] += 3;
    return 1;
    }
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[playerid][pTeam] && GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[killerid][pTeam]){
    GangfightSystemInfo[i][GFGegnerPoints] += 3;
    return 1;
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[playerid][pTeam] && GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[killerid][pTeam]){
    GangfightSystemInfo[i][GFOwnerPoints] += 3;
    return 1;
    }
    }
    if(GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[playerid][pTeam]){
    GangfightSystemInfo[i][GFGegnerPoints] += 1;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[playerid][pTeam]){
    GangfightSystemInfo[i][GFOwnerPoints] += 1;
    }
    new zufall = random(5);
    new OwnerTeamText[20];
    if(GangfightSystemInfo[i][GFOwnerID] == 5) { OwnerTeamText = "La Cosa Nostra"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 3) { OwnerTeamText = "Brigada"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 6) { OwnerTeamText = "Yakuza"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 15) { OwnerTeamText = "Biker BoyZ"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 18) { OwnerTeamText = "V.L.Aztecas"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 19) { OwnerTeamText = "Grove Street"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 20) { OwnerTeamText = "Ballas"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 21) { OwnerTeamText = "West Coast Customs"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 22) { OwnerTeamText = "Triaden"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 23) { OwnerTeamText = "Red Soldiers"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 24) { OwnerTeamText = "L.S.Vagos"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 25) { OwnerTeamText = "Irish Crime Family"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 26) { OwnerTeamText = "Cali Kartell"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 1) { OwnerTeamText = "SF Rifas"; }
    new GegnerTeamText[20];
    if(GangfightSystemInfo[i][GFGegnerID] == 5) { GegnerTeamText = "La Cosa Nostra"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 3) { GegnerTeamText = "Brigada"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 6) { GegnerTeamText = "Yakuza"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 15) { GegnerTeamText = "Biker BoyZ"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 18) { GegnerTeamText = "V.L.Aztecas"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 19) { GegnerTeamText = "Grove Street"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 20) { GegnerTeamText = "Ballas"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 21) { GegnerTeamText = "West Coast Customs"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 22) { GegnerTeamText = "Triaden"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 23) { GegnerTeamText = "Red Soldiers"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 24) { GegnerTeamText = "L.S.Vagos"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 25) { GegnerTeamText = "Irish Crime Family"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 26) { GegnerTeamText = "Cali Kartell"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 1) { GegnerTeamText = "SF Rifas"; }
    if(zufall == 2){
    format(string, sizeof(string), "NEWS: Im Kampf um das Gebiet steht es %d (%s) zu %d (%s).", GangfightSystemInfo[i][GFOwnerPoints], OwnerTeamText, GangfightSystemInfo[i][GFGegnerPoints], GegnerTeamText);
    OOCNews(COLOR_NEWS, string);
    }
    format(string, sizeof(string), "[Gangfight] %s hat %s im Gangfight %s gegen %s gekillt.", PlayerName(killerid),PlayerName(playerid), OwnerTeamText, GegnerTeamText);
    ForAllPlayers(pl)
    {
    if(IsPlayerConnected(pl) && PlayerInfo[pl][pTeam] == PlayerInfo[playerid][pTeam])
    {
    SendClientMessage(pl, COLOR_TUTORIAL, string);
    }
    if(IsPlayerConnected(pl) && PlayerInfo[pl][pTeam] == PlayerInfo[killerid][pTeam])
    {
    SendClientMessage(pl, COLOR_TUTORIAL, string);
    }
    }
    Variable = 1;
    GameTextForPlayer(killerid, "~g~GANGZONEKILL", 2500, 3); GameTextForPlayer(playerid, "~r~GANGZONEKILL", 2500, 3);
    return 1;
    }
    }
    }
    }
    for(new i = 0; i < sizeof(GangWarSystemInfo); i++){
    if(IsPlayerConnected(playerid) && IsPlayerConnected(killerid) && GangWarSystemInfo[i][GWActive] == 1){
    if((GangWarSystemInfo[i][GWTeam1ID] == PlayerInfo[killerid][pTeam] && GangWarSystemInfo[i][GWTeam2ID] == PlayerInfo[playerid][pTeam]) || (GangWarSystemInfo[i][GWTeam1ID] == PlayerInfo[playerid][pTeam] && GangWarSystemInfo[i][GWTeam2ID] == PlayerInfo[killerid][pTeam])){
    if(InArena[playerid] == 0 && InArena[killerid] == 0 && PlayerPaintballing[playerid] == 0 && PlayerPaintballing[killerid] == 0 || PlayerTeamPaintballing[playerid] == 0 && PlayerTeamPaintballing[killerid] == 0){
    if(GangWarSystemInfo[i][GWTeam1ID] == PlayerInfo[killerid][pTeam]){
    GangWarSystemInfo[i][GWTeam1Points] += 1;
    }
    if(GangWarSystemInfo[i][GWTeam2ID] == PlayerInfo[killerid][pTeam]){
    GangWarSystemInfo[i][GWTeam2Points] += 1;
    }
    if(KassenInfo[PlayerInfo[playerid][pTeam]][Phantom] >= 500)
    {
    new Chance = random(100);
    PlayerInfo[killerid][pWantedLevel] += 1;
    if(Chance <= 24)
    {
    }
    }
    PlayerInfo[killerid][pWantedLevel] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1){
    new stringz[258];
    format(stringz,sizeof(stringz)," 1 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    Variable = 1;
    GameTextForPlayer(killerid, "~g~GANGWARKILL (+3 Coin| +1 UP)", 2500, 3); GameTextForPlayer(playerid, "~r~GANGWARKILL", 2500, 3);
    KassenInfo[PlayerInfo[killerid][pTeam]][tPoints] += 1;
    SaveGangWar(i);
    KassenSpeicherung(PlayerInfo[killerid][pTeam]);
    //SendClientMessage(playerid,COLOR_YELLOW,"Durch den Tod eines Gangwarkills verlierst du (1) Coin!");
    PlayerInfo[killerid][pCoints] += 3;
    //SendClientMessage(killerid,COLOR_YELLOW,"Durch die tötung deines Gangwarfeindes erhältst du (1) Coint von ihm!");
    break;
    }
    }
    }
    }
    if(IsPlayerConnected(playerid) && IsPlayerConnected(killerid)){
    if(NoDmTimer[playerid] >= 15){
    if(!IsACop(killerid) && OnDuty[killerid] != 1){
    new darf = 1;
    if(GoChase[killerid] == playerid && NoDmTimer[playerid] < 60)
    {
    darf = 0;
    }else{
    darf = 1;
    }
    if(darf == 1)
    {
    GetPlayerName(killerid, killername, sizeof(killername));
    format(string, sizeof(string), "[NoDM] %s hat dich in einer NoDM Zone getötet. Gib /punish ein, um ihn zu bestrafen.", killername);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    //SendClientMessage(playerid, COLOR_YELLOW, "[NO-DM] Benutze /punish, um ihn ins Prison zu schicken, oder /vergeben, um im zu verzeihen.");
    //SendClientMessage(killerid, COLOR_YELLOW, "[NO-DM] Das töten in einer No-Dm Zone ist verboten.");
    strmid(PlayerInfo[playerid][pNODMKiller], killername, 0, strlen(killername), 255);
    SetTimerEx("PunishRefresh",30000,0,"i",playerid);
    }}}}
    for(new i = 0; i < sizeof(BNDSystemInfo); i++){
    if(IsPlayerConnected(playerid) && IsPlayerConnected(killerid)){
    if(BNDSystemInfo[i][BNDActive] == 1){
    if((BNDSystemInfo[i][BNDTeam1ID] == PlayerInfo[killerid][pTeam] && BNDSystemInfo[i][BNDTeam2ID] == PlayerInfo[playerid][pTeam]) || (BNDSystemInfo[i][BNDTeam1ID] == PlayerInfo[playerid][pTeam] && BNDSystemInfo[i][BNDTeam2ID] == PlayerInfo[killerid][pTeam]))
    {
    if(InArena[playerid] == 0 && InArena[killerid] == 0 && PlayerPaintballing[playerid] == 0 && PlayerPaintballing[killerid] == 0 || PlayerTeamPaintballing[playerid] == 0 && PlayerTeamPaintballing[killerid] == 0){
    GetPlayerName(killerid, killername, sizeof(killername));
    format(string, sizeof(string), "[BND] Bündnissmitglied %s hat dich getötet.", killername);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "[BND] Du hast Bündnissmitglied %s getötet.",SpielerName(playerid));
    SendClientMessage(killerid, COLOR_LIGHTRED, string);
    break;
    }}}}}
    if(PlayerInfo[playerid][pHeadValue] > 0){
    if(IsPlayerConnected(killerid) && IsAHitman(killerid) && GoChase[killerid] == playerid){
    new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    GivePlayerMoneys(killerid, PlayerInfo[playerid][pHeadValue]);
    ContractTaked[playerid] = 0;
    ForAllPlayers(HitMof) {
    if(IsPlayerConnected(HitMof)) {
    if(IsAHitman(HitMof)) {
    format(string, sizeof(string), "[Auftragskill] Hitman %s hat den Auftragskill an %s erfolgreich ausgeführt und verdiente %s$",killer,name,GetPoint(PlayerInfo[playerid][pHeadValue]));
    SendClientMessage(HitMof, COLOR_YELLOW, string);
    if(GoChase[HitMof] == playerid){
    GoChase[HitMof] = -1;
    }}}}
    SendClientMessage(killerid,COLOR_LIGHTBLUE,"Du hast (20) Coins bekommen, da du den Auftrag erledigt hast.");
    PlayerInfo[killerid][pCoints] += 20;


    new query[2001],day,month,year,hour,minute,second,mk;
    SendClientMessage(playerid, COLOR_YELLOW, "[Auftragskill] Du wurdest von einem Mitglied aus der Hitman-Agency getötet.");
    SendClientMessage(playerid, COLOR_YELLOW, "[Auftragskill] Für weitere Informationen hast du einen Brief erhalten.");
    gettime(hour,minute,second);
    getdate(year,month,day);
    mk = mktime(hour,minute,second,day,month,year);
    format(query,sizeof(query),"INSERT INTO `post` (Sender,Reciever,Date,Time,MK,New,Subject,Text,SQLID) VALUES('System','%s','%d-%d-%d','%d:%d',%i,1,'Auftragskiller','Guten Tag<>Sie wurden von einem Auftragskiller getoetet, da jemand auf Sie Geld gestellt hat, damit Sie die Hitman Agency toetet.<>Bitte nehmen Sie das nicht ernst, wir machen nur unseren Job und Verlassen Sie deswegen nicht den Server.<><>Mit freundlichen Grussen<>Die Hitman Agency.','%d')",
    SpielerName(playerid),day,month,year,hour,minute,mk,PlayerInfo[playerid][pSQLID]);
    mysql_query(query);
    PlayerInfo[playerid][pHeadValue] = 0;
    PlayerInfo[killerid][pWantedLevel] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1){
    new stringz[258];
    format(stringz,sizeof(stringz)," 1 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    Variable = 1;
    }}
    if(PlayerInfo[killerid][pHeadValue] > 0 && IsPlayerConnected(playerid) && IsAHitman(playerid) && GoChase[playerid] == killerid){
    ContractTaked[killerid] = 0;
    ForAllPlayers(HitMof) {
    if(IsPlayerConnected(HitMof) && IsAHitman(HitMof) && GoChase[HitMof] == killerid) {
    GoChase[HitMof] = -1;
    SendClientMessage(HitMof, COLOR_YELLOW, "[Contract] Auftrag Fehlgeschlagen.");
    PlayerInfo[killerid][pHeadValue] = 0;
    PlayerInfo[killerid][pWantedLevel] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1){
    new stringz[258];
    format(stringz,sizeof(stringz)," 1 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    Variable = 1;
    return 1;
    }}}
    if(IsACop(killerid)){
    Variable = 1;
    }
    else{
    if(GetPlayerState(killerid) == 2){
    if(PlayerInfo[playerid][pLevel] == 1){
    SendClientMessage(killerid,COLOR_KNALLROT,"[SERVERGUARD] Du wurdest wegen Fahrer Drive-By auf Neulinge(Level 1er) gekickt.");
    SetTimerEx("ConnectKick", 10,0,"i",killerid);
    format(string,sizeof(string),"[SERVERGUARD]: %s wurde vom Server gekickt. Grund: Fahrer Drive-By auf Neulinge(Level 1er)",SpielerName(killerid));
    SendAdminMessage(COLOR_LIGHTRED,1,string);
    return 1;
    }
    if(PlayerInfo[killerid][pLevel] == 1){
    SendClientMessage(killerid,COLOR_KNALLROT,"[SERVERGUARD] Du wurdest wegen Fahrer Drive-By als Neulinge(Level 1er) gekickt.");
    SetTimerEx("ConnectKick", 10,0,"i",killerid);
    format(string,sizeof(string),"[SERVERGUARD]: %s wurde vom Server gekickt. Grund: Fahrer Drive-By als Neulinge(Level 1er)",SpielerName(killerid));
    SendAdminMessage(COLOR_LIGHTRED,1,string);
    return 1;
    }
    SendClientMessage(playerid,COLOR_YELLOW,"Fahrer Drive-By ist Verboten!");
    Variable = 1;
    }}
    if(Variable == 0){
    if(IsACop(playerid) && OnDuty[playerid] == 1)
    {
    PlayerInfo[killerid][pWantedLevel] += 3;
    PlayerInfo[killerid][psKills] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1){
    new stringz[258];
    format(stringz,sizeof(stringz)," 3 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    }
    else{
    if(IsPlayerInArea(killerid,140.625,-2882.8125,2929.6875,-667.96875) || IsPlayerInArea(killerid,-2929.6875,-1042.96875,-1148.4375,1488.28125) || IsPlayerInArea(killerid,878.90625,585.9375,2941.40625,2847.65625)){
    PlayerInfo[killerid][pWantedLevel] += 2;
    PlayerInfo[killerid][psKills] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1){
    new stringz[258];
    format(stringz,sizeof(stringz)," 2 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    }else{
    new bekommt = random(2)+1;
    if(bekommt == 1){
    PlayerInfo[killerid][pWantedLevel] += 1;
    PlayerInfo[killerid][psKills] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1){
    new stringz[258];
    format(stringz,sizeof(stringz)," 1 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    }
    if(bekommt == 2){
    }
    }
    }
    }
    if(reason == 38){
    new kickname[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid)){
    if(Minigunarena[playerid] == 0 || PlayerInfo[playerid][pAdmin] != 2000){
    GetPlayerName(killerid, kickname, sizeof(kickname));
    format(string, sizeof(string), "[AdmWarning] [%d]%s ist im verdacht eine Minigun zubenutzen.",killerid,kickname);
    SendAdminMessage(COLOR_YELLOW,1,string);
    }
    }}
    if(gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11){
    DisablePlayerCheckpoint(playerid);
    gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
    }
    return 1;
    }

  • Ich habe so um die 20-30 Fehler gefunden und behoben.
    Allerdings sind in dem Code noch einige Stellen die keinen Sinn geben, semantisch gesehen (es wird zuerst abgefragt ob der Spieler verbunden ist, und danach wird abefragt, ob seine ID INVALID_PLAYER_ID ist, und das schließt sich jeweils aus, aber gut.
    Hier:

    Spoiler anzeigen
    public OnPlayerDeath(playerid, killerid, reason)
    {
    SWAT[playerid] = 0;
    Schild[playerid] = 0;
    MCCEnter[playerid] = 0;
    new Float:xh,Float:yh,Float:zh;
    GetPlayerPos(playerid,xh,yh,zh);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(Schussmeldung[i] == 1)
    {
    if (playerid != INVALID_PLAYER_ID)
    {
    new string[258];
    if(IsPlayerInRangeOfPoint(playerid,50.0,xh,yh,zh))
    {
    format(string,sizeof(string),"[AdmWarning] In deiner Sichtweite hat [%d]%s den Spieler [%d]%s getötet (Waffe/Grund: %s)",killerid,SpielerName(killerid),playerid,SpielerName(playerid),WaffenNamen[reason]);
    SendClientMessage(i,COLOR_ORANGE,string);
    }
    }
    }
    }
    if(IsInBus[playerid] == 1)
    {
    IsInBus[playerid] = 0; Haltestellevar[playerid] = 0;
    }
    new CopArrest = 3,string[285];
    new name[MAX_PLAYER_NAME],killername[MAX_PLAYER_NAME],sendername[MAX_PLAYER_NAME],Float:px,Float:py,Float:pz,Variable = 0;

    if(IsPlayerInArea(playerid, -166.313476, -3000.031250, 3001.686523, 471.968750))
    {
    MedicBill[playerid] = 1; CopArrest = 3;
    }
    // LS
    else if(IsPlayerInArea(playerid, -2999.750732, -3003.380371, -1255.750732, 3004.619628) || IsPlayerInArea(playerid, -1257.077636, -3002.345458, -161.077636, 469.654602))
    {
    MedicBill[playerid] = 2; CopArrest = 1;
    }
    // SF
    else if(IsPlayerInArea(playerid, -1256.001708, 468.000610, 2999.998291, 3004.000488))
    {
    MedicBill[playerid] = 3; CopArrest = 3;
    }
    // LV
    if(MedicBill[playerid] == 0)
    {
    MedicBill[playerid] = 1;
    }

    if(InArena[playerid] == 0 && Maske[playerid] == 0 && cprison[playerid] == 0 && MedicBill[playerid] > 0 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && PlayerInfo[playerid][pAdminOnDuty] == 0 && FirstSpawnAfterLogin[playerid] == 0)
    {
    if(IsACop(playerid) && OnDuty[playerid] == 1 )
    {
    TAddPickup(playerid, GetPlayerVirtualWorld(playerid), 30, SpielerName(playerid));

    if(GetPlayerInterior(playerid) > 0 || PlayerInfo[playerid][pLocal] != -1)
    {
    format(string,sizeof(string),"%s(ID: %d) ist gestorben und benötigt eine Wiederbelebung in der Gebäudekomplex %d.%d. (Tippe /accept wiederbelebung %d ein um den Notruf anzunehmen.)",SpielerName(playerid),playerid,GetPlayerInterior(playerid), PlayerInfo[playerid][pLocal],playerid);
    SendMedicMessage(COLOR_RED, string);
    format(string, sizeof(string), "Gebäudekomplex %d.%d", GetPlayerInterior(playerid), PlayerInfo[playerid][pLocal]);
    strmid(AnrufZone[playerid], string, 0, strlen(string), 255);
    }
    else
    {
    new zone[MAX_ZONE_NAME];
    GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
    format(string,sizeof(string),"%s(ID: %d) ist gestorben und benötigt eine Wiederbelebung in %s. (Tippe /accept wiederbelebung %d ein um den Notruf anzunehmen.)",SpielerName(playerid),playerid,zone,playerid);
    SendMedicMessage(COLOR_RED,string);
    strmid(AnrufZone[playerid], zone, 0, strlen(zone), 255);
    }
    GetPlayerPos(playerid,DeadPoint[playerid][0],DeadPoint[playerid][1],DeadPoint[playerid][2]);
    AnrufAktiv[playerid] = 1;
    Anruftimer[playerid] = 30;
    AnrifErsteller[playerid] = playerid;
    DeadPeople[playerid] = playerid;
    }
    else
    {
    TAddPickup(playerid, GetPlayerVirtualWorld(playerid), 60, SpielerName(playerid));
    if(GetPlayerInterior(playerid) > 0 || PlayerInfo[playerid][pLocal] != -1)
    {
    format(string,sizeof(string),"%s(ID: %d) ist gestorben und benötigt eine Wiederbelebung in der Gebäudekomplex %d.%d. (Tippe /accept wiederbelebung %d ein um den Notruf anzunehmen.)",SpielerName(playerid),playerid,GetPlayerInterior(playerid), PlayerInfo[playerid][pLocal],playerid);
    SendMedicMessage(COLOR_RED,string);
    format(string, sizeof(string), "Gebäudekomplex %d.%d", GetPlayerInterior(playerid), PlayerInfo[playerid][pLocal]);
    strmid(AnrufZone[playerid], string, 0, strlen(string), 255);
    }
    else
    {
    new zone[MAX_ZONE_NAME];
    GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
    format(string,sizeof(string),"%s(ID: %d) ist gestorben und benötigt eine Wiederbelebung in %s. (Tippe /accept wiederbelebung %d ein um den Notruf anzunehmen.)",SpielerName(playerid),playerid,zone,playerid);
    SendMedicMessage(COLOR_RED,string);
    strmid(AnrufZone[playerid], zone, 0, strlen(zone), 255);
    }
    GetPlayerPos(playerid,DeadPoint[playerid][0],DeadPoint[playerid][1],DeadPoint[playerid][2]);
    AnrufAktiv[playerid] = 1;
    Anruftimer[playerid] = 60;
    AnrifErsteller[playerid] = playerid;
    DeadPeople[playerid] = playerid;
    }
    }
    new entry[885],Querry[885];
    if(killerid != INVALID_PLAYER_ID)
    {
    format(entry, sizeof(entry), "[%s %s] GEKILLT VON >> %s", INCLUDE_Date(),INCLUDE_Time(), SpielerName(killerid));
    format(Querry,sizeof(Querry),"INSERT INTO `deathakte` (`AccountID`, `Eintrag`) VALUES ('%d','%s')",PlayerInfo[playerid][pSQLID],entry);
    mysql_query(Querry);
    }
    if(killerid != INVALID_PLAYER_ID)
    {
    format(entry, sizeof(entry), "[%s %s] KILL AN >> %s", INCLUDE_Date(),INCLUDE_Time(), SpielerName(playerid));
    format(Querry,sizeof(Querry),"INSERT INTO `killerakte` (`AccountID`, `Eintrag`) VALUES ('%d','%s')",PlayerInfo[killerid][pSQLID],entry);
    mysql_query(Querry);
    }
    new string6[500];
    if(killerid != INVALID_PLAYER_ID && InArena[playerid] == 0 && PlayerInfo[playerid][pTeam] == -1 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && !IsACop(killerid) && PlayerInfo[killerid][pTeam] != 8)
    {
    format(string6,sizeof(string6),"[AdmWarning] [%d]%s (Level %d) ist im verdacht SDM zu betreiben. (SDM Opfer: [%d]%s, Waffe: %s)",killerid,SpielerName(killerid),PlayerInfo[killerid][pLevel],playerid,SpielerName(playerid),WaffenNamen[reason]);
    SendAdminMessage(COLOR_YELLOW,1,string6);
    format(string, sizeof(string), "[KILL]: %s >> gekillt (%s) (SDM-Kill))",SpielerName(playerid),WaffenNamen[reason]);
    KillAkte(PlayerInfo[killerid][pSQLID], string);
    format(string, sizeof(string), "[GEKILLT]: %s von %s >> gekillt (%s) (SDM-Kill)",SpielerName(playerid),SpielerName(killerid),WaffenNamen[reason]);
    KillAkte(PlayerInfo[playerid][pSQLID], string);
    }
    else if(killerid != INVALID_PLAYER_ID)
    {
    format(string, sizeof(string), "[KILL]: %s >> gekillt (%s)",SpielerName(playerid),WaffenNamen[reason]);
    KillAkte(PlayerInfo[killerid][pSQLID], string);
    format(string, sizeof(string), "[GEKILLT]: %s von %s >> gekillt (%s)",SpielerName(playerid),SpielerName(killerid),WaffenNamen[reason]);
    KillAkte(PlayerInfo[playerid][pSQLID], string);
    }

    if(InArena[playerid] == 0 && cprison[playerid] == 0 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && FirstSpawnAfterLogin[playerid] == 0)
    {
    if(PlayerInfo[playerid][pLevel] >= 4)
    {
    new julianstring[258];
    format(julianstring,sizeof(julianstring),"Du hast wegen deines Todes $%d aus der Geldbörse verloren.",GetPlayerMoney(playerid)/100*15);
    SendClientMessage(playerid,COLOR_WHITE,julianstring);
    GivePlayerMoneys(playerid,-PlayerInfo[playerid][pCash]/100*15);
    }
    else
    {
    new julianstring[258];
    SendClientMessage(playerid,COLOR_WHITE,"HINWEIS: Aufgrund des Noob-Schutzes (bis einschließlich Level 3) verlierst du statt 15 nur 5 Prozent deines Bargelds!");
    format(julianstring,sizeof(julianstring),"Du hast wegen deines Todes $%d aus der Geldbörse verloren.",PlayerInfo[playerid][pCash]/100*5);
    SendClientMessage(playerid,COLOR_WHITE,julianstring);
    GivePlayerMoneys(playerid,PlayerInfo[playerid][pCash]/100*5);
    }
    }

    ResetPlayerWeapons(playerid);
    L_AntiWeaponHack(playerid);
    KillTimer(PlayerInfo[playerid][pBaggerTimer]);

    StuffInfo[sToteUser] += 1;
    Tot[playerid] = 1;
    GetPlayerName(playerid, sendername, sizeof(sendername));
    if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
    STDPlayer[playerid] = 0;
    EventEingeladen[playerid] = 0;
    SetPlayerVirtualWorld(playerid, 0);
    GetPlayerPos(playerid, px, py, pz);
    GetPlayerName(playerid, name, sizeof(name));
    if(IsPlayerConnected(killerid))
    {
    if(PlayerInfo[playerid][pJailed] != 0 || cprison[playerid] == 1)
    {
    SendClientMessage(killerid, COLOR_YELLOW, "Das Töten von Prison/Knast Insassen ist verboten. Unterlasse es!");
    return 1;
    }
    else if(PlayerInfo[killerid][pJailed] != 0 || cprison[killerid] == 1)
    {
    SendClientMessage(killerid,COLOR_YELLOW,"Das Töten von Prison/Knast Insassen ist verboten. Unterlasse es!");
    return 1;
    }
    }
    if(PlayerInfo[playerid][pMats] >= 1 || PlayerInfo[playerid][pDrugs] >= 1 || PlayerInfo[playerid][pCodes] >= 1)
    {
    if(PlayerInfo[playerid][pMats] >= 1)
    {
    //DropBoxInfo[i][DBMatsAnzahl] = PlayerInfo[playerid][pMats]/2;
    PlayerInfo[playerid][pMats] = 0;
    SendClientMessage(playerid, COLOR_GRAD2, "Da du gestorben bist hast du alle Materialien verloren.");
    }
    if(PlayerInfo[playerid][pDrugs] >= 1)
    {
    //DropBoxInfo[i][DBDrugsAnzahl] = PlayerInfo[playerid][pDrugs]/2;
    PlayerInfo[playerid][pDrugs] = 0;
    SendClientMessage(playerid, COLOR_GRAD2, "Da du gestorben bist hast du alle Drogen verloren.");
    }
    if(PlayerInfo[playerid][pCodes] >= 1)
    {
    //DropBoxInfo[i][DBCodesAnzahl] = PlayerInfo[playerid][pCodes]/2;
    PlayerInfo[playerid][pCodes] = 0;
    SendClientMessage(playerid, COLOR_GRAD2, "Da du gestorben bist hast du alle Codes verloren.");
    }
    }
    if(killerid == INVALID_PLAYER_ID && Logintime[playerid] >= 5 || killerid != INVALID_PLAYER_ID && Logintime[playerid] >= 5 && !IsACop(killerid))
    {
    if(PlayerInfo[playerid][pWantedLevel] >= 1 && WantedLoseAllow[playerid] != 0)
    {
    ForAllPlayers(i)
    {
    if(IsACop(i) && OnDuty[i] == 1 && IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid, i) <= 100 && PlayerInfo[i][pAdminOnDuty] == 0 && Spectate[i] == -1)
    {
    new JailTime = PlayerInfo[playerid][pWantedLevel] * JailSecondsPerWanted;
    new price = PlayerInfo[playerid][pWantedLevel] * JailDollarPerWanted;
    if(PlayerInfo[playerid][pWantedLevel] >= 30)
    {
    PlayerInfo[playerid][pJailTime] += 7200;
    }
    else
    {
    PlayerInfo[playerid][pJailTime] += JailTime;
    }
    if(PlayerInfo[playerid][pWantedLevel] >= 6)
    {
    PlayerInfo[playerid][pJailed] = 2;
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 2144.1943,1617.5361,993.6882);
    SetPlayerFacingAngle(playerid, 270);
    SetPlayerSkin(playerid, 206);
    SetCameraBehindPlayer(playerid);
    }
    else
    {
    PlayerInfo[playerid][pJailed] = 3;
    }
    GivePlayerMoneys(playerid, -price); PlayerInfo[playerid][pArrestTime] += JailTime;
    format(string, sizeof(string), "* Du wurdest eingebuchtet für %d Minuten und verlierst %s$ weil du in der nähe eins Cops gestorben bist.", PlayerInfo[playerid][pJailTime]/60, GetPoint(price));
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "HQ: An alle Einheiten, der Auftrag wurde ausgeführt.");
    SendClientMessage(i,COLOR_DBLUE, string);
    format(string, sizeof(string), "HQ: %s wurde verhaftet, Erschossen",name);
    SendClientMessage(i,COLOR_DBLUE, string);

    SendClientMessage(killerid,COLOR_LIGHTBLUE,"Du hast (25) Coins bekommen, da du den Verbrecher erschossen hast.");
    //PlayerInfo[killerid][pCoints] += 25; //Zeile macht keinen Sinn, da zuvor abgefragt wird ob killerid INVALID_PLAYER_ID ist.

    CreateWantedLabel(playerid);
    SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
    PlayerInfo[playerid][pWantedLevel] = 0;
    break;
    }
    }
    }
    }
    if(gPlayerUsingLoopingAnim[playerid])
    {
    gPlayerUsingLoopingAnim[playerid] = 0;
    TextDrawHideForPlayer(playerid, TextAnimation);
    }
    if(killerid != INVALID_PLAYER_ID && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0)
    {
    PlayerInfo[playerid][pDeaths] += 1;
    PlayerInfo[killerid][pKills] += 1;
    }
    if(PlayerInfo[playerid][pBankrob] == 1)
    {
    if(IsPlayerConnected(killerid))
    {
    GetPlayerName(killerid, killername, sizeof(killername));
    GivePlayerMoneys(killerid, 8000);
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Der Bankraub ist gescheitert.");
    format(string, sizeof(string), "[Information]: %s hat den Bankräuber %s erfolgreich ausgeschaltet und verdiente $8000.",killername,name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    StuffInfo[sAusgaben] += 8000; SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pBankrob] = 0;
    BizInfo[3][bLocked] = 0; BizInfo[8][bLocked] = 0; BizInfo[17][bLocked] = 0; BankrobStatus = 0; Variable = 1;
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
    RemovePlayerAttachedObject(playerid, i);
    }
    SendClientMessage(killerid,COLOR_YELLOW,"Du hast für das Ausschalten des Bankräubers (10) Coins erhalten.");
    PlayerInfo[killerid][pCoints] += 10;
    }
    else
    {
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Der Bankraub ist gescheitert.");
    format(string, sizeof(string), "[Information]: Bankräuber %s ist beim Versuch die Bank auszurauben gestorben.", name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPlayerVirtualWorld(playerid, 0);
    BizInfo[3][bLocked] = 0; BizInfo[8][bLocked] = 0; BizInfo[17][bLocked] = 0; PlayerInfo[playerid][pBankrob] = 0; BankrobStatus = 0; Variable = 1;
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
    RemovePlayerAttachedObject(playerid, i);
    }
    }
    }
    if(PlayerInfo[playerid][pImRaub] == 1)
    {
    if(IsPlayerConnected(killerid))
    {
    GetPlayerName(killerid, killername, sizeof(killername));
    GivePlayerMoneys(killerid, 9000);
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Die Geiselnahme gescheitert.");
    format(string, sizeof(string), "[Information]: %s hat den Geiselnehmer %s erfolgreich ausgeschaltet und verdiente $9000.",killername,name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    StuffInfo[sAusgaben] += 9000; SetPlayerVirtualWorld(playerid, 0); PlayerInfo[playerid][pImRaub] = 0; PlayerInfo[playerid][pGeiselnahme] = 0;
    KillTimer(Geiselnahme[playerid]);
    Geiselnamestatus = 0;
    SendClientMessage(killerid,COLOR_YELLOW,"Du hast für das Stoppen der Geiselnahme (10) Coins erhalten.");
    PlayerInfo[killerid][pCoints] += 10;
    }
    else
    {
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Die Geiselnahme gescheitert.");
    format(string, sizeof(string), "[Information]: Geiselnehmer %s ist bei der Geisenahme im Juwelierladen gestorben.", name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pGeiselnahme] = 0;
    PlayerInfo[playerid][pImRaub] = 0;
    KillTimer(Geiselnahme[playerid]);
    Geiselnamestatus = 0;
    }
    }
    if(PlayerInfo[playerid][pHandyRob] == 1)
    {
    if(IsPlayerConnected(killerid))
    {
    GetPlayerName(killerid, killername, sizeof(killername));
    GivePlayerMoneys(killerid, 7500);
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Der Handyladenraub ist gescheitert.");
    format(string, sizeof(string), "[Information]: %s hat den Handyladenräuber %s erfolgreich ausgeschaltet und verdiente $7500.",killername,name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    StuffInfo[sAusgaben] += 7500; SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pHandyRob] = 0;
    PlayerInfo[playerid][pHurensohn] = 0;
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
    RemovePlayerAttachedObject(playerid, i);
    }
    HandyAusrauben = 75;
    KillTimer(Handyraubtimer[playerid]);
    Ausraubstatuscheck = 0;
    SendClientMessage(killerid,COLOR_YELLOW,"Du hast für das Ausschalten des Handyladenräuebrs (10) Coins erhalten.");
    PlayerInfo[killerid][pCoints] += 10;
    }
    else
    {
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(COLOR_LIGHTBLUE, "[Information]: Der Handyladenraub ist gescheitert.");
    format(string, sizeof(string), "[Information]: Handyladenräuber %s ist beim Versuch den Handyladen auszurauben gestorben.", name);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string); SetPlayerVirtualWorld(playerid, 0);
    PlayerInfo[playerid][pHandyRob] = 0;
    PlayerInfo[playerid][pHurensohn] = 0;
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
    RemovePlayerAttachedObject(playerid, i);
    }
    HandyAusrauben = 75;
    KillTimer(Handyraubtimer[playerid]);
    Ausraubstatuscheck = 0;
    }
    }
    if(killerid != INVALID_PLAYER_ID && InArena[playerid] == 0 && IsACop(killerid) && OnDuty[killerid] == 1 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && PlayerInfo[playerid][pWantedLevel] >= 1 || PlayerInfo[killerid][pTeam] == 12 && OnDuty[killerid] == 1 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && PlayerInfo[playerid][pWantedLevel] >= 1 && InArena[playerid] == 0)
    {
    new JailTime = PlayerInfo[playerid][pWantedLevel] * JailSecondsPerWanted;
    new price = PlayerInfo[playerid][pWantedLevel] * JailDollarPerWanted;
    if(PlayerInfo[playerid][pWantedLevel] >= 6)
    {
    PlayerInfo[playerid][pJailed] = 2;
    SetPlayerInterior(playerid, 1);
    SetPlayerPos(playerid, 2144.1943,1617.5361,993.6882);
    SetPlayerFacingAngle(playerid, 270);
    SetPlayerSkin(playerid, 206);
    SetCameraBehindPlayer(playerid);
    WantLawyer[playerid] = 0;
    }
    else
    {
    PlayerInfo[playerid][pJailed] = CopArrest;
    WantLawyer[playerid] = 1;
    }
    if(PlayerInfo[playerid][pWantedLevel] >= 30)
    {
    PlayerInfo[playerid][pJailTime] += 7200;
    }
    else
    {
    PlayerInfo[playerid][pJailTime] += JailTime;
    }
    GivePlayerMoneys(playerid, -price); //GivePlayerMoneys(killerid, price/2);
    StuffInfo[sSteuerkasse] += price/2;
    PlayerInfo[playerid][pArrestTime] += JailTime;
    format(string, sizeof(string), "* Du wurdest für %d Minuten eingesperrt und verlierst wegen Flucht und Kill durch einen Polizisten %s$.",PlayerInfo[playerid][pJailTime]/60, GetPoint(price)); SendClientMessage(playerid, COLOR_LIGHTRED, string); SetPlayerFree(playerid, killerid, "Erschossen", 0);
    PlayerInfo[playerid][pArrested] += 1; PlayerInfo[playerid][pWantedLevel] = 0; MedicBill[playerid] = -1; Variable = 1;
    GetPlayerName(killerid, killername, sizeof(killername));
    CreateWantedLabel(playerid);
    SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWantedLevel]);
    format(string, sizeof(string), "~w~Fluechtingen Straftaeter~n~~r~getoetet"); GameTextForPlayer(killerid, string, 2000, 1);
    }
    if(PlayerInfo[playerid][pWantedLevel] > 0 && PlayerPaintballing[playerid] == 0 && PlayerTeamPaintballing[playerid] == 0 && InArena[playerid] == 0)
    {
    new wanted = PlayerInfo[playerid][pWantedLevel],
    diecash = PlayerInfo[playerid][pWantedLevel]*10;
    format(string, sizeof(string), "Du verlierst $%d wegen Sterben mit %d Wanted Punkten.", diecash, wanted);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    GivePlayerMoneys(playerid, -diecash);
    }
    /*if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
    new VEH = GetPlayerVehicleID(playerid);
    if(Locked[VEH] == 1){
    Locked[VEH] = 0;
    ForAllPlayers(i){
    SetVehicleParamsForPlayer(VEH,i, 0, 0);
    }}}*/
    for(new vanK = 0; vanK < 20; vanK++)
    {
    if(Kartoffellaster[vanK][KAktive] == 1)
    {
    if(Kartoffellaster[vanK][KMieterID] == playerid)
    {
    Kartoffellaster[vanK][KMieterID] = -1;
    Kartoffellaster[vanK][KAktive] = 0;
    DestroyVehicleSelfmade(Kartoffellaster[vanK][KVehicle]);
    Motorschaden[Kartoffellaster[vanK][KVehicle]] = 0;
    break;
    }
    }
    }
    if(killerid != INVALID_PLAYER_ID && InArena[playerid] == 1)
    {
    Variable = 1;
    if(Minigunarena[playerid] == 1 && Minigunspiel == 1)
    {
    Minigunarenakill[killerid] ++;
    }
    }
    if(killerid != INVALID_PLAYER_ID && PlayerPaintballing[playerid] != 0)
    {
    Variable = 1;
    PlayerPaintballKills[killerid] ++;
    if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
    {
    PaintballWinner = killerid;
    PaintballWinnerKills = PlayerPaintballKills[killerid];
    GetPlayerName(killerid, killername, sizeof(killername));
    format(string, sizeof(string), "~w~Du hast~r~ %s ~w~gekillt (+1 Coin)",name);
    GameTextForPlayer(killerid, string, 2000, 1);
    format(string, sizeof(string), "~w~Du wurdest von ~r~ %s ~w~gekillt",killername);
    GameTextForPlayer(playerid, string, 2000, 1);
    PlayerInfo[killerid][pCoints] += 1;
    ForAllPlayers(i)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerPaintballing[i] != 0)
    {
    format(string, sizeof(string), "* %s führt mit %d Morden.",killername,PaintballWinnerKills);
    SendClientMessage(i, COLOR_PURPLE, string);
    }
    }
    }
    }
    return 1;
    }
    if(PlayerTeamPaintballing[playerid] != 0)
    {
    if(PlayerTeamPaintballing[playerid] == 1)
    {
    Team2pk++;
    }
    else if(PlayerTeamPaintballing[playerid] == 2)
    {
    Team1pk++;
    }
    GetPlayerName(killerid, killername, sizeof(killername));
    format(string, sizeof(string), "~r~%s~w~ gekillt",name);
    GameTextForPlayer(killerid, string, 2000, 1);
    format(string, sizeof(string), "~w~Gekillt von~r~ %s",killername);
    GameTextForPlayer(playerid, string, 2000, 1);
    format(string, sizeof(string), "~b~Blau: ~w~%d~n~~g~Grun: ~w~%d",Team2pk,Team1pk);
    TextDrawSetString(Text:TeamDMDraw, string);
    return 1;
    }
    for(new i = 0; i < sizeof(GangfightSystemInfo); i++)
    {
    if(IsPlayerConnected(playerid) && IsPlayerConnected(killerid))
    {
    if(IsPlayerInArea(killerid, GangfightSystemInfo[i][MinX],GangfightSystemInfo[i][MinY],GangfightSystemInfo[i][MaxX],GangfightSystemInfo[i][MaxY]))
    {
    new Killerteam = PlayerInfo[killerid][pTeam];
    new Playerteam = PlayerInfo[playerid][pTeam];
    if((GangfightSystemInfo[i][GFOwnerID] == Killerteam && GangfightSystemInfo[i][GFGegnerID] == Playerteam) || (GangfightSystemInfo[i][GFOwnerID] == Playerteam && GangfightSystemInfo[i][GFGegnerID] == Killerteam) || killerid == INVALID_PLAYER_ID || GangfightSystemInfo[i][GFOwnerID] == Playerteam && GangfightSystemInfo[i][GFOwnerID] == Killerteam || GangfightSystemInfo[i][GFGegnerID] == Playerteam && GangfightSystemInfo[i][GFGegnerID] == Killerteam)
    {
    if(killerid == INVALID_PLAYER_ID || GangfightSystemInfo[i][GFOwnerID] == Playerteam && GangfightSystemInfo[i][GFOwnerID] == Killerteam || GangfightSystemInfo[i][GFGegnerID] == Playerteam && GangfightSystemInfo[i][GFGegnerID] == Killerteam)
    {
    if(killerid == INVALID_PLAYER_ID)
    {
    if(GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[playerid][pTeam])
    {
    GangfightSystemInfo[i][GFGegnerPoints] += 3;
    return 1;
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[playerid][pTeam])
    {
    GangfightSystemInfo[i][GFOwnerPoints] += 3;
    return 1;
    }
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[playerid][pTeam] && GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[killerid][pTeam])
    {
    GangfightSystemInfo[i][GFGegnerPoints] += 3;
    return 1;
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[playerid][pTeam] && GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[killerid][pTeam])
    {
    GangfightSystemInfo[i][GFOwnerPoints] += 3;
    return 1;
    }
    }
    if(GangfightSystemInfo[i][GFOwnerID] == PlayerInfo[playerid][pTeam])
    {
    GangfightSystemInfo[i][GFGegnerPoints] += 1;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == PlayerInfo[playerid][pTeam])
    {
    GangfightSystemInfo[i][GFOwnerPoints] += 1;
    }
    new zufall = random(5);
    new OwnerTeamText[20];
    if(GangfightSystemInfo[i][GFOwnerID] == 5)
    {
    OwnerTeamText = "La Cosa Nostra";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 3)
    {
    OwnerTeamText = "Brigada";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 6)
    {
    OwnerTeamText = "Yakuza";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 15)
    {
    OwnerTeamText = "Biker BoyZ";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 18)
    {
    OwnerTeamText = "V.L.Aztecas";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 19)
    {
    OwnerTeamText = "Grove Street";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 20)
    {
    OwnerTeamText = "Ballas";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 21)
    {
    OwnerTeamText = "West Coast Customs";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 22)
    {
    OwnerTeamText = "Triaden";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 23)
    {
    OwnerTeamText = "Red Soldiers";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 24)
    {
    OwnerTeamText = "L.S.Vagos";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 25)
    {
    OwnerTeamText = "Irish Crime Family";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 26)
    {
    OwnerTeamText = "Cali Kartell";
    }
    else if(GangfightSystemInfo[i][GFOwnerID] == 1)
    {
    OwnerTeamText = "SF Rifas";
    }
    new GegnerTeamText[20];
    if(GangfightSystemInfo[i][GFGegnerID] == 5)
    {
    GegnerTeamText = "La Cosa Nostra";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 3)
    {
    GegnerTeamText = "Brigada";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 6)
    {
    GegnerTeamText = "Yakuza";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 15)
    {
    GegnerTeamText = "Biker BoyZ";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 18)
    {
    GegnerTeamText = "V.L.Aztecas";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 19)
    {
    GegnerTeamText = "Grove Street";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 20)
    {
    GegnerTeamText = "Ballas";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 21)
    {
    GegnerTeamText = "West Coast Customs";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 22)
    {
    GegnerTeamText = "Triaden";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 23)
    {
    GegnerTeamText = "Red Soldiers";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 24)
    {
    GegnerTeamText = "L.S.Vagos";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 25)
    {
    GegnerTeamText = "Irish Crime Family";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 26)
    {
    GegnerTeamText = "Cali Kartell";
    }
    else if(GangfightSystemInfo[i][GFGegnerID] == 1)
    {
    GegnerTeamText = "SF Rifas";
    }
    if(zufall == 2)
    {
    format(string, sizeof(string), "NEWS: Im Kampf um das Gebiet steht es %d (%s) zu %d (%s).", GangfightSystemInfo[i][GFOwnerPoints], OwnerTeamText, GangfightSystemInfo[i][GFGegnerPoints], GegnerTeamText);
    OOCNews(COLOR_NEWS, string);
    }
    format(string, sizeof(string), "[Gangfight] %s hat %s im Gangfight %s gegen %s gekillt.", PlayerName(killerid),PlayerName(playerid), OwnerTeamText, GegnerTeamText);
    ForAllPlayers(pl)
    {
    if(IsPlayerConnected(pl) && PlayerInfo[pl][pTeam] == PlayerInfo[playerid][pTeam])
    {
    SendClientMessage(pl, COLOR_TUTORIAL, string);
    }
    if(IsPlayerConnected(pl) && PlayerInfo[pl][pTeam] == PlayerInfo[killerid][pTeam])
    {
    SendClientMessage(pl, COLOR_TUTORIAL, string);
    }
    }
    Variable = 1;
    GameTextForPlayer(killerid, "~g~GANGZONEKILL", 2500, 3); GameTextForPlayer(playerid, "~r~GANGZONEKILL", 2500, 3);
    return 1;
    }
    }
    }
    }
    for(new i = 0; i < sizeof(GangWarSystemInfo); i++)
    {
    if(IsPlayerConnected(playerid) && IsPlayerConnected(killerid) && GangWarSystemInfo[i][GWActive] == 1)
    {
    if((GangWarSystemInfo[i][GWTeam1ID] == PlayerInfo[killerid][pTeam] && GangWarSystemInfo[i][GWTeam2ID] == PlayerInfo[playerid][pTeam]) || (GangWarSystemInfo[i][GWTeam1ID] == PlayerInfo[playerid][pTeam] && GangWarSystemInfo[i][GWTeam2ID] == PlayerInfo[killerid][pTeam]))
    {
    if(InArena[playerid] == 0 && InArena[killerid] == 0 && PlayerPaintballing[playerid] == 0 && PlayerPaintballing[killerid] == 0 || PlayerTeamPaintballing[playerid] == 0 && PlayerTeamPaintballing[killerid] == 0)
    {
    if(GangWarSystemInfo[i][GWTeam1ID] == PlayerInfo[killerid][pTeam])
    {
    GangWarSystemInfo[i][GWTeam1Points] += 1;
    }
    if(GangWarSystemInfo[i][GWTeam2ID] == PlayerInfo[killerid][pTeam])
    {
    GangWarSystemInfo[i][GWTeam2Points] += 1;
    }
    if(KassenInfo[PlayerInfo[playerid][pTeam]][Phantom] >= 500)
    {
    new Chance = random(100);
    PlayerInfo[killerid][pWantedLevel] += 1;
    if(Chance <= 24)
    {
    }
    }
    PlayerInfo[killerid][pWantedLevel] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1)
    {
    new stringz[258];
    format(stringz,sizeof(stringz)," 1 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    Variable = 1;
    GameTextForPlayer(killerid, "~g~GANGWARKILL (+3 Coin| +1 UP)", 2500, 3); GameTextForPlayer(playerid, "~r~GANGWARKILL", 2500, 3);
    KassenInfo[PlayerInfo[killerid][pTeam]][tPoints] += 1;
    SaveGangWar(i);
    KassenSpeicherung(PlayerInfo[killerid][pTeam]);
    //SendClientMessage(playerid,COLOR_YELLOW,"Durch den Tod eines Gangwarkills verlierst du (1) Coin!");
    PlayerInfo[killerid][pCoints] += 3;
    //SendClientMessage(killerid,COLOR_YELLOW,"Durch die tötung deines Gangwarfeindes erhältst du (1) Coint von ihm!");
    break;
    }
    }
    }
    }
    if(IsPlayerConnected(playerid) && IsPlayerConnected(killerid))
    {
    if(NoDmTimer[playerid] >= 15)
    {
    if(!IsACop(killerid) && OnDuty[killerid] != 1)
    {
    new darf = 1;
    if(GoChase[killerid] == playerid && NoDmTimer[playerid] < 60)
    {
    darf = 0;
    }
    else
    {
    darf = 1;
    }
    if(darf == 1)
    {
    GetPlayerName(killerid, killername, sizeof(killername));
    format(string, sizeof(string), "[NoDM] %s hat dich in einer NoDM Zone getötet. Gib /punish ein, um ihn zu bestrafen.", killername);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    //SendClientMessage(playerid, COLOR_YELLOW, "[NO-DM] Benutze /punish, um ihn ins Prison zu schicken, oder /vergeben, um im zu verzeihen.");
    //SendClientMessage(killerid, COLOR_YELLOW, "[NO-DM] Das töten in einer No-Dm Zone ist verboten.");
    strmid(PlayerInfo[playerid][pNODMKiller], killername, 0, strlen(killername), 255);
    SetTimerEx("PunishRefresh",30000,0,"i",playerid);
    }
    }
    }
    }
    for(new i = 0; i < sizeof(BNDSystemInfo); i++)
    {
    if(IsPlayerConnected(playerid) && IsPlayerConnected(killerid))
    {
    if(BNDSystemInfo[i][BNDActive] == 1)
    {
    if((BNDSystemInfo[i][BNDTeam1ID] == PlayerInfo[killerid][pTeam] && BNDSystemInfo[i][BNDTeam2ID] == PlayerInfo[playerid][pTeam]) || (BNDSystemInfo[i][BNDTeam1ID] == PlayerInfo[playerid][pTeam] && BNDSystemInfo[i][BNDTeam2ID] == PlayerInfo[killerid][pTeam]))
    {
    if(InArena[playerid] == 0 && InArena[killerid] == 0 && PlayerPaintballing[playerid] == 0 && PlayerPaintballing[killerid] == 0 || PlayerTeamPaintballing[playerid] == 0 && PlayerTeamPaintballing[killerid] == 0)
    {
    GetPlayerName(killerid, killername, sizeof(killername));
    format(string, sizeof(string), "[BND] Bündnissmitglied %s hat dich getötet.", killername);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "[BND] Du hast Bündnissmitglied %s getötet.",SpielerName(playerid));
    SendClientMessage(killerid, COLOR_LIGHTRED, string);
    break;
    }
    }
    }
    }
    }
    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
    if(IsPlayerConnected(killerid) && IsAHitman(killerid) && GoChase[killerid] == playerid)
    {
    new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    GivePlayerMoneys(killerid, PlayerInfo[playerid][pHeadValue]);
    ContractTaked[playerid] = 0;
    ForAllPlayers(HitMof)
    {
    if(IsPlayerConnected(HitMof))
    {
    if(IsAHitman(HitMof))
    {
    format(string, sizeof(string), "[Auftragskill] Hitman %s hat den Auftragskill an %s erfolgreich ausgeführt und verdiente %s$",killer,name,GetPoint(PlayerInfo[playerid][pHeadValue]));
    SendClientMessage(HitMof, COLOR_YELLOW, string);
    if(GoChase[HitMof] == playerid)
    {
    GoChase[HitMof] = -1;
    }
    }
    }
    }
    SendClientMessage(killerid,COLOR_LIGHTBLUE,"Du hast (20) Coins bekommen, da du den Auftrag erledigt hast.");
    PlayerInfo[killerid][pCoints] += 20;

    new query[2001],day,month,year,hour,minute,second,mk;
    SendClientMessage(playerid, COLOR_YELLOW, "[Auftragskill] Du wurdest von einem Mitglied aus der Hitman-Agency getötet.");
    SendClientMessage(playerid, COLOR_YELLOW, "[Auftragskill] Für weitere Informationen hast du einen Brief erhalten.");
    gettime(hour,minute,second);
    getdate(year,month,day);
    mk = mktime(hour,minute,second,day,month,year);
    format(query,sizeof(query),"INSERT INTO `post` (Sender,Reciever,Date,Time,MK,New,Subject,Text,SQLID) VALUES('System','%s','%d-%d-%d','%d:%d',%i,1,'Auftragskiller','Guten Tag<>Sie wurden von einem Auftragskiller getoetet, da jemand auf Sie Geld gestellt hat, damit Sie die Hitman Agency toetet.<>Bitte nehmen Sie das nicht ernst, wir machen nur unseren Job und Verlassen Sie deswegen nicht den Server.<><>Mit freundlichen Grussen<>Die Hitman Agency.','%d')",
    SpielerName(playerid),day,month,year,hour,minute,mk,PlayerInfo[playerid][pSQLID]);
    mysql_query(query);
    PlayerInfo[playerid][pHeadValue] = 0;
    PlayerInfo[killerid][pWantedLevel] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1)
    {
    new stringz[258];
    format(stringz,sizeof(stringz)," 1 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    Variable = 1;
    }
    }
    if(killerid != INVALID_PLAYER_ID && PlayerInfo[killerid][pHeadValue] > 0 && IsPlayerConnected(playerid) && IsAHitman(playerid) && GoChase[playerid] == killerid)
    {
    ContractTaked[killerid] = 0;
    ForAllPlayers(HitMof)
    {
    if(IsPlayerConnected(HitMof) && IsAHitman(HitMof) && GoChase[HitMof] == killerid)
    {
    GoChase[HitMof] = -1;
    SendClientMessage(HitMof, COLOR_YELLOW, "[Contract] Auftrag Fehlgeschlagen.");
    PlayerInfo[killerid][pHeadValue] = 0;
    PlayerInfo[killerid][pWantedLevel] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1)
    {
    new stringz[258];
    format(stringz,sizeof(stringz)," 1 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    Variable = 1;
    return 1;
    }
    }
    }
    if(killerid != INVALID_PLAYER_ID && IsACop(killerid))
    {
    Variable = 1;
    }
    else
    {
    if(killerid != INVALID_PLAYER_ID && GetPlayerState(killerid) == 2)
    {
    if(PlayerInfo[playerid][pLevel] == 1)
    {
    SendClientMessage(killerid,COLOR_KNALLROT,"[SERVERGUARD] Du wurdest wegen Fahrer Drive-By auf Neulinge(Level 1er) gekickt.");
    SetTimerEx("ConnectKick", 10,0,"i",killerid);
    format(string,sizeof(string),"[SERVERGUARD]: %s wurde vom Server gekickt. Grund: Fahrer Drive-By auf Neulinge(Level 1er)",SpielerName(killerid));
    SendAdminMessage(COLOR_LIGHTRED,1,string);
    return 1;
    }
    if(PlayerInfo[killerid][pLevel] == 1)
    {
    SendClientMessage(killerid,COLOR_KNALLROT,"[SERVERGUARD] Du wurdest wegen Fahrer Drive-By als Neulinge(Level 1er) gekickt.");
    SetTimerEx("ConnectKick", 10,0,"i",killerid);
    format(string,sizeof(string),"[SERVERGUARD]: %s wurde vom Server gekickt. Grund: Fahrer Drive-By als Neulinge(Level 1er)",SpielerName(killerid));
    SendAdminMessage(COLOR_LIGHTRED,1,string);
    return 1;
    }
    SendClientMessage(playerid,COLOR_YELLOW,"Fahrer Drive-By ist Verboten!");
    Variable = 1;
    }
    }
    if(killerid != INVALID_PLAYER_ID && Variable == 0)
    {
    if(IsACop(playerid) && OnDuty[playerid] == 1)
    {
    PlayerInfo[killerid][pWantedLevel] += 3;
    PlayerInfo[killerid][psKills] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1)
    {
    new stringz[258];
    format(stringz,sizeof(stringz)," 3 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    }
    else
    {
    if(IsPlayerInArea(killerid,140.625,-2882.8125,2929.6875,-667.96875) || IsPlayerInArea(killerid,-2929.6875,-1042.96875,-1148.4375,1488.28125) || IsPlayerInArea(killerid,878.90625,585.9375,2941.40625,2847.65625))
    {
    PlayerInfo[killerid][pWantedLevel] += 2;
    PlayerInfo[killerid][psKills] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1)
    {
    new stringz[258];
    format(stringz,sizeof(stringz)," 2 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    }
    else
    {
    new bekommt = random(2)+1;
    if(bekommt == 1)
    {
    PlayerInfo[killerid][pWantedLevel] += 1;
    PlayerInfo[killerid][psKills] += 1;
    SetPlayerCriminal(killerid, 255, "Mord");
    if(PlayerInfo[killerid][pSQLID] >= 1)
    {
    new stringz[258];
    format(stringz,sizeof(stringz)," 1 Wanted(s) von Niemand\n{FFFFFF}> Grund: Mord");
    PolizeiAkte(PlayerInfo[killerid][pSQLID],stringz);
    }
    }
    if(bekommt == 2)
    {
    }
    }
    }
    }
    if(reason == 38)
    {
    new kickname[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid))
    {
    if(Minigunarena[playerid] == 0 || PlayerInfo[playerid][pAdmin] != 2000)
    {
    GetPlayerName(killerid, kickname, sizeof(kickname));
    format(string, sizeof(string), "[AdmWarning] [%d]%s ist im verdacht eine Minigun zubenutzen.",killerid,kickname);
    SendAdminMessage(COLOR_YELLOW,1,string);
    }
    }
    }
    if(gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
    {
    DisablePlayerCheckpoint(playerid);
    gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
    }
    return 1;
    }


    Wenn du einen guten Tipp willst: Wirf den Code in die Tonne. Wenn der, der den Code gemacht hat, in einem einzelnen Callback bestimmt 50 Fehler drin hat, dann kannst du dir ja ausrechnen, wie viele Fehler im ganzen Code sind.
    Zudem ist der Code ein pures Chaos und absolut schlecht eingerückt.

  • [i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i][i]
    [/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i]

    kann nicht in tonne cloppen sonst wäre script buggy ^^ :D eine frage hab ich noch unzwar








    [19:42:42] [debug] AMX backtrace:[19:42:42] [debug] #0 000875b0 in public SekundenTimer6 () from LSR1.0.amx[19:42:42] [debug] #1 native CallLocalFunction () [00472ad0] from samp-server.exe[19:42:42] [debug] #2 00328204 in public ProTimer () from LSR1.0.amx[19:42:43] [debug] Run time error 4: "Array index out of bounds"[19:42:43] [debug] Accessing element at index 320 past array upper bound 211[19:42:43] [debug] AMX backtrace:[19:42:43] [debug] #0 000875b0 in public SekundenTimer6 () from LSR1.0.amx[19:42:43] [debug] #1 native CallLocalFunction () [00472ad0] from samp-server.exe[19:42:43] [debug] #2 00328204 in public ProTimer () from LSR1.0.amx[19:42:44] [debug] Run time error 4: "Array index out of bounds"[19:42:44] [debug] Accessing element at index 320 past array upper bound 211[19:42:44] [debug] AMX backtrace:[19:42:44] [debug] #0 000875b0 in public SekundenTimer6 () from LSR1.0.amx[19:42:44] [debug] #1 native CallLocalFunction () [00472ad0] from samp-server.exe[19:42:44] [debug] #2 00328204 in public ProTimer () from LSR1.0.amx[19:42:45] [debug] Run time error 4: "Array index out of bounds"[19:42:45] [debug] Accessing element at index 320 past array upper bound 211


    public SekundenTimer6()
    {
    new string[500],Float:maxspeed = 200.0,playername[MAX_PLAYER_NAME],value,Float:xX,Float:yY,Float:zZ,Float:X,Float:Y,Float:Z;
    ForAllPlayers(i){if(IsPlayerConnected(i) && gPlayerLogged[i] && !IsPlayerNPC(i) && AFKModus[i] == 0){
    new VID = GetPlayerVehicleID(i), Float:health;
    GetVehicleHealth(VID, health);
    if(IsPlayerInAnyVehicle(i))
    {
    GetVehiclePos(VID, xX, yY, zZ);
    GetVehicleVelocity(VID, X, Y, Z);
    value = floatround(floatsqroot((X*X) + (Y*Y) + (Z*Z)) * 100 * 1.40);
    if(GetPlayerState(i) == 2)
    {
    GetVehicleVelocity(GetPlayerVehicleID(i) ,X, Y, Z);
    value = floatround(floatsqroot((X*X) + (Y*Y) + (Z*Z)) * 100 * 1.40);
    if(value > maxspeed)
    {
    new tmpcar = GetPlayerVehicleID(i);
    if(!IsAPlane(tmpcar))
    {
    GetPlayerName(i, playername, sizeof(playername));
    format(string, sizeof(string), "AdmWarnung: %s(ID: %d) verdacht auf Speedhack, Km/h %d.", playername, i, value, i);
    SendAdminMessage(COLOR_KNALLROT, 1, string);
    }
    }
    }
    GetVehiclePos(VID, xX, yY, zZ);
    GetVehicleVelocity(VID, X, Y, Z);
    value = floatround(floatsqroot((X*X) + (Y*Y) + (Z*Z)) * 100 * 1.40);
    new Float:TankInProzent = GasDaten[GetVehicleModel(VID)-400][Tankvolumen]/100;
    if(Gas[VID]/TankInProzent >= 95)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 100);
    }
    else if(Gas[VID]/TankInProzent >= 90)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 90);
    }
    else if(Gas[VID]/TankInProzent >= 80)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 80);
    }
    else if(Gas[VID]/TankInProzent >= 70)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 70);
    }
    else if(Gas[VID]/TankInProzent >= 60)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 60);
    }
    else if(Gas[VID]/TankInProzent >= 50)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 50);
    }
    else if(Gas[VID]/TankInProzent >= 40)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 40);
    }
    else if(Gas[VID]/TankInProzent >= 30)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 30);
    }
    else if(Gas[VID]/TankInProzent >= 20)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 20);
    }
    else if(Gas[VID]/TankInProzent >= 10)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 10);
    }
    else if(Gas[VID]/TankInProzent >= 0)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 0);
    }
    if(GetPlayerState(i) == 2)
    {
    UpdatePlayerProgressBar(i, TachoBar[i]);
    }
    GetVehicleVelocity(GetPlayerVehicleID(i) ,X, Y, Z);
    value = floatround(floatsqroot((X*X) + (Y*Y) + (Z*Z)) * 100 * 1.40);
    new Motor[80], HBremse[80], Licht[80];
    new Float:carhealth;
    GetVehicleHealth(GetPlayerVehicleID(i),carhealth);
    new Float:x,Float:y,Float:z;
    GetPlayerPos(i,x,y,z);
    new Float:x2, Float:y2, Float:z2, Float:output;
    GetVehiclePos(VID, x2, y2, z2);
    output = floatsqroot(floatpower(floatabs(floatsub(x2, vLastX[VID])), 2)+floatpower(floatabs(floatsub(y2, vLastY[VID])), 2)+floatpower(floatabs(floatsub(z2, vLastZ[VID])), 2));
    Kilometerstand[VID] += output;
    vLastX[VID] = x2; vLastY[VID] = y2; vLastZ[VID] = z2;
    Tankkm[VID] += output;
    if(Gas[GetPlayerVehicleID(i)] <= 0.00)
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(GetPlayerVehicleID(i),engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(GetPlayerVehicleID(i),VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Gas[GetPlayerVehicleID(i)] = 0.00;
    }
    if(Motorschaden[VID] == 1 && carhealth < 250)
    {
    SetVehicleHealth(VID, 250);
    }
    if(carhealth < 250 && Motorschaden[VID] == 0)
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(VID,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(VID,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleHealth(VID, 250);
    Motorschaden[VID] = 1;
    }
    if((Tankkm[GetPlayerVehicleID(i)]/1000) >= 1)
    {
    Gas[GetPlayerVehicleID(i)] -= GasDaten[GetVehicleModel(GetPlayerVehicleID(i))-400][Tankverbrauch];
    Tankkm[GetPlayerVehicleID(i)] = 0.00;
    }
    new vehicleid = GetPlayerVehicleID(i);
    VehSpeed[VID] = value;
    if(!IsAPlane(VID) && !IsABoat(VID) && !IsAFahrrad(VID))
    {
    format(string,sizeof(string),"Fahrzeug: ~g~%s",VehNames[GetVehicleModel(VID)-400]);
    PlayerTextDrawSetString(i, Tacho[i][1], string);


    format(string,sizeof(string),"Geschwindigkeit: ~g~%d",value);
    PlayerTextDrawSetString(i, Tacho[i][2], string);


    format(string,sizeof(string),"Zustand: ~g~%.2f%%",carhealth);
    PlayerTextDrawSetString(i, Tacho[i][3], string);


    format(string,sizeof(string),"KM-Stand: ~g~%.2f",Kilometerstand[VID]/1000);
    PlayerTextDrawSetString(i, Tacho[i][4], string);


    format(string,sizeof(string),"~g~%.2f/%.2fL",Gas[VID],GasDaten[GetVehicleModel(VID)-400][Tankvolumen]);
    PlayerTextDrawSetString(i, Tacho[i][6], string);
    if(MotorSystemMotor[VID] == false)
    {
    format(Motor,sizeof(Motor),"~r~Motor");
    }
    else
    {
    format(Motor,sizeof(Motor),"~g~Motor");
    }
    if(MotorSystemLight[VID] == false)
    {
    format(Licht,sizeof(Licht),"~r~Licht");
    }
    else
    {
    format(Licht,sizeof(Licht),"~g~Licht");
    }
    if(Handbremse[VID] == false)
    {
    format(HBremse,sizeof(HBremse),"~r~Handbremse");
    }
    else
    {
    format(HBremse,sizeof(HBremse),"~g~Handbremse");
    }
    format(string,sizeof(string),"%s %s %s", Motor, HBremse, Licht);
    PlayerTextDrawSetString(i, Tacho[i][8], string);
    VehSpeed[VID] = value;
    new model = GetVehicleModel(VID);
    if(model == 528)
    {
    GetPlayerPos(i,x,y,z);
    format(string,sizeof(string),"~w~X: ~g~%.1f ~w~Y: ~g~%.1f ~w~Z: ~g~%.1f",x,y,z);
    PlayerTextDrawSetString(i, FBITacho[i], string);
    }
    }
    if(Gas[GetPlayerVehicleID(i)] > GasDaten[GetPlayerVehicleID(i)][Tankvolumen])
    {
    Gas[GetPlayerVehicleID(i)] = GasDaten[GetPlayerVehicleID(i)][Tankvolumen];
    }
    }
    else
    {
    PlayerTextDrawHide(i,Tacho[i][0]);
    PlayerTextDrawHide(i,Tacho[i][1]);
    PlayerTextDrawHide(i,Tacho[i][2]);
    PlayerTextDrawHide(i,Tacho[i][3]);
    PlayerTextDrawHide(i,Tacho[i][4]);
    PlayerTextDrawHide(i,Tacho[i][5]);
    PlayerTextDrawHide(i,Tacho[i][6]);
    PlayerTextDrawHide(i,Tacho[i][7]);
    PlayerTextDrawHide(i,Tacho[i][8]);
    HidePlayerProgressBar(i, TachoBar[i]);
    PlayerTextDrawHide(i,FBITacho[i]);
    }
    }
    }
    for(new i; i<MAX_PLAYERS; i++)
    {
    new Float: health;
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(i, sendername, sizeof(sendername));
    if(Spectate[i] != -1){
    new targetid = Spectate[i];
    new VID = GetPlayerVehicleID(targetid),value = VehSpeed[VID];
    if(IsPlayerConnected(targetid)){
    if(PlayerInfo[i][pAdmin] >= 1 && IsPlayerInVehicle(targetid,VID)){
    new name[MAX_PLAYER_NAME];
    GetPlayerName(targetid, name, sizeof(name));
    GetPlayerHealth(targetid, health);
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~y~%s(ID:%d)~n~~y~Gesundheit:%.1f~n~~y~Geschwindigkeit:%d",name,targetid,health,value);
    GameTextForPlayer(i, string, 2500, 3);
    }
    if(PlayerInfo[i][pAdmin] >= 1 && !IsPlayerInVehicle(targetid,VID)){
    new name[MAX_PLAYER_NAME];
    GetPlayerName(targetid, name, sizeof(name));
    GetPlayerHealth(targetid, health);
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~y~%s(ID:%d)~n~~y~Gesundheit:%.1f~n~~y~Geschwindigkeit:%d",name,targetid,health,GetPlayerSpeed(targetid));
    GameTextForPlayer(i, string, 2500, 3);
    }
    SetPlayerVirtualWorld(i, GetPlayerVirtualWorld(targetid));
    SetPlayerInterior(i, GetPlayerInterior(targetid));
    }}
    // Spectator Ende
    // CustomPickups
    if(PlayerInfo[i][pAdminOnDuty] == 1){ I_SetPlayerArmour(i, 2000.0); I_SetPlayerHealth(i, 200.0);}
    GetPlayerHealth(i,health);
    if(health > 180.0){I_SetPlayerHealth(i, 150.0);}
    if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK && PlayerInfo[i][pAdmin] < 1338)
    {
    format(string, sizeof(string), "[SERVERGUARD]: %s wurde vom Server gebannt. Grund: Jetpack-Hack", sendername);
    SendAdminMessage(COLOR_LIGHTRED,1,string);
    SendClientMessage(i,COLOR_LIGHTRED,"Du wurdest gebannt: Permban. Grund: Jetpack-Hack. Erstelle jetzte einen Screenshot mit der Taste F8.");
    new hdw[256];
    gpci(i, hdw, sizeof hdw);
    format(string, sizeof string, "INSERT INTO `hwdban` (`Hardware`, `Grund`, `Admin`, `Spieler`, `BanDatum`) VALUES ('%s', 'Jetpack Hack', 'System', '%s', '%d')", hdw,sendername,gettime());
    self_mysql_queryEx(string);
    SetTimerEx("ConnectKick", 10,0,"i",i);
    format(string,sizeof(string),"{FF0000}[anticheat] {A9C4D4}[%s] wurde wegen Jetpack Hack gebannt.", SpielerName(i));
    UserAkte(PlayerInfo[i][pSQLID], string);
    format(string,sizeof(string),"[anticheat] [%s] wurde wegen Jetpack Hack gebannt.",SpielerName(i));
    EnterToLog("AntiCheat",string);
    }
    if(PlayerToPoint(2.0, i, 1173.1418,-1323.1293,15.3958) || PlayerToPoint(2.0, i, -2656.8435,639.3749,14.4531) || PlayerToPoint(2.0, i, 1613.2483,1816.0555,10.8203)) { GameTextForPlayer(i, "~w~Versicherung: /krankenkasse ~w~Krankheitsheiler: /healme", 2000, 1); }
    else if(PlayerToPoint(7.0, i, 380.8262,-190.9529,1000.6328)) { GameTextForPlayer(i, "~y~Willkommen im ~r~Donutladen ~g~/buydonut", 2000, 1); }
    else if(PlayerToPoint(2.0, i, 1223.4307,-1738.5736,13.5918)) { GameTextForPlayer(i, "~y~Benutze ~g~/buylicenses um Scheine zu kaufen", 2000, 1); }
    //else if(PlayerToPoint(2.0, i, 911.2007,-1235.1824,17.2109)) { GameTextForPlayer(i, "~w~Hier kannst du dein Auto~n~freikaufen,~n~falls es abgeschleppt wurde:~n~~g~/freecar", 2000, 3); }
    else if(PlayerToPoint(2.0, i, -372.9898,-1428.4983,25.7266)) { GameTextForPlayer(i, "~y~Benutze ~g~/gangunjail, ~y~/gangjail", 2000, 1); }
    else if(PlayerToPoint(2.0, i, 2310.0469,-8.3689,26.7422)) { GameTextForPlayer(i, "~w~Um in das Jobmenu zu gelangen, benutze ~y~/jobs", 2000, 1); }
    else if(PlayerToPoint(2.0, i, 766.0630,13.2840,1000.7028)) { GameTextForPlayer(i, "~y~Um einen neuen Fightingstyle zu erlernen, benutze ~r~/fightingstyle", 2000, 3); }
    else if(PlayerToPoint(2.0, i, -2237.0854,130.2281,1035.4141)) { GameTextForPlayer(i, "~y~Um dir ein neues Handy zu kaufen, benutze ~r~/handys", 2000, 1); }
    else if(IsAtATM(i)) { GameTextForPlayer(i, "~y~Willkommen beim ~r~ATM ~g~/atm", 2000, 1); }
    else if(PlayerToPoint(3.0,i,-100.3825,-25.0385,1000.7188)) { GameTextForPlayer(i,"~y~Gib ~r~/shop ~y~ein, um dir etwas zu kaufen",2000,1); }
    else if(PlayerToPoint(1.0, i, 503.5941,-6.6935,1000.6719) || PlayerToPoint(1.0,i,505.6358,-79.8694,998.9609)) { GameTextForPlayer(i,"~y~Gib ~r~/playdice ~y~ein, um im Casino zuspielen",2000,1); }
    else if(PlayerToPoint(2.0,i,362.5672,173.8237,1008.3828)) { GameTextForPlayer(i, "~y~Willkommen in der ~r~Bank ~g~/bank", 2000, 1); }
    else if(PlayerToPoint(3.0, i,1209.7849,-1724.6807,13.5632)) { GameTextForPlayer(i, "~g~Um mit dem Fuehrerschein zu beginnen, benutze ~y~/fsauto", 2000, 1); }
    else if(PlayerToPoint(80, i,-30.875, -88.9609, 1004.53)) { GameTextForPlayer(i, "~y~Gib ~r~/buy ~y~ein, um dir etwas zu kaufen", 2000, 1); }
    else if(PlayerToPoint(3.0, i, 822.5699,1.5289,1004.1797)) { GameTextForPlayer(i, "~w~Benutze ~y~/post",2000,1); }
    // else if(PlayerToPoint(2.0, i,203.8202,-44.0331,1001.8047)) { GameTextForPlayer(i, "~y~Gib ~r~/geiselnahme ~y~ein, um Hartmut als geisel zunehmen", 2000, 1); }
    else if(PlayerToPoint(2.0,i,376.5769,-68.2079,1001.5151) || PlayerToPoint(2.0,i,369.9709,-6.9479,1001.8589) || PlayerToPoint(2.0,i,374.6569,-119.6447,1001.4995) || PlayerToPoint(4.0,i,448.4754,-84.0636,999.5547) || PlayerToPoint(4.0,i,1203.1191,-898.2548,43.3799)) { GameTextForPlayer(i, "Nutze /menu um dir Essen zu kaufen", 2000, 1); }
    else if(PlayerToPoint(2.0,i,1199.1437,-911.5316,48.0625)) { GameTextForPlayer(i, "~y~Gib ~r~/drink ~y~ein, um dir etwas zu kaufen", 2000, 1); }
    else if(PlayerToPoint(5.0, i, 1796.6173,-1588.8010,13.5046) || PlayerToPoint(5.0,i, -2441.0500,522.8018,29.4661)) { GameTextForPlayer(i, "~w~Prison einlieferung~n~~r~Nur fuer Cops", 2000, 3); }
    //for(new z = 0; z < sizeof(ZollSystemInfo); z++){if(PlayerToPoint(10.0, i, ZollSystemInfo[z][ZSObjectPosX], ZollSystemInfo[z][ZSObjectPosY], ZollSystemInfo[z][ZSObjectPosZ])) { GameTextForPlayer(i, "~y~Gib ~g~/zoll ~y~ein um den Zoll zu oeffnen", 2000, 3); }}
    if(GetPlayerSkin(i) == 0 || GetPlayerSkin(i) < 0 || GetPlayerSkin(i) == -1 || GetPlayerSkin(i) == 74)
    { SetPlayerSkin(i,101); }
    if(TransportTime[i] > 0){
    if(TransportTime[i] >= 16){
    TransportTime[i] = 1;
    if(TransportDriver[i] < 999){
    if(IsPlayerConnected(TransportDriver[i])){
    TransportCost[i] += TransportValue[TransportDriver[i]];
    TransportCost[TransportDriver[i]] = TransportCost[i];
    }
    }
    }
    TransportTime[i] += 1;
    format(string,sizeof(string),"TAXOMETER~n~~b~Platz(~w~1~b~): ~r~%d$ ~b~Platz(~w~2~b~): ~r~%d$~n~~b~Platz~b~(~w~3~b~): ~r~%d$",TransportCost[Taxometer1[i]],TransportCost[Taxometer2[i]],TransportCost[Taxometer3[i]]);
    TextDrawSetString(Taxometer[i], string);
    }
    if(TransportDuty[i] == 1)
    {
    format(string,sizeof(string),"TAXOMETER~n~~b~Platz(~w~1~b~): ~r~%d$ ~b~Platz(~w~2~b~): ~r~%d$~n~~b~Platz~b~(~w~3~b~): ~r~%d$",TransportCost[Taxometer1[i]],TransportCost[Taxometer2[i]],TransportCost[Taxometer3[i]]);
    TextDrawSetString(Taxometer[i], string);
    }
    /*if(!IsPlayerConnected(Wuerfeluser[Wuerfeluser[i]]) || !IsPlayerConnected(Wuerfeluser[i])){
    //printf("TEST"); new dice = random(6)+1;
    if(Wuerfelrunde[i] == 1 || Wuerfeluser[Wuerfeluser[i] == 1){
    }
    if(Wuerfelrunde[i] == 2 || Wuerfeluser[Wuerfeluser[i] == 2){
    }
    if(Wuerfelrunde[i] == 3 || Wuerfeluser[Wuerfeluser[i] == 3){
    }
    if(Wuerfeluser[Wuerfeluser[i] == 4){
    }
    }*/
    if(PlayerInfo[i][pJailed] > 0 && PlayerInfo[i][pJailed] != 5){
    if(PlayerInfo[i][pJailTime] > 0 && WantLawyer[i] == 0)
    {
    PlayerInfo[i][pJailTime] -= 1;
    }
    if(PlayerInfo[i][pJailTime] <= 0 && WantLawyer[i] == 0){
    PlayerInfo[i][pJailTime] = 0;
    if(PlayerInfo[i][pJailed] == 1){ //Freilassung SFPD
    SetPlayerInterior(i, 0);
    SetPlayerPos(i,-1605.3224,713.3950,13.4961);
    SetPlayerVirtualWorld(i,0);
    }
    else if(PlayerInfo[i][pJailed] == 2){ //Freilassung Prison
    SetPlayerPos(i, 1799.5938,-1578.0750,14.0743);
    SetPlayerFacingAngle(i, 0);
    CP[i] = 0;
    PlayerInfo[i][pJailed] = 0;
    SetPlayerSkin(i, PlayerInfo[i][pChar]);
    SetPlayerInterior(i, 0);
    SetPlayerVirtualWorld(i,0);
    }
    else if(PlayerInfo[i][pJailed] == 3){ // Freilassung LSPD
    SetPlayerInterior(i, 0);
    SetPlayerPos(i, 1261.7485,-1629.1006,13.5510);
    SetPlayerVirtualWorld(i,0);
    }
    SendClientMessage(i, COLOR_GRAD1,"Du hast deine Schuld gegenüber der Gesellschaft beglichen.");
    format(string, sizeof(string), "~g~Freiheit~n~~w~Werde ein besserer Mensch");
    GameTextForPlayer(i, string, 5000, 1); PlayerInfo[i][pJailed] = 0; SetPlayerWorldBounds(i, 20000.0000,-20000.0000,20000.0000,-20000.0000); ClearCrime(i); SetPlayerToTeamColor(i); TogglePlayerControllable(i, 1);
    TextDrawHideForPlayer(i, CPrison[i]);
    }
    }
    if(Haltestellevar[i] == 1){
    Haltestellenansage[i] = 0;
    Haltestellevar[i] = 0;
    }
    new Busfahrer;
    Busfahrer = GetPlayerIdFromName("BusbotSTADT");
    if(GetPlayerState(Busfahrer) == PLAYER_STATE_DRIVER)
    {
    if(!IsPlayerInRangeOfPoint(Busfahrer,8.0,1178.4788,-933.3400,43.0983)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,777.12, -1039.02, 24.49)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,618.70, -1255.52, 18.11)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,504.78, -1410.15, 16.31)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,393.42, -1657.83, 31.33)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1030.11, -1615.97, 13.71)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1174.99, -1859.03, 13.60)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1481.73, -1738.73, 13.74)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1854.72, -1759.30, 13.74)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1721.49, -1356.69, 13.67)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,461.55, -1026.70, 23.77)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,790.47, -1350.52, 13.67)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1128.96, -1413.82, 13.73)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1142.88, -1619.14, 14.17)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1814.63, -1920.21, 13.67)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1983.54, -2174.20, 13.84)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,2250.41, -2227.13, 13.69)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1436.90, -2287.23, 13.84)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1431.78, -936.30, 36.53)){
    Haltestellevar[i] = 1;
    }
    if(Haltestellenansage[i] == 0){
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1178.4788,-933.3400,43.0983)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Bürgershotnorth. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,777.12, -1039.02, 24.49)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Friedhof. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,618.70, -1255.52, 18.11)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Arbeitsamtls. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,504.78, -1410.15, 16.31)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Hotel LS. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,393.42, -1657.83, 31.33)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Angelsteg. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1030.11, -1615.97, 13.71)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Strand. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1174.99, -1859.03, 13.60)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Busdepot. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1481.73, -1738.73, 13.74)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Stadthalle. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1854.72, -1759.30, 13.74)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Alhambra. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1721.49, -1356.69, 13.67)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Downtown. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,461.55, -1026.70, 23.77)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Bank. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,790.47, -1350.52, 13.67)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Market Station. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1128.96, -1413.82, 13.73)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Krankenhaus. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1142.88, -1619.14, 14.17)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Zivispawn. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1814.63, -1920.21, 13.67)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Taxidepot. ");
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1983.54, -2174.20, 13.84)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Flughafen. ");
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,2250.41, -2227.13, 13.69)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Hafen. ");
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1436.90, -2287.23, 13.84)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Flughafen. ");
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1431.78, -936.30, 36.53)){
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Autobahnkreuz. ");
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    }
    }
    if(IsPlayerConnected(i) && gPlayerLogged[i] && !IsPlayerNPC(i) && AFKModus[i] == 0){
    new Float:antiarm;
    GetPlayerArmour(i,antiarm);
    if(gPlayerLogged[i] == 1 && PlayerInfo[i][pAdmin] < 1 && !IsACop(i) && antiarm > 1.0){
    format(string,sizeof(string),"[SERVERGUARD]: %s wurde vom Server gekickt. Grund: Armour Hack",SpielerName(i));
    SendAdminMessage(COLOR_LIGHTRED,1,string);
    format(string, sizeof string, "[SERVERGUARD]: %s wurde vom Server gekickt. Grund: Armour Hack",SpielerName(i));
    SendClientMessage(i,COLOR_LIGHTRED,string);
    SetTimerEx("ConnectKick", 10,0,"i",i);
    }
    new IsInNoDm = 0;
    for(new ZI = 0; ZI < sizeof(NODMZonenInfo); ZI++)
    {
    if(IsPlayerInArea(i, NODMZonenInfo[ZI][NODMMinX],NODMZonenInfo[ZI][NODMMinY],NODMZonenInfo[ZI][NODMMaxX],NODMZonenInfo[ZI][NODMMaxY])){
    IsInNoDm += 1;
    break;
    }
    }
    if(IsInNoDm == 1){
    NoDmTimer[i] += 1;
    TextDrawShowForPlayer(i, NODMZoneTextdraw);
    }
    else
    {
    NoDmTimer[i] = 0;
    NoDmWarnungen[i] = 0;
    TextDrawHideForPlayer(i, NODMZoneTextdraw);
    }
    }
    }
    return 1;
    }


  • Wenn du den ganzen Server in die Tonne wirfst ist der Script nicht mehr buggy, dann ist er im Müll, und genau da gehört er auch hin.
    Du hast in jedem Callback die gleichen Fehler, von mir aus können wir das noch 100 Mal so machen...nur ob es den Aufwand wert ist...sollte klar sein.


    PS:
    Nutze bitte den Vorschau Button bevor du was postest, schau mal an was du da gepostet hast.


    Zum Thema:
    Welche Variable wird bei dir im Code mit [212] deklariert?
    Suche einfach mal nach "[212]" (ohne Anführungszeichen). Dann poste alle die du findest.

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen
  • das wars :D mehr ist da nicht :/


    new GasDaten[212][VehicleInfo] = {
    {60.00,0.14}, //"Landstalker,
    {50.00,0.12},//"Bravura,
    {50.00,0.16},//"Buffalo,
    {110.00,0.40},//"Linerunner,
    {45.00,0.09},//"Pereniel,
    {50.00,0.14},//"Sentinel,
    {200.00,0.90},//"Dumper,
    {80.00,0.25},//"Firetruck,
    {75.00,0.40},//"Trashmaster,
    {60.00,0.20},//"Stretch,
    {40.00,0.10},//"Manana,
    {50.00,0.17},//"Infernus,
    {50.00,0.14},//"Voodoo,
    {90.00,0.15},//"Pony,
    {90.00,0.14},//"Mule,
    {48.00,0.17},//"Cheetah,
    {70.00,0.23},//"Ambulance,
    {200.00,0.50},//"Leviathan,
    {60.00,0.11},//"Moonbeam,
    {50.00,0.15},//"Esperanto,
    {45.00,0.14},//"Taxi,
    {40.00,0.13},//"Washington,
    {60.00,0.11},//"Bobcat,
    {64.00,0.25},//"Mr Whoopee,
    {60.00,0.20},//"BF Injection,
    {250.00,0.50},//"Hunter,
    {50.00,0.10},//"Premier,
    {80.00,0.20},//"Enforcer,
    {70.00,0.20},//"Securicar,
    {52.00,0.19},//"Banshee,
    {50.00,0.45},//"Predator,
    {80.00,0.28},//"Bus,
    {100.00,0.23},//"Rhino,
    {50.00,0.23},//"Barracks,
    {55.00,0.20},//"Hotknife,
    {100.00,0.00},//"Trailer,
    {58.00,0.15},//"Previon,
    {95.00,0.28},//"Coach,
    {48.00,0.13},//"Cabbie,
    {45.00,0.11},//"Stallion,
    {70.00,0.20},//"Rumpo,
    {100.00,0.00},//"RC Bandit,
    {50.00,0.20},//"Romero,
    {130.00,0.25},//"Packer,
    {120.00,0.23},//"Monster Truck,
    {45.00,0.12},//"Admiral,
    {50.00,0.20},//"Squalo,
    {200.00,0.50},//"Seasparrow,
    {15.00,0.05},//"Pizzaboy,
    {100.00,0.00},//"Tram,
    {100.00,0.00},//"Trailer,
    {55.00,0.18},//"Turismo,
    {55.00,0.22},//"Speeder,
    {60.00,0.25},//"Reefer,
    {60.00,0.20},//"Tropic,
    {80.00,0.20},//"Flatbed,
    {80.00,0.21},//"Yankee,
    {20.00,0.02},//"Caddy,
    {48.00,0.13},//"Solair,
    {75.00,0.20},//"Berkley's RC Van,
    {200.00,0.50},//"Skimmer,
    {20.00,0.09},//"PCJ-600,
    {15.00,0.06},//"Roller,
    {20.00,0.08},//"Freeway,
    {80.00,0.00},//"RC Baron,
    {80.00,0.00},//"RC Raider,
    {60.00,0.11},//"Glendale,
    {55.00,0.11},//"Oceanic,
    {20.00,0.08},//"Sanchez,
    {200.00,0.50},//"Sparrow,
    {95.00,0.14},//"Patriot,
    {25.00,0.05},//"Quad,
    {50.00,0.20},//"Coastguard,
    {50.00,0.15},//"Dinghy,
    {50.00,0.15},//"Hermes,
    {55.00,0.17},//"Sabre,
    {200.00,0.50},//"Rustler,
    {60.00,0.16},//"ZR-350,
    {60.00,0.10},//"Walton,
    {58.00,0.11},//"Regina,
    {55.00,0.16},//"Comet,
    {100.00,0.00},//"Fahrrad,
    {90.00,0.21},//"Burrito,
    {100.00,0.24},//"Camper,
    {250.00,0.21},//"Marquis,
    {35.00,0.05},//"Baggage,
    {150.00,0.28},//"Dozer,
    {200.00,0.50},//"Maverick,
    {200.00,0.50},//"News Chopper,
    {80.00,0.14},//"Rancher,
    {80.00,0.15},//"FBI Rancher,
    {50.00,0.11},//"Virgo,
    {50.0,0.14},//"Greenwood,
    {100.00,0.23},//"Jetmax,
    {70.00,0.26},//"Hotring,
    {80.00,0.27},//"Sandking,
    {50.00,0.10},//"Blista Compact,
    {200.00,0.50},//"Police Maverick,
    {80.00,0.21},//"Boxville,
    {58.00,0.22},//"Benson,
    {80.00,0.11},//"Mesa,
    {100.00,0.00},//"RC Goblin,
    {75.00,0.19},//"Hotring Racer,
    {75.00,0.19},//"Hotring Racer,
    {75.00,0.18},//"Bloodring Banger,
    {75.00,0.15},//"Rancher,
    {60.00,0.18},//"Super GT,
    {45.00,0.13},//"Elegant,
    {110.00,0.23},//"Journey,
    {100.00,0.00},//"Bike,
    {100.00,0.00},//"Mountain Bike,
    {200.00,0.50},//"Beagle
    {200.00,0.50},//"Cropdust,
    {200.00,0.50},//"Stunt,
    {140.00,0.50},//"Tanker,
    {100.00,0.37},//"RoadTrain,
    {50.00,0.11},//"Nebula,
    {50.00,0.11},//"Majestic,
    {48.00,0.11},//"Buccaneer,
    {200.00,0.50},//"Shamal,
    {200.00,0.50},//"Hydra,
    {20.00,0.08},//"FCR-900,
    {25.00,0.10},//"NRG-500,
    {20.00,0.08},//"HPV1000,
    {135.00,0.44},//"Cement Truck,
    {75.00,0.33},//"Tow Truck,
    {60.00,0.11},//"Fortune,
    {60.00,0.11},//"Cadrona,
    {65.00,0.24},//"FBI Truck,
    {55.00,0.13},//"Willard,
    {30.00,0.14},//"Forklift,
    {35.00,0.10},//"Traktor,
    {60.00,0.27},//"Combine,
    {50.00,0.11},//"Feltzer,
    {50.00,0.13},//"Remington,
    {55.00,0.14},//"Slamvan,
    {55.00,0.12},//"Blade,
    {100.00,0.26},//"Freight,
    {100.00,0.26},//"Streak,
    {100.00,0.26},//"Vortex,
    {48.00,0.13},//"Vincent,
    {55.00,0.18},//"Bullet,
    {58.00,0.09},//"Clover,
    {60.00,0.07},//"Sadler,
    {90.00,0.26},//"Firetruck,
    {60.00,0.16},//"Hustler,
    {50.00,0.12},//"Intruder,
    {40.00,0.15},//"Primo,
    {200.00,0.50},//"Cargobob,
    {60.00,0.13},//"Tampa,
    {60.00,0.14},//"Sunrise,
    {60.00,0.11},//"Merit,
    {100.00,0.00},//"Utility,
    {200.00,0.50},//"Nevada,
    {80.00,0.22},//"Yosemite,
    {60.00,0.23},//"Windsor,
    {100.00,0.41},//"Monster Truck,
    {100.00,0.41},//"Monster Truck,
    {55.00,0.15},//"Uranus,
    {60.00,0.19},//"Jester,
    {60.00,0.20},//"Sultan,
    {60.00,0.16},//"Stratum,
    {60.00,0.19},//"Elegy,
    {200.00,0.50},//"Raindance,
    {100.00,0.00},//"RC Tiger,
    {50.00,0.18},//"Flash,
    {50.00,0.13},//"Tahoma,
    {55.00,0.14},//"Savanna,
    {60.00,0.22},//"Bandito,
    {100.00,0.11},//"Freight,
    {100.00,0.00},//"Trailer,
    {20.00,0.04},//"Kart,
    {20.00,0.06},//"Mower,
    {200.00,0.38},//"Duneride,
    {35.00,0.11},//"Sweeper,
    {50.00,0.12},//"Broadway,
    {50.00,0.15},//"Tornado,
    {300.00,0.50},//"AT-400,
    {200.00,0.44},//"DFT-30,
    {65.00,0.22},//"Huntley,
    {60.00,0.16},//"Stafford,
    {20.00,0.09},//"BF-400,
    {70.00,0.26},//"Newsvan,
    {30.00,0.07},//"Tug,
    {100.00,0.00},//"Trailer,
    {50.00,0.16},//"Emperor,
    {40.00,0.08},//"Wayfarer,
    {60.00,0.16},//"Euros,
    {90.00,0.22},//"Hotdog,
    {60.00,0.18},//"Club,
    {100.00,0.00},//"Trailer,
    {100.00,0.00},//"Trailer,
    {250.00,0.50},//"Andromada,
    {200.00,0.50},//"Dodo,
    {100.00,0.00},//"RC Cam,
    {80.00,0.22},//"Launch,
    {60.00,0.16},//"Streifenwagen,
    {60.00,0.16},//"Streifenwagen,
    {60.00,0.16},//"Streifenwagen,
    {75.00,0.22},//"Polizei Ranger,
    {50.00,0.16},//"Picador,
    {90.00,0.28},//"S.W.A.T. Van,
    {55.00,0.16},//"Alpha,
    {55.00,0.16},//"Phoenix,
    {50.00,0.11},//"Glendale,
    {50.00,0.11},//"Sadler,
    {100.00,0.00},//"Luggage Trailer,
    {100.00,0.00},//"Luggage Trailer,
    {100.00,0.00},//"Stair Trailer,
    {52.00,0.22},//"Boxville,
    {100.00,0.00},//"Farm Plow,
    {100.00,0.00}//"Utility Trailer"
    };


    new VehNames[212][] =
    {
    {"Landstalker"},
    {"Bravura"},
    {"Buffalo"},
    {"Linerunner"},
    {"Perrenial"},
    {"Sentinel"},
    {"Dumper"},
    {"Firetruck"},
    {"Trashmaster"},
    {"Stretch"},
    {"Manana"},
    {"Infernus"},
    {"Voodoo"},
    {"Pony"},
    {"Mule"},
    {"Cheetah"},
    {"Ambulance"},
    {"Leviathan"},
    {"Moonbeam"},
    {"Esperanto"},
    {"Taxi"},
    {"Washington"},
    {"Bobcat"},
    {"Mr Whoopee"},
    {"BF Injection"},
    {"Hunter"},
    {"Premier"},
    {"Enforcer"},
    {"Securicar"},
    {"Banshee"},
    {"Predator"},
    {"Bus"},
    {"Rhino"},
    {"Barracks"},
    {"Hotknife"},
    {"Trailer 1"}, //artict1
    {"Previon"},
    {"Coach"},
    {"Cabbie"},
    {"Stallion"},
    {"Rumpo"},
    {"RC Bandit"},
    {"Romero"},
    {"Packer"},
    {"Monster"},
    {"Admiral"},
    {"Squalo"},
    {"Seasparrow"},
    {"Pizzaboy"},
    {"Tram"},
    {"Trailer 2"}, //artict2
    {"Turismo"},
    {"Speeder"},
    {"Reefer"},
    {"Tropic"},
    {"Flatbed"},
    {"Yankee"},
    {"Caddy"},
    {"Solair"},
    {"Berkley's RC Van"},
    {"Skimmer"},
    {"PCJ-600"},
    {"Faggio"},
    {"Freeway"},
    {"RC Baron"},
    {"RC Raider"},
    {"Glendale"},
    {"Oceanic"},
    {"Sanchez"},
    {"Sparrow"},
    {"Patriot"},
    {"Quad"},
    {"Coastguard"},
    {"Dinghy"},
    {"Hermes"},
    {"Sabre"},
    {"Rustler"},
    {"ZR-350"},
    {"Walton"},
    {"Regina"},
    {"Comet"},
    {"BMX"},
    {"Burrito"},
    {"Camper"},
    {"Marquis"},
    {"Baggage"},
    {"Dozer"},
    {"Maverick"},
    {"News Chopper"},
    {"Rancher"},
    {"FBI Rancher"},
    {"Virgo"},
    {"Greenwood"},
    {"Jetmax"},
    {"Hotring"},
    {"Sandking"},
    {"Blista Compact"},
    {"Police Maverick"},
    {"Boxville"},
    {"Benson"},
    {"Mesa"},
    {"RC Goblin"},
    {"Hotring Racer A"}, //hotrina
    {"Hotring Racer B"}, //hotrinb
    {"Bloodring Banger"},
    {"Rancher"},
    {"Super GT"},
    {"Elegant"},
    {"Journey"},
    {"Bike"},
    {"Mountain Bike"},
    {"Beagle"},
    {"Cropdust"},
    {"Stuntplane"},
    {"Tanker"}, //petro
    {"Roadtrain"},
    {"Nebula"},
    {"Majestic"},
    {"Buccaneer"},
    {"Shamal"},
    {"Hydra"},
    {"FCR-900"},
    {"NRG-500"},
    {"HPV1000"},
    {"Cement Truck"},
    {"Tow Truck"},
    {"Fortune"},
    {"Cadrona"},
    {"FBI Truck"},
    {"Willard"},
    {"Forklift"},
    {"Tractor"},
    {"Combine"},
    {"Feltzer"},
    {"Remington"},
    {"Slamvan"},
    {"Blade"},
    {"Freight"},
    {"Streak"},
    {"Vortex"},
    {"Vincent"},
    {"Bullet"},
    {"Clover"},
    {"Sadler"},
    {"Firetruck"}, //firela
    {"Hustler"},
    {"Intruder"},
    {"Primo"},
    {"Cargobob"},
    {"Tampa"},
    {"Sunrise"},
    {"Merit"},
    {"Utility"},
    {"Nevada"},
    {"Yosemite"},
    {"Windsor"},
    {"Monster A"}, //monstera
    {"Monster B"}, //monsterb
    {"Uranus"},
    {"Jester"},
    {"Sultan"},
    {"Stratum"},
    {"Elegy"},
    {"Raindance"},
    {"RC Tiger"},
    {"Flash"},
    {"Tahoma"},
    {"Savanna"},
    {"Bandito"},
    {"Freight Flat"}, //freiflat
    {"Streak Carriage"}, //streakc
    {"Kart"},
    {"Mower"},
    {"Duneride"},
    {"Sweeper"},
    {"Broadway"},
    {"Tornado"},
    {"AT-400"},
    {"DFT-30"},
    {"Huntley"},
    {"Stafford"},
    {"BF-400"},
    {"Newsvan"},
    {"Tug"},
    {"Trailer 3"}, //fetrotr
    {"Emperor"},
    {"Wayfarer"},
    {"Euros"},
    {"Hotdog"},
    {"Club"},
    {"Freight Carriage"}, //freibox
    {"Trailer 3"}, //artict3
    {"Andromada"},
    {"Dodo"},
    {"RC Cam"},
    {"Launch"},
    {"Police Car"},
    {"Police Car"},
    {"Police Car"},
    {"Police Ranger"},
    {"Picador"},
    {"S.W.A.T.-Van"},
    {"Alpha"},
    {"Phoenix"},
    {"Glendale"},
    {"Sadler"},
    {"Luggage Trailer A"}, //bagboxa
    {"Luggage Trailer B"}, //bagboxb
    {"Stair Trailer"}, //tugstair
    {"Boxville"},
    {"Farm Plow"}, //farmtr1
    {"Utility Trailer"} //utiltr1
    };

  • So sollte es passen:


    Spoiler anzeigen
    public SekundenTimer6()
    {
    new string[500],Float:maxspeed = 200.0,playername[MAX_PLAYER_NAME],value,Float:xX,Float:yY,Float:zZ,Float:X,Float:Y,Float:Z;
    ForAllPlayers(i)
    {
    if(IsPlayerConnected(i) && gPlayerLogged_ && !IsPlayerNPC(i) && AFKModus[i] == 0)
    {
    new VID = GetPlayerVehicleID(i), Float:health;
    GetVehicleHealth(VID, health);
    if(IsPlayerInAnyVehicle(i))
    {
    GetVehiclePos(VID, xX, yY, zZ);
    GetVehicleVelocity(VID, X, Y, Z);
    value = floatround(floatsqroot((X*X) + (Y*Y) + (Z*Z)) * 100 * 1.40);
    if(GetPlayerState(i) == 2)
    {
    GetVehicleVelocity(GetPlayerVehicleID(i) ,X, Y, Z);
    value = floatround(floatsqroot((X*X) + (Y*Y) + (Z*Z)) * 100 * 1.40);
    if(value > maxspeed)
    {
    new tmpcar = GetPlayerVehicleID(i);
    if(!IsAPlane(tmpcar))
    {
    GetPlayerName(i, playername, sizeof(playername));
    format(string, sizeof(string), "AdmWarnung: %s(ID: %d) verdacht auf Speedhack, Km/h %d.", playername, i, value, i);
    SendAdminMessage(COLOR_KNALLROT, 1, string);
    }
    }
    }
    GetVehiclePos(VID, xX, yY, zZ);
    GetVehicleVelocity(VID, X, Y, Z);
    value = floatround(floatsqroot((X*X) + (Y*Y) + (Z*Z)) * 100 * 1.40);
    new Float:TankInProzent = GasDaten[GetVehicleModel(VID)-400][Tankvolumen]/100;
    if(Gas[VID]/TankInProzent >= 95)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 100);
    }
    else if(Gas[VID]/TankInProzent >= 90)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 90);
    }
    else if(Gas[VID]/TankInProzent >= 80)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 80);
    }
    else if(Gas[VID]/TankInProzent >= 70)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 70);
    }
    else if(Gas[VID]/TankInProzent >= 60)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 60);
    }
    else if(Gas[VID]/TankInProzent >= 50)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 50);
    }
    else if(Gas[VID]/TankInProzent >= 40)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 40);
    }
    else if(Gas[VID]/TankInProzent >= 30)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 30);
    }
    else if(Gas[VID]/TankInProzent >= 20)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 20);
    }
    else if(Gas[VID]/TankInProzent >= 10)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 10);
    }
    else if(Gas[VID]/TankInProzent >= 0)
    {
    SetPlayerProgressBarValue(i, TachoBar[i], 0);
    }
    if(GetPlayerState(i) == 2)
    {
    UpdatePlayerProgressBar(i, TachoBar[i]);
    }
    GetVehicleVelocity(GetPlayerVehicleID(i) ,X, Y, Z);
    value = floatround(floatsqroot((X*X) + (Y*Y) + (Z*Z)) * 100 * 1.40);
    new Motor[80], HBremse[80], Licht[80];
    new Float:carhealth;
    GetVehicleHealth(GetPlayerVehicleID(i),carhealth);
    new Float:x,Float:y,Float:z;
    GetPlayerPos(i,x,y,z);
    new Float:x2, Float:y2, Float:z2, Float:output;
    GetVehiclePos(VID, x2, y2, z2);
    output = floatsqroot(floatpower(floatabs(floatsub(x2, vLastX[VID])), 2)+floatpower(floatabs(floatsub(y2, vLastY[VID])), 2)+floatpower(floatabs(floatsub(z2, vLastZ[VID])), 2));
    Kilometerstand[VID] += output;
    vLastX[VID] = x2; vLastY[VID] = y2; vLastZ[VID] = z2;
    Tankkm[VID] += output;
    if(Gas[GetPlayerVehicleID(i)] <= 0.00)
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(GetPlayerVehicleID(i),engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(GetPlayerVehicleID(i),VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    Gas[GetPlayerVehicleID(i)] = 0.00;
    }
    if(Motorschaden[VID] == 1 && carhealth < 250)
    {
    SetVehicleHealth(VID, 250);
    }
    if(carhealth < 250 && Motorschaden[VID] == 0)
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(VID,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(VID,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleHealth(VID, 250);
    Motorschaden[VID] = 1;
    }
    if((Tankkm[GetPlayerVehicleID(i)]/1000) >= 1)
    {
    Gas[GetPlayerVehicleID(i)] -= GasDaten[GetVehicleModel(GetPlayerVehicleID(i))-400][Tankverbrauch];
    Tankkm[GetPlayerVehicleID(i)] = 0.00;
    }
    new vehicleid = GetPlayerVehicleID(i);
    VehSpeed[VID] = value;
    if(!IsAPlane(VID) && !IsABoat(VID) && !IsAFahrrad(VID))
    {
    format(string,sizeof(string),"Fahrzeug: ~g~%s",VehNames[GetVehicleModel(VID)-400]);
    PlayerTextDrawSetString(i, Tacho[i][1], string);

    Spoiler anzeigen
    format(string,sizeof(string),"Geschwindigkeit: ~g~%d",value);
    PlayerTextDrawSetString(i, Tacho[i][2], string);

    Spoiler anzeigen
    format(string,sizeof(string),"Zustand: ~g~%.2f%%",carhealth);
    PlayerTextDrawSetString(i, Tacho[i][3], string);

    Spoiler anzeigen
    format(string,sizeof(string),"KM-Stand: ~g~%.2f",Kilometerstand[VID]/1000);
    PlayerTextDrawSetString(i, Tacho[i][4], string);

    Spoiler anzeigen
    format(string,sizeof(string),"~g~%.2f/%.2fL",Gas[VID],GasDaten[GetVehicleModel(VID)-400][Tankvolumen]);
    PlayerTextDrawSetString(i, Tacho[i][6], string);
    if(MotorSystemMotor[VID] == false)
    {
    format(Motor,sizeof(Motor),"~r~Motor");
    }
    else
    {
    format(Motor,sizeof(Motor),"~g~Motor");
    }
    if(MotorSystemLight[VID] == false)
    {
    format(Licht,sizeof(Licht),"~r~Licht");
    }
    else
    {
    format(Licht,sizeof(Licht),"~g~Licht");
    }
    if(Handbremse[VID] == false)
    {
    format(HBremse,sizeof(HBremse),"~r~Handbremse");
    }
    else
    {
    format(HBremse,sizeof(HBremse),"~g~Handbremse");
    }
    format(string,sizeof(string),"%s %s %s", Motor, HBremse, Licht);
    PlayerTextDrawSetString(i, Tacho[i][8], string);
    VehSpeed[VID] = value;
    new model = GetVehicleModel(VID);
    if(model == 528)
    {
    GetPlayerPos(i,x,y,z);
    format(string,sizeof(string),"~w~X: ~g~%.1f ~w~Y: ~g~%.1f ~w~Z: ~g~%.1f",x,y,z);
    PlayerTextDrawSetString(i, FBITacho[i], string);
    }
    }
    if(Gas[VID] > GasDaten[GetVehicleModel(VID)-400][Tankvolumen])
    {
    Gas[VID] = GasDaten[GetVehicleModel(VID)-400][Tankvolumen];
    }
    }
    else
    {
    PlayerTextDrawHide(i,Tacho[i][0]);
    PlayerTextDrawHide(i,Tacho[i][1]);
    PlayerTextDrawHide(i,Tacho[i][2]);
    PlayerTextDrawHide(i,Tacho[i][3]);
    PlayerTextDrawHide(i,Tacho[i][4]);
    PlayerTextDrawHide(i,Tacho[i][5]);
    PlayerTextDrawHide(i,Tacho[i][6]);
    PlayerTextDrawHide(i,Tacho[i][7]);
    PlayerTextDrawHide(i,Tacho[i][8]);
    HidePlayerProgressBar(i, TachoBar[i]);
    PlayerTextDrawHide(i,FBITacho[i]);
    }
    }
    }
    for(new i; i<MAX_PLAYERS; i++)
    {
    new Float: health;
    new sendername[MAX_PLAYER_NAME];
    GetPlayerName(i, sendername, sizeof(sendername));
    if(Spectate[i] != -1)
    {
    new targetid = Spectate[i];
    new VID = GetPlayerVehicleID(targetid),value = VehSpeed[VID];
    if(IsPlayerConnected(targetid))
    {
    if(PlayerInfo[i][pAdmin] >= 1 && IsPlayerInVehicle(targetid,VID))
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(targetid, name, sizeof(name));
    GetPlayerHealth(targetid, health);
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~y~%s(ID:%d)~n~~y~Gesundheit:%.1f~n~~y~Geschwindigkeit:%d",name,targetid,health,value);
    GameTextForPlayer(i, string, 2500, 3);
    }
    if(PlayerInfo[i][pAdmin] >= 1 && !IsPlayerInVehicle(targetid,VID))
    {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(targetid, name, sizeof(name));
    GetPlayerHealth(targetid, health);
    format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~n~~y~%s(ID:%d)~n~~y~Gesundheit:%.1f~n~~y~Geschwindigkeit:%d",name,targetid,health,GetPlayerSpeed(targetid));
    GameTextForPlayer(i, string, 2500, 3);
    }
    SetPlayerVirtualWorld(i, GetPlayerVirtualWorld(targetid));
    SetPlayerInterior(i, GetPlayerInterior(targetid));
    }
    }
    // Spectator Ende
    // CustomPickups
    if(PlayerInfo[i][pAdminOnDuty] == 1)
    {
    I_SetPlayerArmour(i, 2000.0);
    I_SetPlayerHealth(i, 200.0);
    }
    GetPlayerHealth(i,health);
    if(health > 180.0)
    {
    I_SetPlayerHealth(i, 150.0);
    }
    if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK && PlayerInfo[i][pAdmin] < 1338)
    {
    format(string, sizeof(string), "[SERVERGUARD]: %s wurde vom Server gebannt. Grund: Jetpack-Hack", sendername);
    SendAdminMessage(COLOR_LIGHTRED,1,string);
    SendClientMessage(i,COLOR_LIGHTRED,"Du wurdest gebannt: Permban. Grund: Jetpack-Hack. Erstelle jetzte einen Screenshot mit der Taste F8.");
    new hdw[256];
    gpci(i, hdw, sizeof hdw);
    format(string, sizeof string, "INSERT INTO `hwdban` (`Hardware`, `Grund`, `Admin`, `Spieler`, `BanDatum`) VALUES ('%s', 'Jetpack Hack', 'System', '%s', '%d')", hdw,sendername,gettime());
    self_mysql_queryEx(string);
    SetTimerEx("ConnectKick", 10,0,"i",i);
    format(string,sizeof(string),"{FF0000}[anticheat] {A9C4D4}[%s] wurde wegen Jetpack Hack gebannt.", SpielerName(i));
    UserAkte(PlayerInfo[i][pSQLID], string);
    format(string,sizeof(string),"[anticheat] [%s] wurde wegen Jetpack Hack gebannt.",SpielerName(i));
    EnterToLog("AntiCheat",string);
    }
    if(PlayerToPoint(2.0, i, 1173.1418,-1323.1293,15.3958) || PlayerToPoint(2.0, i, -2656.8435,639.3749,14.4531) || PlayerToPoint(2.0, i, 1613.2483,1816.0555,10.8203))
    {
    GameTextForPlayer(i, "~w~Versicherung: /krankenkasse ~w~Krankheitsheiler: /healme", 2000, 1);
    }
    else if(PlayerToPoint(7.0, i, 380.8262,-190.9529,1000.6328))
    {
    GameTextForPlayer(i, "~y~Willkommen im ~r~Donutladen ~g~/buydonut", 2000, 1);
    }
    else if(PlayerToPoint(2.0, i, 1223.4307,-1738.5736,13.5918))
    {
    GameTextForPlayer(i, "~y~Benutze ~g~/buylicenses um Scheine zu kaufen", 2000, 1);
    }
    /*else if(PlayerToPoint(2.0, i, 911.2007,-1235.1824,17.2109))
    {
    GameTextForPlayer(i, "~w~Hier kannst du dein Auto~n~freikaufen,~n~falls es abgeschleppt wurde:~n~~g~/freecar", 2000, 3);
    }*/
    else if(PlayerToPoint(2.0, i, -372.9898,-1428.4983,25.7266))
    {
    GameTextForPlayer(i, "~y~Benutze ~g~/gangunjail, ~y~/gangjail", 2000, 1);
    }
    else if(PlayerToPoint(2.0, i, 2310.0469,-8.3689,26.7422))
    {
    GameTextForPlayer(i, "~w~Um in das Jobmenu zu gelangen, benutze ~y~/jobs", 2000, 1);
    }
    else if(PlayerToPoint(2.0, i, 766.0630,13.2840,1000.7028))
    {
    GameTextForPlayer(i, "~y~Um einen neuen Fightingstyle zu erlernen, benutze ~r~/fightingstyle", 2000, 3);
    }
    else if(PlayerToPoint(2.0, i, -2237.0854,130.2281,1035.4141))
    {
    GameTextForPlayer(i, "~y~Um dir ein neues Handy zu kaufen, benutze ~r~/handys", 2000, 1);
    }
    else if(IsAtATM(i))
    {
    GameTextForPlayer(i, "~y~Willkommen beim ~r~ATM ~g~/atm", 2000, 1);
    }
    else if(PlayerToPoint(3.0,i,-100.3825,-25.0385,1000.7188))
    {
    GameTextForPlayer(i,"~y~Gib ~r~/shop ~y~ein, um dir etwas zu kaufen",2000,1);
    }
    else if(PlayerToPoint(1.0, i, 503.5941,-6.6935,1000.6719) || PlayerToPoint(1.0,i,505.6358,-79.8694,998.9609))
    {
    GameTextForPlayer(i,"~y~Gib ~r~/playdice ~y~ein, um im Casino zuspielen",2000,1);
    }
    else if(PlayerToPoint(2.0,i,362.5672,173.8237,1008.3828))
    {
    GameTextForPlayer(i, "~y~Willkommen in der ~r~Bank ~g~/bank", 2000, 1);
    }
    else if(PlayerToPoint(3.0, i,1209.7849,-1724.6807,13.5632))
    {
    GameTextForPlayer(i, "~g~Um mit dem Fuehrerschein zu beginnen, benutze ~y~/fsauto", 2000, 1);
    }
    else if(PlayerToPoint(80, i,-30.875, -88.9609, 1004.53))
    {
    GameTextForPlayer(i, "~y~Gib ~r~/buy ~y~ein, um dir etwas zu kaufen", 2000, 1);
    }
    else if(PlayerToPoint(3.0, i, 822.5699,1.5289,1004.1797))
    {
    GameTextForPlayer(i, "~w~Benutze ~y~/post",2000,1);
    }
    /*else if(PlayerToPoint(2.0, i,203.8202,-44.0331,1001.8047))
    {
    GameTextForPlayer(i, "~y~Gib ~r~/geiselnahme ~y~ein, um Hartmut als geisel zunehmen", 2000, 1);
    }*/
    else if(PlayerToPoint(2.0,i,376.5769,-68.2079,1001.5151) || PlayerToPoint(2.0,i,369.9709,-6.9479,1001.8589) || PlayerToPoint(2.0,i,374.6569,-119.6447,1001.4995) || PlayerToPoint(4.0,i,448.4754,-84.0636,999.5547) || PlayerToPoint(4.0,i,1203.1191,-898.2548,43.3799))
    {
    GameTextForPlayer(i, "Nutze /menu um dir Essen zu kaufen", 2000, 1);
    }
    else if(PlayerToPoint(2.0,i,1199.1437,-911.5316,48.0625))
    {
    GameTextForPlayer(i, "~y~Gib ~r~/drink ~y~ein, um dir etwas zu kaufen", 2000, 1);
    }
    else if(PlayerToPoint(5.0, i, 1796.6173,-1588.8010,13.5046) || PlayerToPoint(5.0,i, -2441.0500,522.8018,29.4661))
    {
    GameTextForPlayer(i, "~w~Prison einlieferung~n~~r~Nur fuer Cops", 2000, 3);
    }
    /*for(new z = 0; z < sizeof(ZollSystemInfo); z++)
    {
    if(PlayerToPoint(10.0, i, ZollSystemInfo[z][ZSObjectPosX], ZollSystemInfo[z][ZSObjectPosY], ZollSystemInfo[z][ZSObjectPosZ]))
    {
    GameTextForPlayer(i, "~y~Gib ~g~/zoll ~y~ein um den Zoll zu oeffnen", 2000, 3);
    }
    }*/
    if(GetPlayerSkin(i) == 0 || GetPlayerSkin(i) < 0 || GetPlayerSkin(i) == -1 || GetPlayerSkin(i) == 74)
    {
    SetPlayerSkin(i,101);
    }
    if(TransportTime[i] > 0)
    {
    if(TransportTime[i] >= 16)
    {
    TransportTime[i] = 1;
    if(TransportDriver[i] < 999)
    {
    if(IsPlayerConnected(TransportDriver[i]))
    {
    TransportCost[i] += TransportValue[TransportDriver[i]];
    TransportCost[TransportDriver[i]] = TransportCost[i];
    }
    }
    }
    TransportTime[i] += 1;
    format(string,sizeof(string),"TAXOMETER~n~~b~Platz(~w~1~b~): ~r~%d$ ~b~Platz(~w~2~b~): ~r~%d$~n~~b~Platz~b~(~w~3~b~): ~r~%d$",TransportCost[Taxometer1[i]],TransportCost[Taxometer2[i]],TransportCost[Taxometer3[i]]);
    TextDrawSetString(Taxometer[i], string);
    }
    if(TransportDuty[i] == 1)
    {
    format(string,sizeof(string),"TAXOMETER~n~~b~Platz(~w~1~b~): ~r~%d$ ~b~Platz(~w~2~b~): ~r~%d$~n~~b~Platz~b~(~w~3~b~): ~r~%d$",TransportCost[Taxometer1[i]],TransportCost[Taxometer2[i]],TransportCost[Taxometer3[i]]);
    TextDrawSetString(Taxometer[i], string);
    }
    /*if(!IsPlayerConnected(Wuerfeluser[Wuerfeluser[i]]) || !IsPlayerConnected(Wuerfeluser[i]))
    {
    //printf("TEST"); new dice = random(6)+1;
    if(Wuerfelrunde[i] == 1 || Wuerfeluser[Wuerfeluser[i] == 1)
    {
    }
    if(Wuerfelrunde[i] == 2 || Wuerfeluser[Wuerfeluser[i] == 2)
    {
    }
    if(Wuerfelrunde[i] == 3 || Wuerfeluser[Wuerfeluser[i] == 3)
    {
    }
    if(Wuerfeluser[Wuerfeluser[i] == 4)
    {
    }
    }*/
    if(PlayerInfo[i][pJailed] > 0 && PlayerInfo[i][pJailed] != 5)
    {
    if(PlayerInfo[i][pJailTime] > 0 && WantLawyer[i] == 0)
    {
    PlayerInfo[i][pJailTime] -= 1;
    }
    if(PlayerInfo[i][pJailTime] <= 0 && WantLawyer[i] == 0)
    {
    PlayerInfo[i][pJailTime] = 0;
    if(PlayerInfo[i][pJailed] == 1)
    { //Freilassung SFPD
    SetPlayerInterior(i, 0);
    SetPlayerPos(i,-1605.3224,713.3950,13.4961);
    SetPlayerVirtualWorld(i,0);
    }
    else if(PlayerInfo[i][pJailed] == 2)
    { //Freilassung Prison
    SetPlayerPos(i, 1799.5938,-1578.0750,14.0743);
    SetPlayerFacingAngle(i, 0);
    CP[i] = 0;
    PlayerInfo[i][pJailed] = 0;
    SetPlayerSkin(i, PlayerInfo[i][pChar]);
    SetPlayerInterior(i, 0);
    SetPlayerVirtualWorld(i,0);
    }
    else if(PlayerInfo[i][pJailed] == 3)
    { // Freilassung LSPD
    SetPlayerInterior(i, 0);
    SetPlayerPos(i, 1261.7485,-1629.1006,13.5510);
    SetPlayerVirtualWorld(i,0);
    }
    SendClientMessage(i, COLOR_GRAD1,"Du hast deine Schuld gegenüber der Gesellschaft beglichen.");
    format(string, sizeof(string), "~g~Freiheit~n~~w~Werde ein besserer Mensch");
    GameTextForPlayer(i, string, 5000, 1); PlayerInfo[i][pJailed] = 0; SetPlayerWorldBounds(i, 20000.0000,-20000.0000,20000.0000,-20000.0000); ClearCrime(i); SetPlayerToTeamColor(i); TogglePlayerControllable(i, 1);
    TextDrawHideForPlayer(i, CPrison[i]);
    }
    }
    if(Haltestellevar[i] == 1)
    {
    Haltestellenansage[i] = 0;
    Haltestellevar[i] = 0;
    }
    new Busfahrer;
    Busfahrer = GetPlayerIdFromName("BusbotSTADT");
    if(GetPlayerState(Busfahrer) == PLAYER_STATE_DRIVER)
    {
    if(!IsPlayerInRangeOfPoint(Busfahrer,8.0,1178.4788,-933.3400,43.0983)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,777.12, -1039.02, 24.49)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,618.70, -1255.52, 18.11)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,504.78, -1410.15, 16.31)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,393.42, -1657.83, 31.33)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1030.11, -1615.97, 13.71)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1174.99, -1859.03, 13.60)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1481.73, -1738.73, 13.74)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1854.72, -1759.30, 13.74)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1721.49, -1356.69, 13.67)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,461.55, -1026.70, 23.77)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,790.47, -1350.52, 13.67)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1128.96, -1413.82, 13.73)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1142.88, -1619.14, 14.17)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1814.63, -1920.21, 13.67)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1983.54, -2174.20, 13.84)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,2250.41, -2227.13, 13.69)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1436.90, -2287.23, 13.84)
    &&!IsPlayerInRangeOfPoint(Busfahrer,8.0,1431.78, -936.30, 36.53))
    {
    Haltestellevar[i] = 1;
    }
    if(Haltestellenansage[i] == 0)
    {
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1178.4788,-933.3400,43.0983))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Bürgershotnorth. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,777.12, -1039.02, 24.49))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Friedhof. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,618.70, -1255.52, 18.11))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Arbeitsamtls. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,504.78, -1410.15, 16.31))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Hotel LS. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,393.42, -1657.83, 31.33))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Angelsteg. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1030.11, -1615.97, 13.71))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Strand. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1174.99, -1859.03, 13.60))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Busdepot. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1481.73, -1738.73, 13.74))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Stadthalle. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1854.72, -1759.30, 13.74))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Alhambra. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1721.49, -1356.69, 13.67))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Downtown. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,461.55, -1026.70, 23.77))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Bank. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,790.47, -1350.52, 13.67))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Market Station. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1128.96, -1413.82, 13.73))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Krankenhaus. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1142.88, -1619.14, 14.17))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Zivispawn. ");//
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1814.63, -1920.21, 13.67))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Taxidepot. ");
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1983.54, -2174.20, 13.84))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Flughafen. ");
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,2250.41, -2227.13, 13.69))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Hafen. ");
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1436.90, -2287.23, 13.84))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: LS-Flughafen. ");
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    if(IsPlayerInRangeOfPoint(Busfahrer,7.0,1431.78, -936.30, 36.53))
    {
    //if(IsPlayerInVehicle(i,BusbotSTADT))
    if(IsInBus[i] != 0)
    {
    SendClientMessage(i,COLOR_BEIGE,"[Haltestellenansage]: Wir befinden uns zurzeit an der Haltestelle: Autobahnkreuz. ");
    Haltestellenansage[i] = 1;
    //Haltestellenwartetimer[i] = 15;
    }
    }
    }
    }
    if(IsPlayerConnected(i) && gPlayerLogged[i] && !IsPlayerNPC(i) && AFKModus[i] == 0)
    {
    new Float:antiarm;
    GetPlayerArmour(i,antiarm);
    if(gPlayerLogged[i] == 1 && PlayerInfo[i][pAdmin] < 1 && !IsACop(i) && antiarm > 1.0)
    {
    format(string,sizeof(string),"[SERVERGUARD]: %s wurde vom Server gekickt. Grund: Armour Hack",SpielerName(i));
    SendAdminMessage(COLOR_LIGHTRED,1,string);
    format(string, sizeof string, "[SERVERGUARD]: %s wurde vom Server gekickt. Grund: Armour Hack",SpielerName(i));
    SendClientMessage(i,COLOR_LIGHTRED,string);
    SetTimerEx("ConnectKick", 10,0,"i",i);
    }
    new IsInNoDm = 0;
    for(new ZI = 0; ZI < sizeof(NODMZonenInfo); ZI++)
    {
    if(IsPlayerInArea(i, NODMZonenInfo[ZI][NODMMinX],NODMZonenInfo[ZI][NODMMinY],NODMZonenInfo[ZI][NODMMaxX],NODMZonenInfo[ZI][NODMMaxY]))
    {
    IsInNoDm += 1;
    break;
    }
    }
    if(IsInNoDm == 1)
    {
    NoDmTimer[i] += 1;
    TextDrawShowForPlayer(i, NODMZoneTextdraw);
    }
    else
    {
    NoDmTimer[i] = 0;
    NoDmWarnungen[i] = 0;
    TextDrawHideForPlayer(i, NODMZoneTextdraw);
    }
    }
    }
    return 1;
    }