Login/Register geht beim MrMonat script nicht.

In 10 Minuten startet der nächtliche Backupvorgang! Es kann währenddessen (ca. 10 Minuten) zu Einschränkungen bei der Nutzung des Forums kommen
Weitere Infos findet ihr im Thema Backup des Forums
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
  • Sehr geehrte Breadfish Communty,


    ich weiss nicht wie ich das folgende Problem lösen kann:


    Login/Register geht beim MrMonat script nicht.



    Details:


    Wenn ich mich einlogge steht da Willkommen auf eLife...
    Connected to mrm


    Wenn ich dann auf SPAWN clicke steht da sie sind nicht eingeloggt.
    Das Textdraw bzw. das Fenster wo man sich einloggen kann erscheint nicht.


    Ich Danke im Voraus.

    Hier könnte ein Nazi hängen.
    Der Fuchs ist schlau und stellt sich dumm. Beim Fascho ist das andersrum.

  • Ich weiß leider nicht, wie MrMonat scriptet. Habe mich nie mit diesem Typen auseinandergesetzt.
    Vorerst, Script auf DINI oder MySQL?


    Schau mal im Script unter OnPlayerConnect oder unter OnPlayerRequestClass, dort muss etwas vom Login vorhanden sein.


    Homez 8)

  • Er hat mit MySQL gescriptet


    Das meiste ist AUSGEKLAMMERT, soll ich die klammern entfernen?


    public OnPlayerRequestClass(playerid, classid)
    {
    if(IsPlayerNPC(playerid)) return 1;
    return 1;
    /*istinskin[playerid]=1;
    SetPlayerPos(playerid, 1435.9697,-983.8199,57.5156);
    SetPlayerFacingAngle(playerid, 7.0941);
    SetPlayerCameraPos(playerid,1435.3550,-980.9818,57.5156);
    SetPlayerCameraLookAt(playerid, 1435.9697,-983.8199,57.5156);
    SetPlayerPos(playerid,-289.3069,1291.2152,53.6689);
    SetPlayerFacingAngle(playerid,41.9533);
    SetPlayerCameraPos(playerid,-291.8678,1293.5813,53.6698);
    SetPlayerCameraLookAt(playerid,-289.3069,1291.2152,53.6689);
    SetPlayerWeather(playerid,0);
    //new query[128];
    //new data[256];
    format(query,sizeof(query),"SELECT Skin FROM user WHERE Name='%s'",SpielerName(playerid));
    mysql_query(query);
    mysql_store_result();
    mysql_fetch_field("Skin",data);
    if(strval(data)!=0)
    {
    SetPlayerSkin(playerid,strval(data));
    mysql_free_result();
    SendClientMessage(playerid,COLOR_GREY,"Du hast schon einen Skin. Fahre mit \"SPAWN\" fort.");
    SpielerInfo[playerid][Skin]=GetPlayerSkin(playerid);
    return 1;
    }
    else
    {
    mysql_free_result();
    SetPlayerPos(playerid, 1435.9697,-983.8199,57.5156);
    SetPlayerFacingAngle(playerid, 7.0941);
    SetPlayerCameraPos(playerid,1435.3550,-981.9818,57.5156);
    SetPlayerCameraLookAt(playerid, 1435.9697,-983.8199,57.5156);
    SetPlayerPos(playerid,-289.3069,1291.2152,53.6689);
    SetPlayerFacingAngle(playerid,41.9533);
    SetPlayerCameraPos(playerid,-291.8678,1293.5813,53.6698);
    SetPlayerCameraLookAt(playerid,-289.3069,1291.2152,53.6689);
    SetPlayerWeather(playerid,0);
    SetPlayerColor(playerid,COLOR_WHITE);
    SpielerInfo[playerid][Skin]=GetPlayerSkin(playerid);
    return 1;
    }*/
    }



    und onplayerconnect:



    public OnPlayerConnect(playerid)
    {
    TextDrawShowForPlayer(playerid, TutBalken1);
    TextDrawShowForPlayer(playerid, TutBalken2);
    print("OnPlayerConnect - Debug 00");
    new now_time=GetTickCount();
    // Lebensanzeige!
    lebensanzeige[playerid] = TextDrawCreate(110.0000,337.0000,"100.000");
    TextDrawSetShadow(lebensanzeige[playerid],1);
    TextDrawFont(lebensanzeige[playerid],2);
    TextDrawColor(lebensanzeige[playerid], COLOR_RED);
    TextDrawSetProportional(lebensanzeige[playerid],1);
    TextDrawLetterSize(lebensanzeige[playerid],0.5000,1.0000);
    SetTimerEx("hpanzeige",10*1,true,"i",playerid);


    /* Tutpalken like pRP */
    TutBalken1 = TextDrawCreate(0.000000, 2.000000, "Balken1 Rockstar Presentiert");
    TextDrawBackgroundColor(TutBalken1, 255);
    TextDrawFont(TutBalken1, 1);
    TextDrawLetterSize(TutBalken1, 0.100000, 8.100000);
    TextDrawColor(TutBalken1, 255);
    TextDrawSetOutline(TutBalken1, 0);
    TextDrawSetProportional(TutBalken1, 1);
    TextDrawSetShadow(TutBalken1, 1);
    TextDrawUseBox(TutBalken1, 1);
    TextDrawBoxColor(TutBalken1, 255);
    TextDrawTextSize(TutBalken1, 638.000000, 0.000000);


    TutBalken2 = TextDrawCreate(-2.000000, 451.000000, "RockstarGamesbacklen2");
    TextDrawBackgroundColor(TutBalken2, 255);
    TextDrawFont(TutBalken2, 1);
    TextDrawLetterSize(TutBalken2, 0.500000, -12.899999);
    TextDrawColor(TutBalken2, 255);
    TextDrawSetOutline(TutBalken2, 0);
    TextDrawSetProportional(TutBalken2, 1);
    TextDrawSetShadow(TutBalken2, 1);
    TextDrawUseBox(TutBalken2, 1);
    TextDrawBoxColor(TutBalken2, 255);
    TextDrawTextSize(TutBalken2, 641.000000, 1.000000);



    //Armor Anzeige:
    armoranzeige[playerid] = TextDrawCreate(128.0000,350.0000,"100.000");
    TextDrawSetShadow(armoranzeige[playerid],0);
    TextDrawFont(armoranzeige[playerid],1);
    TextDrawLetterSize(armoranzeige[playerid],0.5000,1.0000);
    SetTimerEx("armorsanzeige",10*1,true,"i",playerid);
    //NICE
    TextDrawShowForPlayer(playerid, GTALifeofSun);
    //Noobspawn
    RemoveBuildingForPlayer(playerid, 5544, 1873.7422, -1682.4766, 34.7969, 0.25);
    RemoveBuildingForPlayer(playerid, 1524, 1837.6641, -1640.3828, 13.7578, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1855.7188, -1741.5391, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1879.5078, -1741.4844, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1908.2188, -1741.4844, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 712, 1929.5781, -1736.9063, 21.3906, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1931.0391, -1726.3281, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1832.3828, -1694.3125, 9.7188, 0.25);
    RemoveBuildingForPlayer(playerid, 1537, 1837.4375, -1683.9688, 12.3047, 0.25);
    RemoveBuildingForPlayer(playerid, 1533, 1837.4375, -1683.9531, 12.3047, 0.25);
    RemoveBuildingForPlayer(playerid, 1537, 1837.4375, -1686.9844, 12.3125, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1832.8984, -1670.7656, 9.7188, 0.25);
    RemoveBuildingForPlayer(playerid, 1533, 1837.4375, -1677.9219, 12.2969, 0.25);
    RemoveBuildingForPlayer(playerid, 1537, 1837.4375, -1680.9531, 12.2969, 0.25);
    RemoveBuildingForPlayer(playerid, 1533, 1837.4375, -1680.9375, 12.2969, 0.25);
    RemoveBuildingForPlayer(playerid, 5408, 1873.7422, -1682.4766, 34.7969, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1931.0391, -1702.2891, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 712, 1929.5781, -1694.4609, 21.3906, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1931.0391, -1667.0313, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1931.0391, -1637.8984, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1855.7188, -1623.2813, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1879.5078, -1623.1016, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 1908.2188, -1622.9844, 10.8047, 0.25);
    RemoveBuildingForPlayer(playerid, 712, 1929.5781, -1627.6250, 21.3906, 0.25);
    //Karbahntorweg
    RemoveBuildingForPlayer(playerid, 11372, -2076.4375, -107.9297, 36.9688, 0.25);
    RemoveBuildingForPlayer(playerid, 11014, -2076.4375, -107.9297, 36.9688, 0.25);
    //GS Aufgeräumt
    RemoveBuildingForPlayer(playerid, 1265, 2488.8047, -1684.7891, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 3594, 2532.9844, -1719.4297, 13.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 3594, 2537.9688, -1700.7109, 13.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2491.2344, -1653.9609, 12.9219, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2492.2656, -1653.9922, 12.8984, 0.25);
    RemoveBuildingForPlayer(playerid, 1211, 2495.2656, -1653.6719, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2505.6719, -1658.9063, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1211, 2505.6641, -1657.9375, 12.9219, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2501.9297, -1650.5078, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 3594, 2514.3906, -1658.6016, 13.1406, 0.25);
    RemoveBuildingForPlayer(playerid, 3694, 2461.8594, -1715.1484, 12.8828, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2468.3516, -1680.9844, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 3593, 2457.8672, -1679.6719, 12.9453, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2465.6953, -1676.4453, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2463.8672, -1671.5156, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2415.2031, -1653.1328, 12.6797, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2453.9609, -1653.6953, 12.6797, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2475.0000, -1653.6094, 12.7891, 0.25);
    RemoveBuildingForPlayer(playerid, 3593, 2437.4844, -1644.1172, 12.9844, 0.25);
    RemoveBuildingForPlayer(playerid, 985, 2497.4063, 2777.0703, 11.5313, 0.25);
    RemoveBuildingForPlayer(playerid, 986, 2497.4063, 2769.1094, 11.5313, 0.25);
    RemoveBuildingForPlayer(playerid, 1412, 192.8125, -263.8438, 1.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1412, 195.4609, -271.8203, 1.8516, 0.25);
    RemoveBuildingForPlayer(playerid, 1412, 200.7422, -271.8203, 1.8516, 0.25);
    RemoveBuildingForPlayer(playerid, 781, 196.7734, -267.6016, 0.4531, 0.25);
    RemoveBuildingForPlayer(playerid, 1412, 192.9063, -269.1250, 1.8438, 0.25);
    RemoveBuildingForPlayer(playerid, 1412, 209.5703, -271.8359, 1.8516, 0.25);
    RemoveBuildingForPlayer(playerid, 1412, 192.8125, -254.8047, 1.8281, 0.25);
    RemoveBuildingForPlayer(playerid, 1412, 192.8125, -249.5313, 1.8281, 0.25);
    //Getränkeautomaten
    RemoveBuildingForPlayer(playerid,955,0.0,0.0,0.0,3000.0);
    RemoveBuildingForPlayer(playerid,956,0.0,0.0,0.0,3000.0);
    //Oamt aufgeräumt
    RemoveBuildingForPlayer(playerid, 3777, 831.9609, -1191.1406, 25.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 3777, 868.1328, -1191.1406, 25.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 5926, 816.3359, -1217.1484, 26.4453, 0.25);
    RemoveBuildingForPlayer(playerid, 3777, 902.3359, -1191.1406, 25.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 6005, 895.2578, -1256.9297, 31.2344, 0.25);
    RemoveBuildingForPlayer(playerid, 5836, 816.3359, -1217.1484, 26.4453, 0.25);
    RemoveBuildingForPlayer(playerid, 3776, 831.9609, -1191.1406, 25.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 3776, 868.1328, -1191.1406, 25.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 5838, 895.2578, -1256.9297, 31.2344, 0.25);
    RemoveBuildingForPlayer(playerid, 3776, 902.3359, -1191.1406, 25.0391, 0.25);
    RemoveBuildingForPlayer(playerid, 1297, 937.5547, -1213.8672, 18.5938, 0.25);
    //Medicbase
    RemoveBuildingForPlayer(playerid, 5935, 1120.1563, -1303.4531, 18.5703, 0.25); //Entfernt das Haus
    RemoveBuildingForPlayer(playerid, 1440, 1085.7031, -1361.0234, 13.2656, 0.25); //Entfernt Pennerkiste
    RemoveBuildingForPlayer(playerid, 1440, 1141.9844, -1346.1094, 13.2656, 0.25); //Entfernt Pennerkiste
    RemoveBuildingForPlayer(playerid, 1440, 1148.6797, -1385.1875, 13.2656, 0.25); //Entfernt Pennerkiste
    RemoveBuildingForPlayer(playerid, 5737, 1120.1563, -1303.4531, 18.5703, 0.25);


    resetoldvars(playerid);
    print("OnPlayerConnect - Debug 01");
    //SetPlayerHealth(playerid,100);
    SetPlayerArmour(playerid,0);
    TextDrawShowForPlayer(playerid,MBar);
    SetPlayerColor(playerid,COLOR_DARKGREY);
    SetPVarInt(playerid,"murder",INVALID_PLAYER_ID);
    SetPVarInt(playerid,"wwm",-1);
    SetPVarInt(playerid,"contracted",-1);
    SetPVarInt(playerid,"gebverkaufer",-1);
    SetPVarInt(playerid,"autoverkaufer",-1);
    SetPVarInt(playerid,"vangeboter",-1);
    SetPVarInt(playerid,"taxifahrer",-1);
    SetPVarInt(playerid,"darfspec",-1);
    TextDrawHideForPlayer(playerid,fragen);
    TextDrawHideForPlayer(playerid,regeln);
    TextDrawHideForPlayer(playerid,probleme);
    print("OnPlayerConnect - Debug 02");
    if(!IsPlayerNPC(playerid))
    {
    gpci(playerid,query,sizeof(query));
    format(string,sizeof(string),"%s Serial: %s",SpielerName(playerid),query);
    new datei[123];
    new d_d,d_m,d_y;
    getdate(d_y,d_m,d_d);
    format(datei,sizeof(datei),"/serials/serials_%02d_%02d_%04d.txt",d_d,d_m,d_y);
    strLog(datei,string);
    format(query,sizeof(query),"SELECT serial FROM bannedserials WHERE serial='%s'",query);
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows()==1)
    {
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Dein Serial ist Blacklistet.");
    SendClientMessage(playerid,COLOR_BRIGHTRED,"Bei Fragen wende dich an die Serverleitung.");
    mysql_free_result();
    Kick(playerid);
    return 1;
    }
    mysql_free_result();
    }
    print("OnPlayerConnect - Debug 03");
    RemovePlayerAttachedObject(playerid,3);
    RemovePlayerAttachedObject(playerid,2);
    TextDrawHideForPlayer(playerid,aduty);
    TextDrawHideForPlayer(playerid,afkbox);
    TextDrawHideForPlayer(playerid,afktext);
    TextDrawShowForPlayer(playerid,Version);
    SendClientMessage(playerid,0x2800FFFF,"Willkommen auf eLife - Reallife (Login)!");
    isttot[playerid]=0;
    PlayerPlaySound(playerid,1185,0.0,0.0,0.0);
    tmpPasswort[playerid]=0;

    TextDrawHideForPlayer(playerid,afklabel);
    print("OnPlayerConnect - Debug 04");
    policeName[playerid] = CreatePlayerTextDraw(playerid,70.000000, 202.000000, "Name: -");
    PlayerTextDrawBackgroundColor(playerid,policeName[playerid], 255);
    PlayerTextDrawFont(playerid,policeName[playerid], 2);
    PlayerTextDrawLetterSize(playerid,policeName[playerid], 0.449999, 1.600000);
    PlayerTextDrawColor(playerid,policeName[playerid], -1);
    PlayerTextDrawSetOutline(playerid,policeName[playerid], 0);
    PlayerTextDrawSetProportional(playerid,policeName[playerid], 1);
    PlayerTextDrawSetShadow(playerid,policeName[playerid], 0);
    print("OnPlayerConnect - Debug 40");
    policeFraktion[playerid] = CreatePlayerTextDraw(playerid,70.000000, 254.000000, "Fraktion: -");
    PlayerTextDrawBackgroundColor(playerid,policeFraktion[playerid], 255);
    PlayerTextDrawFont(playerid,policeFraktion[playerid], 2);
    PlayerTextDrawLetterSize(playerid,policeFraktion[playerid], 0.449999, 1.600000);
    PlayerTextDrawColor(playerid,policeFraktion[playerid], -1);
    PlayerTextDrawSetOutline(playerid,policeFraktion[playerid], 0);
    PlayerTextDrawSetProportional(playerid,policeFraktion[playerid], 1);
    PlayerTextDrawSetShadow(playerid,policeFraktion[playerid], 0);
    print("OnPlayerConnect - Debug 41");
    policeVerbrechen[playerid] = CreatePlayerTextDraw(playerid,70.000000, 309.000000, "Verbrechen Gesamt: -");
    PlayerTextDrawBackgroundColor(playerid,policeVerbrechen[playerid], 255);
    PlayerTextDrawFont(playerid,policeVerbrechen[playerid], 2);
    PlayerTextDrawLetterSize(playerid,policeVerbrechen[playerid], 0.449999, 1.600000);
    PlayerTextDrawColor(playerid,policeVerbrechen[playerid], -1);
    PlayerTextDrawSetOutline(playerid,policeVerbrechen[playerid], 0);
    PlayerTextDrawSetProportional(playerid,policeVerbrechen[playerid], 1);
    PlayerTextDrawSetShadow(playerid,policeVerbrechen[playerid], 0);
    print("OnPlayerConnect - Debug 42");
    policeOpenVerbrechen[playerid] = CreatePlayerTextDraw(playerid,70.000000, 360.000000, "Offene Verbrechen: -");
    PlayerTextDrawBackgroundColor(playerid,policeOpenVerbrechen[playerid], 255);
    PlayerTextDrawFont(playerid,policeOpenVerbrechen[playerid], 2);
    PlayerTextDrawLetterSize(playerid,policeOpenVerbrechen[playerid], 0.449999, 1.600000);
    PlayerTextDrawColor(playerid,policeOpenVerbrechen[playerid], -1);
    PlayerTextDrawSetOutline(playerid,policeOpenVerbrechen[playerid], 0);
    PlayerTextDrawSetProportional(playerid,policeOpenVerbrechen[playerid], 1);
    PlayerTextDrawSetShadow(playerid,policeOpenVerbrechen[playerid], 0);
    print("OnPlayerConnect - Debug 43");
    policeWanteds[playerid] = CreatePlayerTextDraw(playerid,432.000000, 173.000000, "- WPS");
    PlayerTextDrawBackgroundColor(playerid,policeWanteds[playerid], 255);
    PlayerTextDrawFont(playerid,policeWanteds[playerid], 2);
    PlayerTextDrawLetterSize(playerid,policeWanteds[playerid], 0.769999, 3.099998);
    PlayerTextDrawColor(playerid,policeWanteds[playerid], 255);
    PlayerTextDrawSetOutline(playerid,policeWanteds[playerid], 0);
    PlayerTextDrawSetProportional(playerid,policeWanteds[playerid], 1);
    PlayerTextDrawSetShadow(playerid,policeWanteds[playerid], 0);
    print("OnPlayerConnect - Debug 44");
    policeLast[playerid] = CreatePlayerTextDraw(playerid,381.000000, 276.000000, "-");
    PlayerTextDrawBackgroundColor(playerid,policeLast[playerid], 255);
    PlayerTextDrawFont(playerid,policeLast[playerid], 2);
    PlayerTextDrawLetterSize(playerid,policeLast[playerid], 0.330000, 1.399999);
    PlayerTextDrawColor(playerid,policeLast[playerid], 255);
    PlayerTextDrawSetOutline(playerid,policeLast[playerid], 0);
    PlayerTextDrawSetProportional(playerid,policeLast[playerid], 1);
    PlayerTextDrawSetShadow(playerid,policeLast[playerid], 0);
    print("OnPlayerConnect - Debug 45");
    skin_info[playerid] = CreatePlayerTextDraw(playerid,443.000000, 308.000000, "Skin-ID: -~n~Verwendet: -");
    PlayerTextDrawBackgroundColor(playerid,skin_info[playerid], 255);
    PlayerTextDrawFont(playerid,skin_info[playerid], 1);
    PlayerTextDrawLetterSize(playerid,skin_info[playerid], 0.320000, 1.100000);
    PlayerTextDrawColor(playerid,skin_info[playerid], -1);
    PlayerTextDrawSetOutline(playerid,skin_info[playerid], 0);
    PlayerTextDrawSetProportional(playerid,skin_info[playerid], 1);
    PlayerTextDrawSetShadow(playerid,skin_info[playerid], 1);
    PlayerTextDrawUseBox(playerid,skin_info[playerid], 1);
    PlayerTextDrawBoxColor(playerid,skin_info[playerid], 155);
    PlayerTextDrawTextSize(playerid,skin_info[playerid], 536.000000, 8.000000);
    print("OnPlayerConnect - Debug 46");
    Awardtext[playerid] = CreatePlayerTextDraw(playerid,492.000000, 2.000000, "Award erhalten~n~~r~Ein Auto!");
    PlayerTextDrawBackgroundColor(playerid,Awardtext[playerid], 255);
    PlayerTextDrawFont(playerid,Awardtext[playerid], 1);
    PlayerTextDrawLetterSize(playerid,Awardtext[playerid], 0.400000, 1.200000);
    PlayerTextDrawColor(playerid,Awardtext[playerid], -1);
    PlayerTextDrawSetOutline(playerid,Awardtext[playerid], 0);
    PlayerTextDrawSetProportional(playerid,Awardtext[playerid], 1);
    PlayerTextDrawSetShadow(playerid,Awardtext[playerid], 1);
    PlayerTextDrawUseBox(playerid,Awardtext[playerid], 1);
    PlayerTextDrawBoxColor(playerid,Awardtext[playerid], 255);
    PlayerTextDrawTextSize(playerid,Awardtext[playerid], 660.000000, -197.000000);
    print("OnPlayerConnect - Debug 47");
    Bombtext[playerid] = CreatePlayerTextDraw(playerid,18.000000, 123.000000, "256 Sekunden");
    PlayerTextDrawBackgroundColor(playerid,Bombtext[playerid], 255);
    PlayerTextDrawFont(playerid,Bombtext[playerid], 1);
    PlayerTextDrawLetterSize(playerid,Bombtext[playerid], 0.500000, 1.300000);
    PlayerTextDrawColor(playerid,Bombtext[playerid], -1);
    PlayerTextDrawSetOutline(playerid,Bombtext[playerid], 0);
    PlayerTextDrawSetProportional(playerid,Bombtext[playerid], 1);
    PlayerTextDrawSetShadow(playerid,Bombtext[playerid], 1);
    PlayerTextDrawUseBox(playerid,Bombtext[playerid], 1);
    PlayerTextDrawBoxColor(playerid,Bombtext[playerid], 200);
    PlayerTextDrawTextSize(playerid,Bombtext[playerid], 145.000000, 0.000000);
    print("OnPlayerConnect - Debug 48");
    Markttext[playerid] = CreatePlayerTextDraw(playerid,30.000000, 153.000000, "~n~ ~w~Model: ~r~Country Rifle ~n~ ~w~Preis: ~r~1500$ ~n~ ~w~/buy ~n~");
    PlayerTextDrawBackgroundColor(playerid,Markttext[playerid], 255);
    PlayerTextDrawFont(playerid,Markttext[playerid], 1);
    PlayerTextDrawLetterSize(playerid,Markttext[playerid], 0.430000, 1.400000);
    PlayerTextDrawColor(playerid,Markttext[playerid], -1);
    PlayerTextDrawSetOutline(playerid,Markttext[playerid], 0);
    PlayerTextDrawSetProportional(playerid,Markttext[playerid], 1);
    PlayerTextDrawSetShadow(playerid,Markttext[playerid], 1);
    PlayerTextDrawUseBox(playerid,Markttext[playerid], 1);
    PlayerTextDrawBoxColor(playerid,Markttext[playerid], 255);
    PlayerTextDrawTextSize(playerid,Markttext[playerid], 191.000000, 10.000000);
    print("OnPlayerConnect - Debug 49");
    TT_0[playerid] = CreatePlayerTextDraw(playerid,500.000000, 403.000000, "100km/h");
    PlayerTextDrawBackgroundColor(playerid,TT_0[playerid], 255);
    PlayerTextDrawFont(playerid,TT_0[playerid], 1);
    PlayerTextDrawLetterSize(playerid,TT_0[playerid], 0.239999, 1.399999);
    PlayerTextDrawColor(playerid,TT_0[playerid], -1);
    PlayerTextDrawSetOutline(playerid,TT_0[playerid], 0);
    PlayerTextDrawSetProportional(playerid,TT_0[playerid], 1);
    PlayerTextDrawSetShadow(playerid,TT_0[playerid], 0);
    print("OnPlayerConnect - Debug 41");
    TT_3[playerid] = CreatePlayerTextDraw(playerid,596.000000, 404.000000, "1000km");
    PlayerTextDrawBackgroundColor(playerid,TT_3[playerid], 255);
    PlayerTextDrawFont(playerid,TT_3[playerid], 1);
    PlayerTextDrawLetterSize(playerid,TT_3[playerid], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,TT_3[playerid], -1);
    PlayerTextDrawSetOutline(playerid,TT_3[playerid], 0);
    PlayerTextDrawSetProportional(playerid,TT_3[playerid], 1);
    PlayerTextDrawSetShadow(playerid,TT_3[playerid], 0);
    print("OnPlayerConnect - Debug 42");
    MT[playerid][0] = CreatePlayerTextDraw(playerid,141.000000, 436.000000, "__");
    PlayerTextDrawBackgroundColor(playerid,MT[playerid][0], 255);
    PlayerTextDrawFont(playerid,MT[playerid][0], 1);
    PlayerTextDrawLetterSize(playerid,MT[playerid][0], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,MT[playerid][0], -1);
    PlayerTextDrawSetOutline(playerid,MT[playerid][0], 0);
    PlayerTextDrawSetProportional(playerid,MT[playerid][0], 1);
    PlayerTextDrawSetShadow(playerid,MT[playerid][0], 0);
    PlayerTextDrawShow(playerid,MT[playerid][0]);
    print("OnPlayerConnect - Debug 43");
    MT[playerid][1] = CreatePlayerTextDraw(playerid,300.000000, 436.000000, "__");
    PlayerTextDrawBackgroundColor(playerid,MT[playerid][1], 255);
    PlayerTextDrawFont(playerid,MT[playerid][1], 1);
    PlayerTextDrawLetterSize(playerid,MT[playerid][1], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,MT[playerid][1], -1);
    PlayerTextDrawSetOutline(playerid,MT[playerid][1], 0);
    PlayerTextDrawSetProportional(playerid,MT[playerid][1], 1);
    PlayerTextDrawSetShadow(playerid,MT[playerid][1], 0);
    PlayerTextDrawShow(playerid,MT[playerid][1]);
    print("OnPlayerConnect - Debug 44");
    MT[playerid][2] = CreatePlayerTextDraw(playerid,460.000000, 436.000000, "__");
    PlayerTextDrawBackgroundColor(playerid,MT[playerid][2], 255);
    PlayerTextDrawFont(playerid,MT[playerid][2], 1);
    PlayerTextDrawLetterSize(playerid,MT[playerid][2], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,MT[playerid][2], -1);
    PlayerTextDrawSetOutline(playerid,MT[playerid][2], 0);
    PlayerTextDrawSetProportional(playerid,MT[playerid][2], 1);
    PlayerTextDrawSetShadow(playerid,MT[playerid][2], 0);
    PlayerTextDrawShow(playerid,MT[playerid][2]);
    print("OnPlayerConnect - Debug 45");

    TT_1[playerid] = CreatePlayerTextDraw(playerid,595.000000, 419.000000, "100%");
    PlayerTextDrawAlignment(playerid,TT_1[playerid], 2);
    PlayerTextDrawBackgroundColor(playerid,TT_1[playerid], 255);
    PlayerTextDrawFont(playerid,TT_1[playerid], 1);
    PlayerTextDrawLetterSize(playerid,TT_1[playerid], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,TT_1[playerid], -1);
    PlayerTextDrawSetOutline(playerid,TT_1[playerid], 0);
    PlayerTextDrawSetProportional(playerid,TT_1[playerid], 1);
    PlayerTextDrawSetShadow(playerid,TT_1[playerid], 0);
    PlayerTextDrawUseBox(playerid,TT_1[playerid], 1);
    PlayerTextDrawBoxColor(playerid,TT_1[playerid], 6553855);
    PlayerTextDrawTextSize(playerid,TT_1[playerid], 3.000000, 80.000000);
    print("OnPlayerConnect - Debug 46");
    TT_2[playerid] = CreatePlayerTextDraw(playerid,500.000000, 419.000000, "Uranus");
    PlayerTextDrawBackgroundColor(playerid,TT_2[playerid], 255);
    PlayerTextDrawFont(playerid,TT_2[playerid], 1);
    PlayerTextDrawLetterSize(playerid,TT_2[playerid], 0.200000, 0.899999);
    PlayerTextDrawColor(playerid,TT_2[playerid], -1);
    PlayerTextDrawSetOutline(playerid,TT_2[playerid], 0);
    PlayerTextDrawSetProportional(playerid,TT_2[playerid], 1);
    PlayerTextDrawSetShadow(playerid,TT_2[playerid], 0);
    print("OnPlayerConnect - Debug 47");

    RCP[playerid] = CreatePlayerTextDraw(playerid,20.000000, 151.000000, "Checkpoints: 0/0");
    PlayerTextDrawBackgroundColor(playerid,RCP[playerid], 255);
    PlayerTextDrawFont(playerid,RCP[playerid], 1);
    PlayerTextDrawLetterSize(playerid,RCP[playerid], 0.400000, 2.099999);
    PlayerTextDrawColor(playerid,RCP[playerid], -1);
    PlayerTextDrawSetOutline(playerid,RCP[playerid], 0);
    PlayerTextDrawSetProportional(playerid,RCP[playerid], 1);
    PlayerTextDrawSetShadow(playerid,RCP[playerid], 1);
    print("OnPlayerConnect - Debug 48");
    /*RP[playerid] = CreatePlayerTextDraw(playerid,20.000000, 176.000000, "Position: 0/0");
    PlayerTextDrawBackgroundColor(playerid,RP[playerid], 255);
    PlayerTextDrawFont(playerid,RP[playerid], 1);
    PlayerTextDrawLetterSize(playerid,RP[playerid], 0.400000, 2.099999);
    PlayerTextDrawColor(playerid,RP[playerid], -1);
    PlayerTextDrawSetOutline(playerid,RP[playerid], 0);
    PlayerTextDrawSetProportional(playerid,RP[playerid], 1);
    PlayerTextDrawSetShadow(playerid,RP[playerid], 1);*/
    if(IsPlayerNPC(playerid)) return 1;
    print("OnPlayerConnect - Debug 05");
    //SpeedTimer[playerid]=SetTimerEx("Updating",1000,1,"i",playerid);

    SetPVarFloat(playerid, "SkinBayX", 0.0);
    SetPVarFloat(playerid, "SkinBayY", 0.0);
    SetPVarFloat(playerid, "SkinBayZ", 0.0);
    SetPVarFloat(playerid, "SkinBayA", 0.0);
    SetPVarInt(playerid,"Virtual",0);
    SetPVarInt(playerid,"Interior",0);
    SetPVarInt(playerid, "SkinBayCurrentSkin", 0);
    SetPVarInt(playerid, "SkinBaySwitching", 0);
    SetPVarInt(playerid, "SkinBayOldSkin", 0);
    SetPVarFloat(playerid, "SkinBayX2", 0.0);
    SetPVarFloat(playerid, "SkinBayY2", 0.0);
    SetPVarFloat(playerid, "SkinBayZ2", 0.0);
    SetPVarFloat(playerid, "SkinBayA2", 0.0);
    SetPVarInt(playerid, "SkinBayCurrentSkin2", 0);
    SetPVarInt(playerid, "SkinBaySwitching2", 0);
    SetPVarInt(playerid, "SkinBayOldSkin2", 0);


    SetTimerEx("skipscreen",200,false,"d",playerid);


    gettime(hour2, minute2);
    SetPlayerTime(playerid,hour2,minute2);

    print("OnPlayerConnect - Debug 06");
    SetPlayerScore(playerid,1);
    DisablePlayerCheckpoint(playerid);


    TextDrawShowForPlayer(playerid,test);
    TextDrawHideForPlayer(playerid,Tankbox);
    TextDrawHideForPlayer(playerid,Tankbox2);
    //SetPlayerHealth(playerid,100);
    printf("OnPlayerconect (%s) dauert %ims",SpielerName(playerid),GetTickCount()-now_time);
    return 1;


    }

    Hier könnte ein Nazi hängen.
    Der Fuchs ist schlau und stellt sich dumm. Beim Fascho ist das andersrum.

    Einmal editiert, zuletzt von iPower () aus folgendem Grund: OnPlayerconnect

  • Die Textdraws haben ( denke ich ) nichts mit dem Login zu tun.
    Such
    "Register"


    Lg

  • public Registrieren(playerid,key[])
    {
    //new data[256];
    SpielerInfo[playerid][Level]=2;
    //SpielerInfo[playerid][Geld]+=2000;
    GibGeld(playerid,2000);
    //SpielerInfo[playerid][drivingskill]=1; (STANDART!)
    SpielerInfo[playerid][drivingskill]=25; // by Alex geändert um alle fahren zu können!
    SetPVarInt(playerid,"lasthaus",-1);
    //new query[256];
    format(query,sizeof(query),"SELECT Name FROM user WHERE Name='%s'",SpielerName(playerid));
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows()==1)
    {
    SendClientMessage(playerid,COLOR_WHITE, "Fehler: Es ist ein Fehler bei der Registrierung aufgetreten.");
    Kick(playerid);
    mysql_free_result();
    return 1;
    }
    else
    {
    mysql_free_result();
    mysql_real_escape_string(key,key);
    format(query,sizeof(query),"INSERT INTO user (Name,Passwort,Level,Geld,rented,drivingskill,partner,Jail,regtime) VALUES ('%s','%s','%i','%i','%i','%i','Niemand','-1','%i')",SpielerName(playerid),key,1,2000,-1,1,gettime());
    mysql_query(query);
    mysql_free_result();
    SpielerInfo[playerid][Eingeloggt] = 1;
    SendClientMessage(playerid,LichtGruen,"Du wurdest automatisch eingeloggt");
    //new string[128];
    format(string,sizeof(string),"[Automatisch Einloggen]%s wurde automatisch eingeloggt.",SpielerName(playerid));
    print(string);
    }
    mysql_free_result();
    format(query,sizeof(query),"SELECT id FROM user WHERE Name='%s'",SpielerName(playerid));
    mysql_query(query);
    mysql_store_result();
    mysql_fetch_field("id",data);
    new dbid=strval(data);
    mysql_free_result();
    new d_y,d_m,d_d;
    getdate(d_y,d_m,d_d);
    new Htemp[128];
    format(Htemp,sizeof(Htemp),"%02d%i",d_d,dbid);
    print(Htemp);
    SpielerInfo[playerid][HIN] = strval(Htemp);
    format(query,sizeof(query),"UPDATE user SET HIN='%s',lastplayed='%i' WHERE Name='%s'",Htemp,gettime(),SpielerName(playerid));
    mysql_query(query);
    mysql_free_result();
    //new string[128];
    format(string,sizeof(string),"[Registrierung]%s hat die Datei fürs Handy erstellt",SpielerName(playerid));
    print(string);
    SpielerInfo[playerid][rented]=-1;
    SpielerInfo[playerid][fskill]=1;
    strmid(SpielerInfo[playerid][guser],"Niemand",0,MAX_PLAYER_NAME,MAX_PLAYER_NAME);
    format(SpielerInfo[playerid][partner],64,"Niemand");
    registrierung[playerid]=1;
    PutPlayerInVehicle(playerid,1,1);
    format(string,sizeof(string),"[Registrierung]%s hat sich Registriert.",SpielerName(playerid));
    print(string);
    SendAdminMessage(COLOR_BLUE,string);
    saveLogin(playerid);
    SetSpawnInfo(playerid,0,0,0,0,0,0,0,0,0,0,0,0);
    SpawnPlayer(playerid);
    return 0;
    }

    Hier könnte ein Nazi hängen.
    Der Fuchs ist schlau und stellt sich dumm. Beim Fascho ist das andersrum.

    Einmal editiert, zuletzt von iPower ()

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen