Wenn man sich einloggt kommt das Login Fenster nicht mehr

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
  • public OnPlayerConnect(playerid)
    {
    TextDrawShowForPlayer(playerid,TextDrawLogin0);
    TextDrawShowForPlayer(playerid,TextDrawLogin1);
    TextDrawShowForPlayer(playerid,TextDrawLogin2);
    TextDrawShowForPlayer(playerid,TextDrawLogin3);
    TextDrawShowForPlayer(playerid,TextDrawLogin4);
    TextDrawShowForPlayer(playerid,TextDrawLogin5);
    TextDrawShowForPlayer(playerid,TextDrawLogin6);
    TextDrawShowForPlayer(playerid,TextDrawLogin7);
    TextDrawShowForPlayer(playerid,TextDrawLogin8);
    TextDrawShowForPlayer(playerid,TextDrawLogin9);
    //Ampel
    RemoveBuildingForPlayer(playerid,1283, 0.0, 0.0, 0.0, 10000.0);
    RemoveBuildingForPlayer(playerid,1350, 0.0, 0.0, 0.0, 10000.0);
    RemoveBuildingForPlayer(playerid,1284, 0.0, 0.0, 0.0, 10000.0);
    RemoveBuildingForPlayer(playerid,1315, 0.0, 0.0, 0.0, 10000.0);


    //
    RemoveBuildingForPlayer(playerid, 6463, 389.7734, -2028.4688, 19.8047, 0.5);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2035.3828, 29.9531, 50);
    RemoveBuildingForPlayer(playerid, 6298, 389.7734, -2028.4688, 19.8047, 0.5);
    RemoveBuildingForPlayer(playerid, 6461, 389.7734, -2028.5000, 20.1094, 0.5);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2028.5000, 32.2266, 50);
    RemoveBuildingForPlayer(playerid, 4024, 1479.8672, -1790.3984, 56.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 4044, 1481.1875, -1785.0703, 22.3828, 0.25);
    RemoveBuildingForPlayer(playerid, 4047, 1531.6328, -1852.6406, 24.5156, 0.25);
    RemoveBuildingForPlayer(playerid, 1527, 1448.2344, -1755.8984, 14.5234, 0.25);
    RemoveBuildingForPlayer(playerid, 713, 1407.1953, -1749.3125, 13.0938, 0.25);
    RemoveBuildingForPlayer(playerid, 713, 1405.2344, -1821.1172, 13.1016, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1417.9766, -1832.5313, 11.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 1405.5781, -1831.6953, 12.3984, 0.25);
    RemoveBuildingForPlayer(playerid, 700, 1447.1016, -1832.5000, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1231, 1432.3047, -1832.9141, 15.2891, 0.25);
    RemoveBuildingForPlayer(playerid, 4174, 1435.7656, -1823.6641, 15.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1456.3984, -1832.5313, 11.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 1464.0938, -1831.8828, 12.3984, 0.25);
    RemoveBuildingForPlayer(playerid, 1231, 1480.0313, -1832.9141, 15.2891, 0.25);
    RemoveBuildingForPlayer(playerid, 4171, 1503.3984, -1848.3359, 21.4609, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1504.8438, -1832.5313, 11.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 1499.0469, -1832.2734, 12.8828, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 1515.3828, -1850.0547, 12.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 1514.4219, -1850.0391, 12.9922, 0.25);
    RemoveBuildingForPlayer(playerid, 700, 1512.9453, -1832.3516, 13.4688, 0.25);
    RemoveBuildingForPlayer(playerid, 1372, 1516.6875, -1850.0547, 12.6641, 0.25);
    RemoveBuildingForPlayer(playerid, 700, 1404.9141, -1765.2656, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 1415.3125, -1748.5625, 12.3984, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1429.5313, -1748.4219, 12.9063, 0.25);
    RemoveBuildingForPlayer(playerid, 700, 1438.0313, -1747.9375, 13.4453, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1447.9063, -1748.2266, 12.9063, 0.25);
    RemoveBuildingForPlayer(playerid, 4002, 1479.8672, -1790.3984, 56.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 3980, 1481.1875, -1785.0703, 22.3828, 0.25);
    RemoveBuildingForPlayer(playerid, 4003, 1481.0781, -1747.0313, 33.5234, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1516.0000, -1748.6016, 13.0078, 0.25);
    RemoveBuildingForPlayer(playerid, 4048, 1531.6328, -1852.6406, 24.5156, 0.25);
    RemoveBuildingForPlayer(playerid, 1372, 1538.9453, -1849.2734, 12.6641, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 1538.8359, -1847.6250, 13.6719, 0.25);
    RemoveBuildingForPlayer(playerid, 1220, 1538.3906, -1847.9297, 12.9297, 0.25);
    RemoveBuildingForPlayer(playerid, 1220, 1539.1016, -1847.2969, 12.9297, 0.25);
    RemoveBuildingForPlayer(playerid, 1231, 1529.2891, -1832.9141, 15.2891, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1549.5313, -1832.3125, 12.8828, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 1555.6641, -1830.5938, 13.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 4175, 1524.4141, -1823.8516, 15.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 700, 1554.8203, -1816.1563, 13.4766, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 1553.2578, -1764.8125, 12.7969, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1533.2656, -1749.0234, 12.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 673, 1522.1641, -1748.5703, 13.0234, 0.25);
    RemoveBuildingForPlayer(playerid, 700, 1553.7031, -1747.9375, 13.4063, 0.25);
    RemoveBuildingForPlayer(playerid, 1226, 1774.7578, -1931.3125, 16.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 5024, 1748.8438, -1883.0313, 14.1875, 0.25);
    RemoveBuildingForPlayer(playerid, 1226, 1774.7578, -1901.5391, 16.3750, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 1539.2344, -1481.0781, 8.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 1536.5078, -1481.0938, 8.9531, 0.25);
    RemoveBuildingForPlayer(playerid, 1372, 1534.9297, -1480.9922, 8.6094, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 1537.2422, -1479.7422, 8.9453, 0.25);
    RemoveBuildingForPlayer(playerid, 1372, 1537.9297, -1480.6094, 8.6094, 0.25);
    //Riesenrad
    RemoveBuildingForPlayer(playerid, 6463, 389.7734, -2028.4688, 19.8047, 0.5);
    RemoveBuildingForPlayer(playerid, 3751, 389.8750, -2035.3828, 29.9531, 50);
    RemoveBuildingForPlayer(playerid, 6298, 389.7734, -2028.4688, 19.8047, 0.5);
    RemoveBuildingForPlayer(playerid, 6461, 389.7734, -2028.5000, 20.1094, 0.5);
    RemoveBuildingForPlayer(playerid, 3752, 389.8750, -2028.5000, 32.2266, 50);


    //Tuning garage
    RemoveBuildingForPlayer(playerid, 1265, 1539.2344, -1481.0781, 8.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 1536.5078, -1481.0938, 8.9531, 0.25);
    RemoveBuildingForPlayer(playerid, 1372, 1534.9297, -1480.9922, 8.6094, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 1537.2422, -1479.7422, 8.9453, 0.25);
    RemoveBuildingForPlayer(playerid, 1372, 1537.9297, -1480.6094, 8.6094, 0.25);


    SpielerInfo[playerid][pGeld] = 0;
    new Spieler[MAX_PLAYER_NAME];
    GetPlayerName(playerid, Spieler, sizeof(Spieler));
    if(!IsPlayerNPC(playerid))
    {
    if(mysql_GetInt("accounts","Gebannt","Name",Spieler) == 1)
    {
    new Grund[128], Admin[50], date[50],string[256];
    format(Grund, sizeof(Grund), "%s",mysql_GetString("bann","Grund","Name",Spieler));
    format(Admin, sizeof(Admin), "%s",mysql_GetString("bann","Administrator","Name",Spieler));
    format(date, sizeof(date), "%s",mysql_GetString("bann","Datum","Name",Spieler));
    format(string, sizeof(string), "Du wurdest am %s durch den Administrator %s gebannt. Als Grund ist folgendes angegeben:",date, Admin);
    SendClientMessage(playerid, COLOR_RED, "_____Ban-Information_____");
    SendClientMessage(playerid, COLOR_WHITE, string);
    SendClientMessage(playerid, COLOR_WHITE, Grund);
    SendClientMessage(playerid, COLOR_WHITE, "Deshalb wurdest du automatisch gekickt!");
    SendClientMessage(playerid, COLOR_WHITE, "Sollte der Bann unberechtigt sein, melde das im 'Entbann-Anträge' im Forum!");
    SendClientMessage(playerid, COLOR_RED, "________________________");
    Kick(playerid);
    }
    else
    {
    TextDrawShowForPlayer(playerid, Forumadresse);
    TextDrawShowForPlayer(playerid, Uhrzeit);
    TextDrawShowForPlayer(playerid,VersionTD);
    TextDrawShowForPlayer(playerid, Datum);
    TicketZeile[playerid] = 0;
    SupportTicket[playerid] = 0;
    TicketAngenommen[playerid] = 0;
    DeinSupport[playerid] = 0;
    tmpgang[playerid] = 0;
    WantedsWeg[playerid] = SetTimerEx("WantedWeg",30*60000,1,"d",playerid);
    gTeam[playerid] = 0;
    new playername[MAX_PLAYER_NAME];
    new Query[256];
    GetPlayerName(playerid, playername, sizeof(playername));
    SetPVarInt(playerid,"PayDay",0);
    format(Query, sizeof(Query), "SELECT * FROM privatcars WHERE Name = '%s'", playername );
    mysql_query(Query);
    mysql_store_result();
    if (mysql_num_rows())
    {
    Carlist[playerid][Typ] = mysql_GetInt("privatcars","AH_Typ","Name",playername);
    Carlist[playerid][CarX] = mysql_GetFloat("privatcars","AH_X","Name",playername);
    Carlist[playerid][CarY] = mysql_GetFloat("privatcars","AH_Y","Name",playername);
    Carlist[playerid][CarZ] = mysql_GetFloat("privatcars","AH_Z","Name",playername);
    Carlist[playerid][CarRotation] = mysql_GetFloat("privatcars","AH_Rot","Name",playername);
    Carlist[playerid][Status] = mysql_GetInt("privatcars","AH_Status","Name",playername);
    Carlist[playerid][Lock] = mysql_GetInt("privatcars","AH_Lock","Name",playername);
    Carlist[playerid][Paintjob] = mysql_GetInt("privatcars","AH_Paintjob","Name",playername);
    Carlist[playerid][Farbe1] = mysql_GetInt("privatcars","AH_Farbe1","Name",playername);
    Carlist[playerid][Farbe2] = mysql_GetInt("privatcars","AH_Farbe2","Name",playername);
    Carlist[playerid][mod1] = mysql_GetInt("privatcars","AH_MOD1","Name",playername);
    Carlist[playerid][mod2] = mysql_GetInt("privatcars","AH_MOD2","Name",playername);
    Carlist[playerid][mod3] = mysql_GetInt("privatcars","AH_MOD3","Name",playername);
    Carlist[playerid][mod4] = mysql_GetInt("privatcars","AH_MOD4","Name",playername);
    Carlist[playerid][mod5] = mysql_GetInt("privatcars","AH_MOD5","Name",playername);
    Carlist[playerid][mod6] = mysql_GetInt("privatcars","AH_MOD6","Name",playername);
    Carlist[playerid][mod7] = mysql_GetInt("privatcars","AH_MOD7","Name",playername);
    Carlist[playerid][mod8] = mysql_GetInt("privatcars","AH_MOD8","Name",playername);
    Carlist[playerid][mod9] = mysql_GetInt("privatcars","AH_MOD9","Name",playername);
    Carlist[playerid][mod10] = mysql_GetInt("privatcars","AH_MOD10","Name",playername);
    Carlist[playerid][mod11] = mysql_GetInt("privatcars","AH_MOD11","Name",playername);
    Carlist[playerid][mod12] = mysql_GetInt("privatcars","AH_MOD12","Name",playername);
    Carlist[playerid][mod13] = mysql_GetInt("privatcars","AH_MOD13","Name",playername);
    Carlist[playerid][mod14] = mysql_GetInt("privatcars","AH_MOD14","Name",playername);
    Carlist[playerid][mod15] = mysql_GetInt("privatcars","AH_MOD15","Name",playername);
    Carlist[playerid][mod16] = mysql_GetInt("privatcars","AH_MOD16","Name",playername);
    Carlist[playerid][mod17] = mysql_GetInt("privatcars","AH_MOD17","Name",playername);
    Carlist[playerid][fill] = mysql_GetInt("privatcars","AH_Fill","Name",playername);
    Carlist[playerid][Carid]=CreateTunedCar(playerid);
    VehTank[Carlist[playerid][Carid]] = Carlist[playerid][fill];
    }
    SetTimerEx("DelaySetVehicleParams",10000,0,"i",playerid);
    }
    }
    return 1;
    }