Beiträge von Sony

    if(dialogid == 2)
    {
    if(!eingeloggt[playerid])
    {
    if(response == 0)
    {
    SendClientMessage(playerid,0x33AA33AA, "Du wurdest gekickt Grund: Nicht eingeloggt!");
    Kick(playerid);
    return 1;
    }
    if(!strlen(inputtext))
    {
    new girismsg[256];
    format(girismsg,256,"Willkommen auf unserm server \n\n%s bitte Logge dich ein!\n\nGib dein Passwort ein:",name);
    ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Login",girismsg,"Login","Abrrechen");
    return 1;
    }
    format(s,sizeof(s),"acc/%s.ini",name);
    if(dini_Exists(s))
    {
    s2=dini_Get(s,"passwort");
    if(udb_hash(inputtext)==strval(s2))
    {
    eingeloggt[playerid]=1;
    ResetPlayerMoney(playerid);
    money[playerid]=0;
    GivePlayerEuro(playerid,dini_Int(s,"geld"));
    SetPlayerScore(playerid,dini_Int(s,"score"));
    }
    if(udb_hash(inputtext)!=strval(s2)) {
    new girismsg[256];
    format(girismsg,256,"Willkommen auf dem server \n\n%s bitte Logge dich ein!\n\nGib dein Passwort ein:",name);
    ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Login",girismsg,"Login","Abrrechen");
    return 1;
    }
    }
    }
    return 1;
    }
    if(dialogid == 1)
    {
    if(!eingeloggt[playerid])
    {
    if(response == 0)
    {
    SendClientMessage(playerid,0x33AA33AA, "Du wurdest gekickt Grund: Nicht Regestriert!");
    Kick(playerid);
    return 1;
    }
    if(!strlen(inputtext))
    {
    new kayitmsg[256];
    format(kayitmsg,256,"Willkommen auf dem server \n\n%s bitte Registrier dich!\n\nGib dein gewünschtes Passwort ein:",name);
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Register",kayitmsg,"Regestrieren","Abbrechen");
    return 1;
    }
    format(s,sizeof(s),"acc/%s.ini",name);
    if(!dini_Exists(s))
    {
    dini_Create(s);
    dini_IntSet(s,"passwort",udb_hash(inputtext));
    dini_IntSet(s,"score",GetPlayerScore(playerid));
    dini_IntSet(s,"geld",startgeld);
    dini_FloatSet(s,"x",spawn[0]);
    dini_FloatSet(s,"y",spawn[1]);
    dini_FloatSet(s,"z",spawn[2]);
    dini_FloatSet(s,"a",spawn[3]);
    dini_IntSet(s,"inte",interior);
    dini_IntSet(s,"skin",startskin);
    dini_IntSet(s,"admin",0);
    dini_IntSet(s,"job",0);
    dini_FloatSet(s,"armour",0);
    dini_FloatSet(s,"health",100);
    dini_IntSet(s,"to",0);
    dini_FloatSet(s,"tx",0);
    dini_FloatSet(s,"ty",0);
    dini_FloatSet(s,"tz",0);
    dini_IntSet(s,"ta",0);
    dini_IntSet(s,"tskin",0);
    dini_IntSet(s,"tinte",0);
    dini_IntSet(s,"LSPD",0);
    dini_IntSet(s,"SFPD",0);
    dini_IntSet(s,"ADAC",0);
    dini_IntSet(s,"Vagos",0);
    dini_IntSet(s,"Grovestreet",0);
    dini_IntSet(s,"LCN",0);
    dini_IntSet(s,"Terror",0);
    dini_IntSet(s,"Chaos",0);
    dini_IntSet(s,"Ballas",0);
    dini_IntSet(s,"Hellsangels",0);
    dini_IntSet(s,"Yakuza",0);
    dini_IntSet(s,"FastForious",0);
    dini_IntSet(s,"LVPD",0);
    dini_IntSet(s,"Waffendealer",0);
    dini_IntSet(s,"Sek",0);
    dini_IntSet(s,"Hitman",0);
    dini_IntSet(s,"LSFahrlehrer",0);
    dini_IntSet(s,"SFFahrlehrer",0);
    dini_IntSet(s,"LVFahrlehrer",0);
    dini_IntSet(s,"Bundeswehr",0);
    dini_IntSet(s,"Limosinendienstls",0);
    dini_IntSet(s,"Limosinendienstsf",0);
    dini_IntSet(s,"Limosinendienstlv",0);
    dini_IntSet(s,"Medicls",0);
    dini_IntSet(s,"Medicsf",0);
    dini_IntSet(s,"Mediclv",0);
    dini_IntSet(s,"Taxils",0);
    dini_IntSet(s,"Taxisf",0);
    dini_IntSet(s,"Taxilv",0);
    dini_IntSet(s,"oilcompany",0);
    dini_IntSet(s,"NewsReporter",0);
    dini_IntSet(s,"mull",0);
    dini_IntSet(s,"asave",0);
    dini_IntSet(s,"alc",0);
    new girismsg[256];
    format(girismsg,256,"Willkommen auf dem server \n\n%s bitte Logge dich ein!\n\nGib dein Passwort ein:",name);
    ShowPlayerDialog(playerid,2,DIALOG_STYLE_INPUT,"Login",girismsg,"Login","Abrrechen");
    return 1;
    }
    }
    return 1;
    }


    versuch des mal so

    if(strcmp(strget(cmdtext,0), "/adminmachen", true) == 0)
    {
    new adminrankid = strval(strget(cmdtext,2));
    new string[128];
    if(gAdmin[playerid]==4)
    {
    tmp = strtok(cmdtext, idx);
    if(adminrankid==0)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "Nutze /adminmachen [SpielerID] [1-4]");
    return 1;
    }
    gAdmin[ziel]=adminrankid;
    format(string, sizeof(string), "Du bist jetzt ein Admin Lvl %i! Freu Dich!", adminrankid);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du bist kein Admin oder dein Rang ist nicht hoch genug.");
    }
    return 1;
    }


    versuch mal etz

    if(strcmp(strget(cmdtext,0), "/adminmachen", true) == 0)
    {
    new adminrankid = strval(strget(cmdtext,2));
    new string[128];
    if(gAdmin[playerid]==4)
    {
    tmp = strtok(cmdtext, idx);
    if(adminrankid==0)
    {
    SendClientMessage(playerid, COLOR_YELLOW, "Nutze /adminmachen [SpielerID] [1-4]");
    return 1;
    }
    gAdmin[ziel]=adminrankid;
    format(string, sizeof(string), "Du bist jetzt ein Admin Lvl %i! Freu Dich!", adminrankid);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, "Du bist kein Admin oder dein Rang ist nicht hoch genug.");
    return 1;
    }
    versuch des mal so

    zum ersten hier


    if(strcmp(cmd, "/credits", true) == 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Tomi|| McKey Hoster");
    SendClientMessage(playerid,COLOR_RED,"Main Admin: Applesouce");
    SendClientMessage(playerid,COLOR_RED,"Main Admin: Nonooby");
    }



    if(strcmp(cmd, "/serveradmin", true) == 0)
    {
    SendClientMessage(playerid,COLOR_RED,"Applescouce");
    SendClientMessage(playerid,COLOR_RED,"Nonooby");
    SendClientMessage(playerid,COLOR_RED,"Mns");
    }


    PS:hier sry weis net wie COLOR_RED defieniert ist.


    Mfg Sony

    nein muss man nicht


    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == DIALOG_INTERNET)
    {
    if (response)
    {
    if(listitem == 0)
    {
    ShowPlayerDialog(playerid,DIALOG_NAVI,DIALOG_STYLE_LIST,"Navigation","Das LSPD\nDie Bank in Los Santos\nDer 24-7 Shop\nDer Burger Shot North\nDas weisse Haus\nDie Fahrschule\nDie San News\nDas Autohaus in San Fierro\nDas Autohaus in Los Santos","Finden","Abbrechen");
    }
    }
    if(dialogid == DIALOG_NAVI) //2
    {
    if (response)
    {
    if(listitem == 0)
    {
    SetPlayerCheckpoint(playerid,1541.5636,-1675.8802,13.5528,8.0);
    }
    if(listitem == 1)
    {
    SetPlayerCheckpoint(playerid,1462.9039,-1024.5330,23.8281,8.0);
    }
    if(listitem == 2)
    {
    SetPlayerCheckpoint(playerid,1316.2988,-906.9061,38.2894,8.0);
    }
    if(listitem == 3)
    {
    SetPlayerCheckpoint(playerid,1215.0150,-923.8190,42.9250,8.0);
    }
    if(listitem == 4)
    {
    SetPlayerCheckpoint(playerid,1242.3042,-2037.2800,60.0683,8.0);
    }
    if(listitem == 5)
    {
    SetPlayerCheckpoint(playerid,-2027.0710,-95.2950,35.1641,8.0);
    }
    if(listitem == 6)
    {
    SetPlayerCheckpoint(playerid,-2034.9650,473.8380,35.1723,8.0);
    }
    if(listitem == 7)
    {
    SetPlayerCheckpoint(playerid,-1644.0436,1213.4722,7.1797,8.0);
    }
    if(listitem == 8)
    {
    SetPlayerCheckpoint(playerid,771.4358,-1348.7216,13.5249,8.0);
    }
    }
    }
    return 1;
    }


    hier mach des mal so müsste gehen

    if(strcmp(cmdtext, "/sfopen", true)==0)
    {
    SetObjectRot(LSSFgate1, 50.7529296875, -1535.5576171875, 4.7799768447876,4);
    return 1;
    }


    if(strcmp(cmdtext, "/sfclose", true)==0)
    {
    SetObjectRot(LSSFgate1, 50.7529296875, -1535.5576171875, 4.7799768447876,4);
    return 1;
    }



    if(strcmp(cmdtext, "/lsopen", true)==0)
    {
    SetObjectRot(LSSFgate2, 51.33805847168, -1527.3518066406, 4.75634765625 ,4);
    return 1;
    }


    if(strcmp(cmdtext, "/lsclose", true)==0)
    {
    SetObjectRot(LSSFgate2, 51.33805847168, -1527.3518066406, 4.75634765625,4);
    return 1;
    }


    versuch des mal so hab noch nie mit SetObjectRot was gemacht also kan sein das es nicht geht!