Gamemode Crashes

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

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Guten Tag,
    Hab folgendes Problem:


    [18:27:49] [debug] Server crashed while executing irp(3).amx
    [18:27:49] [debug] AMX backtrace:
    [18:27:49] [debug] #0 native SendClientMessage () from samp03svr
    [18:27:49] [debug] #1 00089f74 in public PayDay (0) from irp(3).amx
    [18:27:49] [debug] #2 0008783c in public MinutenTimer () from irp(3).amx
    [18:27:49] [debug] #3 native CallLocalFunction () from samp03svr
    [18:27:49] [debug] #4 001c5e74 in public ProTimer () from irp(3).amx
    [18:27:49] [debug] Native backtrace:
    [18:27:49] [debug] #0 f69aae8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
    [18:27:49] [debug] #1 f69a3bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
    [18:27:49] [debug] #2 f69a4dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
    [18:27:49] [debug] #3 f69a5226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
    [18:27:49] [debug] #4 f69aaadc in ?? () from plugins/crashdetect.so
    [18:27:49] [debug] #5 f772d410 in ?? ()
    [18:27:49] [debug] #6 f74b6034 in _IO_vfprintf () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    [18:27:49] [debug] #7 f74d5d5c in vsprintf () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    [18:27:49] [debug] #8 080abd01 in ?? () from ./samp03svr
    [18:27:49] [debug] #9 080d7429 in ?? () from ./samp03svr
    [18:27:49] [debug] #10 08094054 in ?? () from ./samp03svr
    [18:27:49] [debug] #11 f69a694b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
    [18:27:49] [debug] #12 f69a98f8 in ?? () from plugins/crashdetect.so
    [18:27:49] [debug] #13 f69ad916 in amx_Exec () from plugins/crashdetect.so
    [18:27:49] [debug] #14 f69a5be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
    [18:27:49] [debug] #15 f69a9659 in ?? () from plugins/crashdetect.so
    [18:27:49] [debug] #16 080dd0e2 in ?? () from ./samp03svr
    [18:27:49] [debug] #17 08094054 in ?? () from ./samp03svr
    [18:27:49] [debug] #18 f69a694b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
    [18:27:49] [debug] #19 f69a98f8 in ?? () from plugins/crashdetect.so
    [18:27:49] [debug] #20 f69ad916 in amx_Exec () from plugins/crashdetect.so
    [18:27:49] [debug] #21 f69a5be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
    [18:27:49] [debug] #22 f69a9659 in ?? () from plugins/crashdetect.so
    [18:27:49] [debug] #23 080e6995 in ?? () from ./samp03svr
    [18:27:49] [debug] #24 080ad69b in ?? () from ./samp03svr
    [18:27:49] [debug] #25 080a88ce in ?? () from ./samp03svr
    [18:27:49] [debug] #26 f7488e66 in __libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    [18:27:49] [debug] #27 0804b4d1 in ?? () from ./samp03svr

  • Hier:


    public PayDay(i)
    {
    new string[128],
    PaydayZinsen,
    account,
    Stromkosten,
    HouseRent,
    Respekt,
    Zinsen,
    playername[MAX_PLAYER_NAME];
    if(IsPlayerConnected(i)){
    if(PlayerInfo[i][pLevel] > 0){
    if(PlayerInfo[i][pPayDay] >= 60){
    new Level = PlayerInfo[i][pLevel];
    if(Level >= 0 && Level <= 2) { PlayerInfo[i][pPayCheck] += 600; }
    else if(Level >= 3 && Level <= 4) { PlayerInfo[i][pPayCheck] += 1000; }
    else if(Level >= 5 && Level <= 6) { PlayerInfo[i][pPayCheck] += 1400; }
    else if(Level >= 7 && Level <= 8) { PlayerInfo[i][pPayCheck] += 1800; }
    else if(Level >= 9 && Level <= 10) { PlayerInfo[i][pPayCheck] += 2200; }
    else if(Level >= 11 && Level <= 12) { PlayerInfo[i][pPayCheck] += 2600; }
    else if(Level >= 13 && Level <= 14) { PlayerInfo[i][pPayCheck] += 3000; }
    else if(Level >= 15 && Level <= 16) { PlayerInfo[i][pPayCheck] += 3600; }
    else if(Level >= 17 && Level <= 18) { PlayerInfo[i][pPayCheck] += 4000; }
    else if(Level >= 19 && Level <= 20) { PlayerInfo[i][pPayCheck] += 4400; }
    else if(Level >= 21) { PlayerInfo[i][pPayCheck] += 5000; }
    GetPlayerName(i, playername, sizeof(playername));
    account = PlayerInfo[i][pBank];
    new HouseKey = PlayerInfo[i][pPhousekey];
    new BizKey = PlayerInfo[i][pBizKey];
    if(HouseKey != -1){
    HouseRent = HouseInfo[HouseKey][hRent];
    if(strcmp(playername, HouseInfo[HouseKey][hOwner], true) == 0){HouseRent = 0;}
    else if(HouseRent > PlayerInfo[i][pCash]){
    PlayerInfo[i][pPhousekey] = -1;
    SendClientMessage(i, COLOR_ERRORTEXT, " Dein Mieter hat dich aus der Wohnung geschmissen !");
    HouseRent = 0;
    }
    HouseInfo[HouseKey][hKasse] += HouseRent;
    }
    if(PlayerInfo[i][pBank] > 0){
    if(HouseKey != -1 && strcmp(playername, HouseInfo[HouseKey][hOwner], true) == 0 || BizKey != -1){
    SendClientMessage(i, COLOR_ERRORTEXT, "Stromkosten: %s$,Stromosten !");
    Stromkosten = PlayerInfo[i][pBank]/20000;
    PlayerInfo[i][pBank] -= Stromkosten;
    SBizInfo[4][sbTill] += Stromkosten/100*10;
    ExtortionSBiz(4, Stromkosten/100*5);
    }
    else
    {
    Stromkosten = 0;
    }
    }
    else
    {
    Stromkosten = 0;
    }
    PlayerInfo[i][pPayDayHad] += 1;
    Respekt = MinRespekt;
    new GehaltCheck = PlayerInfo[i][pPayCheck];
    GivePlayerMoneys(i, GehaltCheck);
    if(PlayerInfo[i][pDonatorRank] == 0)
    {
    if(PlayerInfo[i][pPayDayHad] >= 4)
    {
    if(PlayerInfo[i][pBikeLicPoints] >= 2)
    {
    PlayerInfo[i][pBikeLicPoints] -= 2;
    }
    else if(PlayerInfo[i][pBikeLicPoints] >= 1)
    {
    PlayerInfo[i][pBikeLicPoints] -= 1;
    }
    if(PlayerInfo[i][pCarLicPoints] >= 2)
    {
    PlayerInfo[i][pCarLicPoints] -= 2;
    }
    else if(PlayerInfo[i][pCarLicPoints] >= 1)
    {
    PlayerInfo[i][pCarLicPoints] -= 1;
    }
    }
    if(PlayerInfo[i][pPayDayHad] == 1 || PlayerInfo[i][pPayDayHad] == 3)
    {
    PaydayZinsen = 1;
    }
    if(PlayerInfo[i][pPayDayHad] >= 4)
    {
    PlayerInfo[i][pPayDayHad] = 0;
    }
    Zinsen = MinZinsen;
    }
    else if(PlayerInfo[i][pDonatorRank] == 1)
    {
    if(PlayerInfo[i][pPayDayHad] >= 4)
    {
    if(PlayerInfo[i][pBikeLicPoints] >= 2)
    {
    PlayerInfo[i][pBikeLicPoints] -= 2;
    }
    else if(PlayerInfo[i][pBikeLicPoints] >= 1)
    {
    PlayerInfo[i][pBikeLicPoints] -= 1;
    }
    if(PlayerInfo[i][pCarLicPoints] >= 2)
    {
    PlayerInfo[i][pCarLicPoints] -= 2;
    }
    else if(PlayerInfo[i][pCarLicPoints] >= 1)
    {
    PlayerInfo[i][pCarLicPoints] -= 1;
    }
    }
    if(PlayerInfo[i][pPayDayHad] == 2 || PlayerInfo[i][pPayDayHad] >= 4)
    {
    Respekt += 1;
    }
    if(PlayerInfo[i][pPayDayHad] == 1 || PlayerInfo[i][pPayDayHad] == 3)
    {
    PaydayZinsen = 1;
    }
    if(PlayerInfo[i][pPayDayHad] >= 4)
    {
    PlayerInfo[i][pPayDayHad] = 0;
    }
    Zinsen = MinZinsen;
    }
    else if(PlayerInfo[i][pDonatorRank] >= 2)
    {
    if(PlayerInfo[i][pPayDayHad] >= 4)
    {
    if(PlayerInfo[i][pBikeLicPoints] >= 2)
    {
    PlayerInfo[i][pBikeLicPoints] -= 2;
    }
    else if(PlayerInfo[i][pBikeLicPoints] >= 1)
    {
    PlayerInfo[i][pBikeLicPoints] -= 1;
    }
    if(PlayerInfo[i][pCarLicPoints] >= 2)
    {
    PlayerInfo[i][pCarLicPoints] -= 2;
    }
    else if(PlayerInfo[i][pCarLicPoints] >= 1)
    {
    PlayerInfo[i][pCarLicPoints] -= 1;
    }
    }
    if(PlayerInfo[i][pPayDayHad] == 2 || PlayerInfo[i][pPayDayHad] >= 4)
    {
    Respekt += 2;
    }
    if(PlayerInfo[i][pPayDayHad] == 1 || PlayerInfo[i][pPayDayHad] == 3)
    {
    PaydayZinsen = 1;
    }
    if(PlayerInfo[i][pPayDayHad] >= 4)
    {
    PlayerInfo[i][pPayDayHad] = 0;
    }
    Zinsen = MinZinsen+1;
    }
    #pragma unused PaydayZinsen
    #pragma unused Zinsen
    new Steuern = (PlayerInfo[i][pLevel]*StuffInfo[sSteuern]);
    PlayerInfo[i][pBank] -= Steuern;
    PlayerInfo[i][pBank] -= HouseRent;
    StuffInfo[sSteuerkasse] += Steuern;
    StuffInfo[sEinnahmen] += Steuern;
    SendClientMessage(i, COLOR_BEIGE, string);
    SendClientMessage(i, COLOR_BEIGE, "|-----------------Gehalts-Check------------------|");
    format(string, sizeof(string), " Gehalt: %s$ Steuern: -%s$", GetPoint(GehaltCheck), GetPoint(Steuern));
    SendClientMessage(i, COLOR_GREY, string);
    format(string, sizeof(string), " Neuer Stand: %s$", GetPoint(PlayerInfo[i][pBank]));
    SendClientMessage(i, COLOR_BEIGE, string);
    format(string, sizeof(string), " Alter Kontostand: %s$", GetPoint(account));
    SendClientMessage(i, COLOR_BEIGE, string);
    if(HouseRent > 0)
    {
    format(string, sizeof(string), " Miete: -$%d", HouseRent);
    SendClientMessage(i, COLOR_BEIGE, string);
    }
    format(string, sizeof(string), "~y~PayDay~n~~w~Zahltag");
    GameTextForPlayer(i, string, 5000, 1);
    PlayerInfo[i][pRespekt] += Respekt;
    PlayerInfo[i][pPayDay] = 0;
    PlayerInfo[i][pPayCheck] = 0;
    PlayerInfo[i][pConnectTime] += 1;
    if(PlayerInfo[i][pFestPD]>=1){PlayerInfo[i][pFestPD]-=1;}
    else if(!PlayerInfo[i][pFestPD] && PlayerInfo[i][pFestgeld] != 0)
    {
    new tmp_brx = floatround(float(PlayerInfo[i][pFestgeld])*0.035);
    format(string,sizeof(string),"Die Bank dir $%d überwiesen + einen Zinssatz von ca. 3%% ($%d)", PlayerInfo[i][pFestgeld], tmp_brx);
    SendClientMessage(i,-1,string);
    PlayerInfo[i][pBank]+=tmp_brx;
    PlayerInfo[i][pFestgeld]=0;
    PlayerInfo[i][pFestPD]=0;
    }
    new exp = PlayerInfo[i][pRespekt], nxtlevel = PlayerInfo[i][pLevel]+1, expamount = nxtlevel*levelexp;
    if(exp >= expamount)
    {
    GameTextForPlayer(i, "LEVEL UP", 5000, 0);
    PlayerInfo[i][pLevel] += 1;
    PlayerInfo[i][pRespekt] = 0;
    }
    if(PlayerInfo[i][pCarLicPoints] >= 10)
    {
    PlayerInfo[i][pCarLicPoints] = 0;
    new wielange = (LicensSperreTage*24*60*60);
    new Zeit = wielange+Time();
    PlayerInfo[i][pCarLic] = Zeit;
    PlayerInfo[i][pLKWLic] = Zeit;
    SendClientMessage(i, COLOR_LIGHTBLUE, "Dir wurde vom Staat deine License zum Führen eines Fahrzeuges entzogen.");
    }
    if(PlayerInfo[i][pBikeLicPoints] >= 10)
    {
    PlayerInfo[i][pBikeLicPoints] = 0;
    new wielange = (LicensSperreTage*24*60*60);
    new Zeit = wielange+Time();
    PlayerInfo[i][pBikeLic] = Zeit;
    PlayerInfo[i][pLKWLic] = Zeit;
    SendClientMessage(i, COLOR_LIGHTBLUE, "Dir wurde vom Staat deine License zum Führen eines Fahrzeuges entzogen.");
    }
    if(strcmp(PlayerInfo[i][pWerberName], "Niemand", true) != 0)
    {
    if(PlayerInfo[i][pConnectTime] >= 36)
    {
    ForAllPlayers(ii){
    if(IsPlayerConnected(ii) && gPlayerLogged[ii]){
    GetPlayerName(ii, playername, sizeof(playername));
    new playername2[MAX_PLAYER_NAME];
    if(strcmp(playername, PlayerInfo[i][pWerberName], true) == 0)
    {
    GetPlayerName(i, playername2, sizeof(playername2));
    if(PlayerInfo[ii][pDonatorRank] == 2)
    {
    }
    else
    {
    PlayerInfo[ii][pDonatorRank] = 1;
    }
    PlayerInfo[ii][pRespekt] += 2;
    strmid(PlayerInfo[i][pWerberName], "Niemand", 0, strlen("Niemand"), 255);
    format(string, sizeof(string), "[System Info] %s hat dich als Werber angegeben! Du erhälst 2 Respektpunkte.", playername2);
    SendClientMessage(ii, COLOR_LIGHTBLUE2, string);
    break;
    }}}}}
    }
    }
    }
    return 1;
    }


    public MinutenTimer()
    {
    new string[256];
    if(UsersOnline > StuffInfo[sUserRekord])
    {
    StuffInfo[sUserRekord] = UsersOnline;
    SaveStuff();
    }
    if(StuffInfo[sSteuerkasse] >= 1000000000)
    {
    StuffInfo[sSteuerkasse] = 990000000;
    SaveStuff();
    }
    if(StuffInfo[sDrogenBank] >= 199000000)
    {
    StuffInfo[sDrogenBank] = 190000000;
    SaveStuff();
    }
    if(!mysql_ping(MySQLConnection))
    {
    //mysql_reconnect(MySQLConnection);
    mysql_connect(MySQL_Host, MySQL_User, MySQL_DB, MySQL_Passwort); // Hier ist der Test da er so nicht reconnectet
    print("MySQL: Connection lost! -> MySQL reconnect!");
    SendClientMessageToAll(COLOR_GRAD2,"");
    SendClientMessageToAll(COLOR_GRAD2,"");
    SendClientMessageToAll(COLOR_GRAD2,"");
    SendClientMessageToAll(COLOR_GRAD2,"");
    SendClientMessageToAll(COLOR_YELLOW,"MySQL: Connection lost ! Alles was nun passiert wird nich mehr gespeichert.");
    SendClientMessageToAll(COLOR_YELLOW,"MySQL: Versucht zu Connecten.");
    SendClientMessageToAll(COLOR_GRAD2,"");
    SendClientMessageToAll(COLOR_GRAD2,"");
    SendClientMessageToAll(COLOR_GRAD2,"");
    SendClientMessageToAll(COLOR_GRAD2,"");
    // SendRconCommand("gmx");
    // print("MySQL: Connection lost! -> Automatischer Restart!");
    }
    for(new i = 0; i < sizeof(GangfightSystemInfo); i++){
    if(GangfightSystemInfo[i][GFPauseTime] != -1)
    {
    GangfightSystemInfo[i][GFPauseTime] += 1;
    }
    if(GangfightSystemInfo[i][GFPauseTime] >= 1440)
    {
    GangfightSystemInfo[i][GFPauseTime] = -1;
    }
    if(GangfightSystemInfo[i][GFRunningTime] != -1)
    {
    GangfightSystemInfo[i][GFRunningTime] += 1;
    if(GangfightSystemInfo[i][GFRunningTime] >= 120)
    {
    new OwnerTeamText[20];
    if(GangfightSystemInfo[i][GFOwnerID] == 5) { OwnerTeamText = "La Cosa Nostra"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 6) { OwnerTeamText = "Yakuza"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 15) { OwnerTeamText = "Biker Boys"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 17) { OwnerTeamText = "Camorra"; }
    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 = "Guerilla"; }
    else if(GangfightSystemInfo[i][GFOwnerID] == 26) { OwnerTeamText = "Cali Kartell"; }
    new GegnerTeamText[20];
    if(GangfightSystemInfo[i][GFGegnerID] == 5) { GegnerTeamText = "La Cosa Nostra"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 6) { GegnerTeamText = "Yakuza"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 15) { GegnerTeamText = "Biker Boys"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 17) { GegnerTeamText = "Camorra"; }
    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 = "Guerilla"; }
    else if(GangfightSystemInfo[i][GFGegnerID] == 26) { GegnerTeamText = "Cali Kartell"; }
    if(GangfightSystemInfo[i][GFOwnerPoints] >= GangfightSystemInfo[i][GFGegnerPoints])
    {
    format(string, sizeof(string), "NEWS: Die %s haben ihr Gebiet erfolgreich gegen die %s mit %d zu %d Kills verteidigt.", OwnerTeamText, GegnerTeamText, GangfightSystemInfo[i][GFOwnerPoints], GangfightSystemInfo[i][GFGegnerPoints]);
    OOCNews(COLOR_NEWS, string);
    }
    else if(GangfightSystemInfo[i][GFGegnerPoints] > GangfightSystemInfo[i][GFOwnerPoints])
    {
    format(string, sizeof(string), "NEWS: Die %s haben das Gebiet der %s mit %d zu %d Kills erobert.", GegnerTeamText, OwnerTeamText, GangfightSystemInfo[i][GFGegnerPoints], GangfightSystemInfo[i][GFOwnerPoints]);
    OOCNews(COLOR_NEWS, string);
    GangfightSystemInfo[i][GFOwnerID] = GangfightSystemInfo[i][GFGegnerID];
    }
    KassenInfo[GangfightSystemInfo[i][GFOwnerID]][tKasse] += 10000;
    GangfightSystemInfo[i][GFGegnerID] = -1;
    GangfightSystemInfo[i][GFOwnerPoints] = 0;
    GangfightSystemInfo[i][GFGegnerPoints] = 0;
    GangfightSystemInfo[i][GFRunningTime] = -1;
    GangfightSystemInfo[i][GFPauseTime] = 0;
    GangZoneStopFlashForAll(GangfightSystemInfo[i][GFGangZoneID]);
    GangZoneHideForAll(GangfightSystemInfo[i][GFGangZoneID]);
    new GANGZONE_COLOR;
    if(GangfightSystemInfo[i][GFOwnerID] == 5)
    {
    GANGZONE_COLOR = GANGCOLOR_LCN;
    }
    if(GangfightSystemInfo[i][GFOwnerID] == 6)
    {
    GANGZONE_COLOR = GANGCOLOR_YAKUZA;
    }
    if(GangfightSystemInfo[i][GFOwnerID] == 18)
    {
    GANGZONE_COLOR = GANGCOLOR_ATZTECAS;
    }
    if(GangfightSystemInfo[i][GFOwnerID] == 19)
    {
    GANGZONE_COLOR = GANGCOLOR_GROVESTREET;
    }
    if(GangfightSystemInfo[i][GFOwnerID] == 20)
    {
    GANGZONE_COLOR = GANGCOLOR_BALLAS;
    }
    if(GangfightSystemInfo[i][GFOwnerID] == 23)
    {
    GANGZONE_COLOR = GANGCOLOR_REDSOLDIER;
    }
    if(GangfightSystemInfo[i][GFOwnerID] == 24)
    {
    GANGZONE_COLOR = GANGCOLOR_VAGOS;
    }
    if(GangfightSystemInfo[i][GFOwnerID] == 25)
    {
    GANGZONE_COLOR = GANGCOLOR_GUERILLA;
    }
    if(GangfightSystemInfo[i][GFOwnerID] == 26)
    {
    GANGZONE_COLOR = GANGCOLOR_KARTEL;
    }
    if(GangfightSystemInfo[i][GFOwnerID] == 17)
    {
    GANGZONE_COLOR = GANGCOLOR_CAMORA;
    }
    if(GangfightSystemInfo[i][GFOwnerID] == 22)
    {
    GANGZONE_COLOR = GANGCOLOR_RIFA;
    }
    GangZoneShowForAll(GangfightSystemInfo[i][GFGangZoneID], GANGZONE_COLOR);
    if(GangfightSystemInfo[i][GFGegnerID] != -1)
    {
    if(GangfightSystemInfo[i][GFGegnerID] == 5)
    {
    GANGZONE_COLOR = GANGCOLOR_LCN;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 6)
    {
    GANGZONE_COLOR = GANGCOLOR_YAKUZA;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 18)
    {
    GANGZONE_COLOR = GANGCOLOR_ATZTECAS;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 19)
    {
    GANGZONE_COLOR = GANGCOLOR_GROVESTREET;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 20)
    {
    GANGZONE_COLOR = GANGCOLOR_BALLAS;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 23)
    {
    GANGZONE_COLOR = GANGCOLOR_REDSOLDIER;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 24)
    {
    GANGZONE_COLOR = GANGCOLOR_VAGOS;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 25)
    {
    GANGZONE_COLOR = GANGCOLOR_GUERILLA;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 26)
    {
    GANGZONE_COLOR = GANGCOLOR_KARTEL;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 17)
    {
    GANGZONE_COLOR = GANGCOLOR_CAMORA;
    }
    if(GangfightSystemInfo[i][GFGegnerID] == 22)
    {
    GANGZONE_COLOR = GANGCOLOR_RIFA;
    }
    GangZoneFlashForAll(GangfightSystemInfo[i][GFGangZoneID], GANGZONE_COLOR);
    }
    }
    }
    }
    if(Rob247Timer > 0)
    {
    Rob247Timer -= 1;
    }
    if(AdminChatClose > 0)
    {
    AdminChatClose -= 1;
    }
    if(TransporterRobTimer > 0)
    {
    TransporterRobTimer -= 1;
    }
    if(TeamDmTime > 0)
    {
    TeamDmTime--;
    if(TeamDmTime == 0)
    {
    Team1User = 0;
    Team2User = 0;
    ForAllPlayers(i){
    if(IsPlayerConnected(i)){
    if(PlayerTeamPaintballing[i] != 0){
    if(Team1pk > Team2pk)
    {
    SendClientMessage(i,COLOR_YELLOW,"Team Grün hat gewonnen");
    }
    if(Team2pk > Team1pk)
    {
    SendClientMessage(i,COLOR_YELLOW,"Team Blau hat gewonnen");
    }
    if(Team1pk == Team2pk)
    {
    SendClientMessage(i,COLOR_YELLOW,"Beide Teams haben die Gleichen Punkte, es gibt keinen Gewinner.");
    }
    SetPlayerPos(i,SBizInfo[13][sbEntranceX],SBizInfo[13][sbEntranceY],SBizInfo[13][sbEntranceZ]);
    TextDrawHideForPlayer(i,TeamDMDraw);
    PlayerTeamPaintballing[i] = 0;
    SetPlayerToTeamColor(i);
    SetPlayerInterior(i,0);
    SetPlayerHealth(i, 50);
    ResetPlayerWeapon(i);
    }}}
    Team1pk = 0;
    Team2pk = 0;
    format(string, sizeof(string), "~b~Blau: ~w~%d~n~~g~Grun: ~w~%d",Team2pk,Team1pk);
    TextDrawSetString(Text:TeamDMDraw, string);
    }
    else
    {
    ForAllPlayers(i){
    if(IsPlayerConnected(i)){
    if(PlayerTeamPaintballing[i] != 0){
    format(string, sizeof(string), "Team-Paintball endet in %d Minute(n)",TeamDmTime);
    SendClientMessage(i,COLOR_YELLOW,string);
    }}}}}
    ForAllPlayers(i){
    if(IsPlayerConnected(i)){
    SetPlayerTime(i,Stunde,Minute);
    if(AFKModus[i] == 0){
    CheckTime(i);
    SetPlayerWeather(i, 1);
    if(PlayerInfo[i][pJailed] != 2){
    PlayerInfo[i][pPayDay] += 1;
    }
    if(PlayerInfo[i][pPayDay] == 15 || PlayerInfo[i][pPayDay] == 30 || PlayerInfo[i][pPayDay] == 45 || PlayerInfo[i][pPayDay] == 60 || PlayerInfo[i][pPayDay] == 5 || PlayerInfo[i][pPayDay] == 10 || PlayerInfo[i][pPayDay] == 20 || PlayerInfo[i][pPayDay] == 25 || PlayerInfo[i][pPayDay] == 35 || PlayerInfo[i][pPayDay] == 40 || PlayerInfo[i][pPayDay] == 50 || PlayerInfo[i][pPayDay] == 55)
    {
    if(PlayerInfo[i][pPayDay] == 5 || PlayerInfo[i][pPayDay] == 10 || PlayerInfo[i][pPayDay] == 20 || PlayerInfo[i][pPayDay] == 25 || PlayerInfo[i][pPayDay] == 35 || PlayerInfo[i][pPayDay] == 40 || PlayerInfo[i][pPayDay] == 50 || PlayerInfo[i][pPayDay] == 55)
    {
    if(IsAWheelmanCar(GetPlayerVehicleID(i)) || IsAtVersteck(i))
    {
    WantedVerlieren(i);
    }
    }
    else if(PlayerInfo[i][pPayDay] == 15 || PlayerInfo[i][pPayDay] == 30 || PlayerInfo[i][pPayDay] == 45 || PlayerInfo[i][pPayDay] == 60)
    {
    }}
    if(WantedLoseAllow[i] > 0){WantedLoseAllow[i] -= 1;}
    if(PlayerInfo[i][pFishes] >= 1){PlayerInfo[i][pFishes] -= 1;}
    if(PlayerInfo[i][pPayDay] >= 60){PayDay(i);}
    if(PlayerToPoint(1.0, i, AntiAFKSavePlayerPos[i][AntiAFKLastX], AntiAFKSavePlayerPos[i][AntiAFKLastY], AntiAFKSavePlayerPos[i][AntiAFKLastZ]))
    {
    AntiAFKTimer[i] += 1;
    }
    //new rand = random(20);
    if(AntiAFKTime[i] == 0 && (/*rand == 10 || */AntiAFKTimer[i] == 10) || AntiAFKTime[i] == 0 && AntiAFKTimer[i] == 5 && PlayerInfo[i][pJailed] == 2)
    {
    AntiAFKTime[i] = 0;
    }
    GetPlayerPos(i, AntiAFKSavePlayerPos[i][AntiAFKLastX], AntiAFKSavePlayerPos[i][AntiAFKLastY], AntiAFKSavePlayerPos[i][AntiAFKLastZ]);
    }
    else
    {
    TogglePlayerControllable(i, 0);
    }
    }
    }
    ResetAutohausTimer += 1;
    if(ResetAutohausTimer >= 10)
    {
    ResetAutohausCars();
    ResetAutohausTimer = 0;
    }
    ResetArenenCars();
    UpdateTime();
    TicketsUpdate();
    return 1;
    }
    public ProTimer()
    {
    for(new TimerID = 0; TimerID < MAX_TIMERS; TimerID++)
    {
    if(ProTimerInfo[TimerID][PTActive] == 1)
    {
    ProTimerInfo[TimerID][PTCountTime]++;
    if(ProTimerInfo[TimerID][PTCountTime] >= ProTimerInfo[TimerID][PTTime])
    {
    CallLocalFunction(ProTimerInfo[TimerID][PTName], "");
    ProTimerInfo[TimerID][PTCountTime] = 0;
    if(ProTimerInfo[TimerID][PTWiederholung] == 0)
    {
    ProTimerInfo[TimerID][PTActive] = 0;
    }
    }
    }
    }
    return 1;
    }