Jump to content

VipBo$$

Membru
  • Posts

    130
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by VipBo$$

  1. Pai ai definit dialogul  6267 si l-ai facut?

     

     

    Ex: #define DIALOG_6267  cu numarul 3/ tu pui acel numar diferit de toate, adica daca ai dialoguri definite pana la nr 236, tu pui 237.

    Si al doilea pas:

    if(dialogid == DIALOG_PCOLOR)
        {
            if(response)
            {
                switch(listitem)
                {
                    case 0:
                    {
                        PremiumColor[playerid] =  0;
                        SendClientMessage(playerid, COLOR_WHITE,"LimitCs: Culoarea numelui a fost schimbata. Speram sa iti placa noua culoare!");
                    }
                    case 1:
                    {
                        PremiumColor[playerid] =  1;
                        SendClientMessage(playerid, COLOR_WHITE,"{0087FE}LimitCs:{FFFFFF} Culoarea numelui a fost schimbata. Speram sa iti placa noua culoare!");
                    }
                    case 2:
                    {
                        PremiumColor[playerid] =  2;
                        SendClientMessage(playerid, COLOR_WHITE,"{EBFF00}LimitCs:{FFFFFF} Culoarea numelui a fost schimbata. Speram sa iti placa noua culoare!");
                    }
                }
            }
        }

    Tu continui cu case x: , case y: , case z: ,  continui cu casele cate culori ai tu la /pcolor, daca ai 10culori faci pana la case: 10: , etc...
    Eu am incercat sa te ajut, daca intelegi e bine, daca nu e rau :)).

     

    EDIT: Si la /vipname te-ai dat admin 6?, ca fara admin 6 vad ca nu functioneaza comanda.

     

  2.                 case pZONEux:
                    {
                        mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `zoneon`='%d' WHERE `name`= '%s'", HUD_ZoneIndicator[playerid], PlayerInfo[playerid][pNormalName]);
                        mysql_tquery(SQL,var,"","");
                    }

    SAU

                    case pZONEux:
                    {
                        mysql_format(SQL, var, sizeof(var), "UPDATE `users` SET `zoneon`='%d' WHERE `name`= '%s'", PlayerInfo[playerid][pZONEu], PlayerInfo[playerid][pNormalName]);
                        mysql_tquery(SQL,var,"","");
                    }

  3. La 16.01.2018 la 16:42, Marlboro a spus:

    Cu drq sa fie facut doar pentru acel gm facut sistemul =)) Te auzi ce zici ?

    Omule m-am referit ca e facut pe principiul de gandire a sistemelor, unele sunt scrise altfel dar fac aceiasi functie si nu merg pe toate gm-urile.

    Si mai jos am zis clar " voi daca stiti sa il editati, mult succes va doresc. ", am zis asta pe principiul ca pe alte gm-uri da mai multe erori si trb editat exact pentru a merge si pe acel gm.

    Nu mai critica omul daca nu sti sa intelegi ceva.Nu vr sa te jignesc, ca iti ziceam vre-o doua, degeaba mare scripter, nu stii sa folosesti creierul ala al tau inteleligent.

  4. Salutare, astăzi m-am gândit să postez sistemul de accesori original al lui Edison.

    DOWNLOAD: http://www.girlshare.ro/3490015950.3

    VIRUS-TOTAL: https://www.virustotal.com/#/file/0f5b9ddbe03f16d2f44f3e1eedda0103c0f596adfdc9a400137d2f02c5105448/detection

    PREZENTARE:

    Creditele nu imi apartin mie, cii lui Edison.

    Multumesc de intelegere, va pwp. #NOHOMO :))

    ATENTIE accest sistem este facut exact doar pentru gm-ul BURNED, voi daca stiti sa il editati, mult succes va doresc.

    • Thanks 2
  5. La eroarea ta zice asa:

    MySQL said: Documentation
    #1115 - Unknown character set: 'utf8mb4'

    Pe romana:


    MySQL a spus: Documentația
    # 1115 - set de caractere necunoscute: 'utf8mb4'

    Adica nu cunoaste functia: 'utf8mb4'

    Eu asa zic, daca nu iti merge, asteapta raspuns de la ce-i mai experti.

    • Upvote 1
  6. Salut, imi poate face cineva aceste comenzi sa ruleze pe un gm sql, intelegeti voi la ce ma refer.

    Am incercat eu sa fac ceva dar nu a mers, asa ca poate stiti voi.

    Vreau sa fie ceva gen CMD:vote(playerid, params[]) etc...

     

    enum e_votacao
    {
        bool:iniciada,
        sim,
        nao,
        totalo
    }
    new votacao[e_votacao];
    new votou[MAX_PLAYERS];

     

    public OnPlayerCommandText(playerid, cmdtext[])
    {
        dcmd(specplayer, 10, cmdtext);
        dcmd(specoff, 7, cmdtext);
        dcmd(racehelp,8,cmdtext);
        dcmd(raceadminhelp,13,cmdtext);
        dcmd(buildhelp,9,cmdtext);
        dcmd(buildrace,9,cmdtext);
        dcmd(cp,2,cmdtext);
        dcmd(scp,3,cmdtext);
        dcmd(rcp,3,cmdtext);
        dcmd(mcp,3,cmdtext);
        dcmd(dcp,3,cmdtext);
        dcmd(clearrace,9,cmdtext);
        dcmd(editrace,8,cmdtext);
        dcmd(saverace,8,cmdtext);
        dcmd(setlaps,7,cmdtext);
        dcmd(racemode,8,cmdtext);
        dcmd(loadrace,8,cmdtext);
        dcmd(startrace,9,cmdtext);
        dcmd(join,4,cmdtext);
        dcmd(leave,5,cmdtext);
        dcmd(endrace,7,cmdtext);
        dcmd(ready,5,cmdtext);
        dcmd(bestlap,7,cmdtext);
        dcmd(bestrace,8,cmdtext);
        dcmd(deleterace,10,cmdtext);
        dcmd(airrace,7,cmdtext);
        dcmd(cpsize,6,cmdtext);
        dcmd(prizemode,9,cmdtext);
        //dcmd(setprize,8,cmdtext);
        #if defined MENUSYSTEM
        dcmd(raceadmin,9,cmdtext);
        dcmd(buildmenu,9,cmdtext);
        #endif
        new string[350];
        new string1[256];
        new playermoney;
        new sendername[MAX_PLAYER_NAME];
        new giveplayer[MAX_PLAYER_NAME];
        new playername[MAX_PLAYER_NAME];
        new cmd[256];
        new tmp[256], tmp2[256];
        new giveplayerid, moneys, idx;
        new idcar = GetPlayerVehicleID(playerid);
        cmd = strtok(cmdtext, idx);

        if(strcmp(cmd, "/vote", true) == 0)
        {
            if(PlayerInfo[playerid][pAdmin] >= 1337)
            {
                if(!votacao[iniciada])
                {
                        if(!strlen(cmdtext[6]))
                        return SendClientMessage(playerid,COLOR_WHITE, "SCRIE: /vote [intrebarea]");
                    SendClientMessageToAll(COLOR_ORANGE,"====================================");
                    format(string, sizeof string, "Voteaza: %s?", cmdtext[6]);
                    SendClientMessageToAll(TEAM_GROVE_COLOR, string);
                    SendClientMessageToAll(COLOR_ORANGE,"    ");
                    SendClientMessageToAll(COLOR_ORANGE,"Voteaza:");
                    SendClientMessageToAll(COLOR_VERDEMEDIO, "/da - esti de acord");
                    SendClientMessageToAll(COLOR_VERDEMEDIO, "/nu - nu esti de acord");
                    SendClientMessageToAll(COLOR_ORANGE,"====================================");
                    votacao[iniciada] = true;
                    votacao[sim] = 0;
                    votacao[nao] = 0;
                    GameTextForAll("~w~~r~START~b~ VOT!",6000,3);
                    GetPlayerName(playerid, sendername, sizeof(sendername));
                    format(string, sizeof(string), "%s a pornit votul.", sendername);
                    ABroadCast(COLOR_YELLOW,string,1);
                    for(new i; i <MAX_PLAYERS; i++)
                    {
                        votou = false;
                    }
                } else {
                    SendClientMessage(playerid,COLOR_WHITE,"Este deja un vot in desfasurare!");
                }
            } else {
                SendClientMessage(playerid,COLOR_WHITE,"Nu ai acces la aceasta comanda.");
            }
            return 1;
        }
        if(strcmp(cmd, "/da", true) == 0)
        {
            if(votacao[iniciada] && !votou[playerid])
            {
                SendClientMessage(playerid,COLOR_ORANGE, "Votul tau a fost inregistrat.");
                votacao[sim]++;
                votacao[totalo]++;
                votou[playerid] = true;
                return 1;
            }
            return 0;
        }
        if(strcmp(cmd, "/nu", true) == 0)
        {
            if(votacao[iniciada] && !votou[playerid])
            {
                SendClientMessage(playerid,COLOR_ORANGE, "Votul tau a fost inregistrat.");
                votacao[nao]++;
                votacao[totalo]++;
                votou[playerid] = true;
                return 1;
            }
            return 0;
        }
        if(strcmp(cmd, "/stopvote", true) == 0)
        {
            if(PlayerInfo[playerid][pAdmin] >= 1337)
            {
                if(votacao[iniciada])
                {
                    SendClientMessageToAll(COLOR_ORANGE,"====================================");
                    SendClientMessageToAll(COLOR_ORANGE, "Votul s-a terminat");
                    format(string, sizeof string, "%d jucatori au votat pentru da.", votacao[sim]);
                    SendClientMessageToAll(COLOR_VERDEMEDIO,string);
                    format(string, sizeof string, "%d jucatori au votat pentru nu.", votacao[nao]);
                    SendClientMessageToAll(COLOR_VERDEMEDIO, string);
                    format(string, sizeof string, "S-au inregistrat %d voturi",votacao[totalo]);
                    SendClientMessageToAll(COLOR_WHITE, string);
                    if(votacao[sim] == votacao[nao])
                    {
                        SendClientMessageToAll(COLOR_REDAPRINS, "Egalitate !");
                    } else if(votacao[sim] > votacao[nao])
                    {
                        SendClientMessageToAll(COLOR_REDAPRINS, "Cele mai multe voturi au fost pentru: da");
                    } else if(votacao[sim] < votacao[nao])
                    {
                        SendClientMessageToAll(COLOR_REDAPRINS, "Cele mai multe voturi au fost pentru: nu");
                    }
                    SendClientMessageToAll(COLOR_ORANGE,"====================================");
                    GameTextForAll("~r~VOT ~w~~r~ ~b~INCHEIAT!",6000,3);
                    votacao[iniciada] = false;
                    votacao[sim] = 0;
                    votacao[nao] = 0;
                    votacao[totalo] = 0;
                    for(new i; i <MAX_PLAYERS; i++)
                    {
                        votou = false;
                    }
                } else {
                    SendClientMessage(playerid,COLOR_WHITE, "Nu este nici un vot in desfasurare!");
                }
            } else {
                SendClientMessage(playerid,COLOR_WHITE, "Nu ai acces la aceasta comanda.");
            }
            return 1;
        }

  7. Salut as dori si eu un tutorial cu un sistem simplu ceva de genu, doar un inceput, restul fac eu, multumesc frumos.

    PS: Am incercat sa il fac singur dar ma blocam acolo la dialog-ul comenzi de ex:

    CMD:aplicastaff(playerid, params[])
    {
        new stringz2[MAX_STRING],checkmysql[512];
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Nu esti logat.");
        if(PlayerInfo[playerid][pHelper] > 0 || PlayerInfo[playerid][pAdmin] > 0) return SCM(playerid, COLOR_ERROR, "Nu poti accesa aceasta comanda deoarece faci parte din STAFF");
        mysql_format(SQL, checkmysql, sizeof(checkmysql), "SELECT * FROM `users` WHERE `id`='%d' AND `aplicatieh`='0'",PlayerInfo[playerid][pSQLID]);
        new Cache: verificare = mysql_query(SQL, checkmysql);
        if(cache_get_row_count() < 1) return ShowPlayerDialog(playerid, DIALOG_AIAPLICATIEH, DIALOG_STYLE_MSGBOX, "Server: Aplicatie", "Ai deja o aplicatie in STAFF, pentru a putea continua este nevoie sa o stergi.", "Sterge", "Anuleaza");
        cache_delete(verificare);

    Si aici cand vine dialogu nu ma mai pricep + cu dialoguri-le care trb facute.... DIALOG_AIAPLICATIEH, DIALOG_AIAPLICATIIEH, etc...

  8. INCEARCA ASA:

     

     

    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
        new file[256];
        new name[MAX_PLAYER_NAME];
        new Registre[250];
        GetPlayerName(playerid,name,MAX_PLAYER_NAME);
        if(dialogid == RegisterName)
        {
            if(!response) Kick(playerid);
            {
            if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,RegisterName,DIALOG_STYLE_INPUT,"Inregistrare","{FF0000}Parola invalida\n{FFA500}Te rog scrie o parola corecta!","Inregistrare","Iesire");
            format(file,sizeof(file),"%s.cfg", name);
            if(!fexist(file))
            {
                dini_Create(file);
                dini_IntSet(file, "Password", udb_hash(inputtext));
                dini_IntSet(file, "Money", 2500);
                dini_IntSet(file, "Score", 1);
                dini_IntSet(file, "BCR", 1000);
                dini_IntSet(file, "RobSkill", 1);
                dini_IntSet(file, "TerSkill", 1);
                dini_IntSet(file, "Admin", 0);
                dini_IntSet(file, "Warnings", 0);
                dini_IntSet(file, "WantedLevel", 0);
                dini_IntSet(file, "Jail", 0);
                dini_IntSet(file, "RentalOwner", 0);
                dini_IntSet(file, "Drugs", 0);
                dini_IntSet(file, "C4", 0);
                dini_IntSet(file, "Skin", -1);
                dini_IntSet(file, "Level", 0);
                dini_IntSet(file, "PremiumPoints", 0);
                dini_IntSet(file, "Exp", 0);
                format(Registre,sizeof(Registre),"{FFFF00}Multumim pentru inregistrare!\n{FFFF00}Acum trebuie sa te conectezi.",name);
                ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login",Registre,"Conectare","Iesire");
                GameTextForPlayer(playerid, "~r~Registered!", 3000, 1);
            }
            }
        }
        if(dialogid == LoginName)
        {
            if(!response) Kick(playerid);
            {
            GetPlayerName(playerid,name,MAX_PLAYER_NAME);
            if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","parola invalida!\nTe rog scrie-ti parola","Conectare","Iesire");
            format(file,sizeof(file),"%s.cfg", name);
              if(udb_hash(inputtext) != dini_Int(file, "Password")) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","Parola gresita!\nTe rog scrie-ti parola","Conectare","Iesire");
            else
            {
            IsPlayerLogged[playerid] = 1;
             SetPlayerMoney(playerid, dini_Int(file, "Money"));
            SetPlayerScore(playerid, dini_Int(file, "Score"));
            AccountInfo[playerid][aLevel] = dini_Int(file, "Admin");
            AccountInfo[playerid][Level] = dini_Int(file, "Level");
            AccountInfo[playerid][Exp] = dini_Int(file, "Exp");
            AccountInfo[playerid][Warnings] = dini_Int(file, "Warnings");
            AccountInfo[playerid][PremiumPoints] = dini_Int(file, "PremiumPoints");
            PlayerSkin[playerid] = dini_Int(file,"Skin");
            SetPlayerWantedLevel(playerid, dini_Int(file, "WantedLevel"));
            SendClientMessage(playerid, GREY, "Acum esti conectat.");
            GameTextForPlayer(playerid, "~r~Logged In!", 3000, 1);
            }
            }
        }
        if(dialogid == DIALOG_SHOP)
        {
            if(response)
                {
                      if(listitem == 0)
                       {
                        new string1[500],string2[500],string5[2400];
                        format(string1, sizeof(string1), "Jucatorii activi pot primii puncte premium.");
                        format(string2, sizeof(string2), "Cu care se poat cumpara Bani,Admin,level si multe altele.");
                        format(string5, sizeof(string5), "%s\n%s\n\n%s\n%s", string1, string2);
                        ShowPlayerDialog(playerid, DIALOG_SHOP2, DIALOG_STYLE_MSGBOX, "Info", string5, "Close", "");
                    }
                    if(listitem == 2)
                    {
                        if(AccountInfo[playerid][aLevel] > 0)
                        {
                            SendClientMessage(playerid, ERROR, "Esti deja admin.");
                            return 1;
                        }
                        if(AccountInfo[playerid][PremiumPoints] <= 59)
                        {
                            ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 500 de puncte pentru a cumpara admin.", "Close", "");
                            return 1;
                        }
                        AccountInfo[playerid][PremiumPoints] -= 500;
                        AccountInfo[playerid][aLevel] = 1;
                        new strings[200],namef[30];
                        SendClientMessage(playerid, COLOR_YELLOW, "Ai cumparat admin 1!(-500 PP)");
                        GetPlayerName(playerid, namef, sizeof(name));
                        format(strings, sizeof(strings), "/shop: %s a cumparat admin 1.",namef);
                        ABroadCast(COLOR_YELLOW,strings,6);
                    }
                    if(listitem == 6)
                    {
                        if(AccountInfo[playerid][Warnings] <= 0)
                        {
                            SendClientMessage(playerid, COLOR_RED, "Nu au nici-un warn.");
                            return 1;
                        }
                        if(AccountInfo[playerid][PremiumPoints] <= 49)
                        {
                            ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 50 de puncte pentru ati sterge warn-urile.", "Close", "");
                            return 1;
                        }
                        AccountInfo[playerid][PremiumPoints] -= 50;
                        AccountInfo[playerid][Warnings] = 0;
                        new strings[200],namef[30];
                        SendClientMessage(playerid, COLOR_YELLOW, "Ti-ai sters toate warn-urile! (-50 premium points)");
                        GetPlayerName(playerid, namef, sizeof(name));
                        format(strings, sizeof(strings), "/shop: %s si-a sters warningurile.",namef);
                        ABroadCast(COLOR_YELLOW,strings,6);
                        }
                    if(AccountInfo[playerid][PremiumPoints] <= 49)
                    {
                            ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 50 de puncte pentru ati sterge warn-urile.", "Close", "");
                            return 1;
                    }
                    if(listitem == 11)
                    {
                        new strings[256];
                        if(AccountInfo[playerid][PremiumPoints] < 29) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!");
                        AccountInfo[playerid][PremiumPoints] -= 30;
                        GivePlayerMoney(playerid, 300000);
                        SCM(playerid, COLOR_YELLOW, "Ai cumparat $300.000 pentru 1 punct premium.");
                        format(strings, sizeof(strings), "/shop: %s a cumparat 300,000$.",name);
                        ABroadCast(COLOR_YELLOW,strings,6);
                    }
                    if(listitem == 12)
                    {
                        new strings[256];
                        if(AccountInfo[playerid][PremiumPoints] < 49) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!");
                        AccountInfo[playerid][PremiumPoints] -= 50;
                        GivePlayerMoney(playerid, 3000000);
                        SCM(playerid, COLOR_YELLOW, "Ai cumparat $3,000.000 pentru 10 puncte premium.");
                        format(strings, sizeof(strings), "/shop: %s a cumparat 300,000$.",name);
                        ABroadCast(COLOR_YELLOW,strings,6);
                    }
                    if(listitem == 13)
                    {
                        new strings[256];
                        if(AccountInfo[playerid][PremiumPoints] < 89) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!");
                        AccountInfo[playerid][PremiumPoints] -= 90;
                        GivePlayerMoney(playerid, 70000000);
                        SCM(playerid, COLOR_YELLOW, "Ai cumparat $70.000.000 pentru 70 puncte premium.");
                        format(strings, sizeof(strings), "/shop: %s a cumparat 70,000,000$.",name);
                        ABroadCast(COLOR_YELLOW,strings,6);

                    }
                }
            }
        }
        return 1;
    }

  9. Incearca asa:

     

    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
        new file[256];
        new name[MAX_PLAYER_NAME];
        new Registre[250];
        GetPlayerName(playerid,name,MAX_PLAYER_NAME);
        if(dialogid == RegisterName)
        {
            if(!response) Kick(playerid);
            {
            if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,RegisterName,DIALOG_STYLE_INPUT,"Inregistrare","{FF0000}Parola invalida\n{FFA500}Te rog scrie o parola corecta!","Inregistrare","Iesire");
            format(file,sizeof(file),"%s.cfg", name);
            if(!fexist(file))
            {
                dini_Create(file);
                dini_IntSet(file, "Password", udb_hash(inputtext));
                dini_IntSet(file, "Money", 2500);
                dini_IntSet(file, "Score", 1);
                dini_IntSet(file, "BCR", 1000);
                dini_IntSet(file, "RobSkill", 1);
                dini_IntSet(file, "TerSkill", 1);
                dini_IntSet(file, "Admin", 0);
                dini_IntSet(file, "Warnings", 0);
                dini_IntSet(file, "WantedLevel", 0);
                dini_IntSet(file, "Jail", 0);
                dini_IntSet(file, "RentalOwner", 0);
                dini_IntSet(file, "Drugs", 0);
                dini_IntSet(file, "C4", 0);
                dini_IntSet(file, "Skin", -1);
                dini_IntSet(file, "Level", 0);
                dini_IntSet(file, "PremiumPoints", 0);
                dini_IntSet(file, "Exp", 0);
                format(Registre,sizeof(Registre),"{FFFF00}Multumim pentru inregistrare!\n{FFFF00}Acum trebuie sa te conectezi.",name);
                ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login",Registre,"Conectare","Iesire");
                GameTextForPlayer(playerid, "~r~Registered!", 3000, 1);
            }
            }
        }
        if(dialogid == LoginName)
        {
            if(!response) Kick(playerid);
            {
            GetPlayerName(playerid,name,MAX_PLAYER_NAME);
            if(strlen(inputtext) == 0) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","parola invalida!\nTe rog scrie-ti parola","Conectare","Iesire");
            format(file,sizeof(file),"%s.cfg", name);
              if(udb_hash(inputtext) != dini_Int(file, "Password")) return ShowPlayerDialog(playerid,LoginName,DIALOG_STYLE_INPUT,"Login","Parola gresita!\nTe rog scrie-ti parola","Conectare","Iesire");
            else
            {
            IsPlayerLogged[playerid] = 1;
             SetPlayerMoney(playerid, dini_Int(file, "Money"));
            SetPlayerScore(playerid, dini_Int(file, "Score"));
            AccountInfo[playerid][aLevel] = dini_Int(file, "Admin");
            AccountInfo[playerid][Level] = dini_Int(file, "Level");
            AccountInfo[playerid][Exp] = dini_Int(file, "Exp");
            AccountInfo[playerid][Warnings] = dini_Int(file, "Warnings");
            AccountInfo[playerid][PremiumPoints] = dini_Int(file, "PremiumPoints");
            PlayerSkin[playerid] = dini_Int(file,"Skin");
            SetPlayerWantedLevel(playerid, dini_Int(file, "WantedLevel"));
            SendClientMessage(playerid, GREY, "Acum esti conectat.");
            GameTextForPlayer(playerid, "~r~Logged In!", 3000, 1);
            }
            }
        }
        if(dialogid == DIALOG_SHOP)
        {
            if(response)
                {
                      if(listitem == 0)
                       {
                        new string1[500],string2[500],string5[2400];
                        format(string1, sizeof(string1), "Jucatorii activi pot primii puncte premium.");
                        format(string2, sizeof(string2), "Cu care se poat cumpara Bani,Admin,level si multe altele.");
                        format(string5, sizeof(string5), "%s\n%s\n\n%s\n%s", string1, string2);
                        ShowPlayerDialog(playerid, DIALOG_SHOP2, DIALOG_STYLE_MSGBOX, "Info", string5, "Close", "");
                    }
                    if(listitem == 2)
                    {
                        if(AccountInfo[playerid][aLevel] > 0)
                        {
                            SendClientMessage(playerid, ERROR, "Esti deja admin.");
                            return 1;
                        }
                        if(AccountInfo[playerid][PremiumPoints] <= 59)
                        {
                            ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 500 de puncte pentru a cumpara admin.", "Close", "");
                            return 1;
                        }
                        AccountInfo[playerid][PremiumPoints] -= 500;
                        AccountInfo[playerid][aLevel] = 1;
                        new strings[200],namef[30];
                        SendClientMessage(playerid, COLOR_YELLOW, "Ai cumparat admin 1!(-500 PP)");
                        GetPlayerName(playerid, namef, sizeof(name));
                        format(strings, sizeof(strings), "/shop: %s a cumparat admin 1.",namef);
                        ABroadCast(COLOR_YELLOW,strings,6);
                    }
                    if(listitem == 6)
                    {
                        if(AccountInfo[playerid][Warnings] <= 0)
                        {
                            SendClientMessage(playerid, COLOR_RED, "Nu au nici-un warn.");
                            return 1;
                        }
                        if(AccountInfo[playerid][PremiumPoints] <= 49)
                        {
                            ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 50 de puncte pentru ati sterge warn-urile.", "Close", "");
                            return 1;
                        }
                        AccountInfo[playerid][PremiumPoints] -= 50;
                        AccountInfo[playerid][Warnings] = 0;
                        new strings[200],namef[30];
                        SendClientMessage(playerid, COLOR_YELLOW, "Ti-ai sters toate warn-urile! (-50 premium points)");
                        GetPlayerName(playerid, namef, sizeof(name));
                        format(strings, sizeof(strings), "/shop: %s si-a sters warningurile.",namef);
                        ABroadCast(COLOR_YELLOW,strings,6);
                        }
                    if(AccountInfo[playerid][PremiumPoints] <= 49)
                    {
                            ShowPlayerDialog(playerid, DIALOG_NOPP, DIALOG_STYLE_MSGBOX, "Nu ai destule puncte", "Ai nevoie de 50 de puncte pentru ati sterge warn-urile.", "Close", "");
                            return 1;
                    }
                    if(listitem == 11)
                    {
                        new strings[256];
                        if(AccountInfo[playerid][PremiumPoints] < 29) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!");
                        AccountInfo[playerid][PremiumPoints] -= 30;
                        GivePlayerMoney(playerid, 300000);
                        SCM(playerid, COLOR_YELLOW, "Ai cumparat $300.000 pentru 1 punct premium.");
                        format(strings, sizeof(strings), "/shop: %s a cumparat 300,000$.",name);
                        ABroadCast(COLOR_YELLOW,strings,6);
                    }
                    if(listitem == 12)
                    {
                        new strings[256];
                        if(AccountInfo[playerid][PremiumPoints] < 49) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!");
                        AccountInfo[playerid][PremiumPoints] -= 50;
                        GivePlayerMoney(playerid, 3000000);
                        SCM(playerid, COLOR_YELLOW, "Ai cumparat $3,000.000 pentru 10 puncte premium.");
                        format(strings, sizeof(strings), "/shop: %s a cumparat 300,000$.",name);
                        ABroadCast(COLOR_YELLOW,strings,6);
                    }
                    if(listitem == 13)
                    {
                        new strings[256];
                        if(AccountInfo[playerid][PremiumPoints] < 89) return SCM(playerid, COLOR_WHITE, "Nu ai suficiente puncte premium!");
                        AccountInfo[playerid][PremiumPoints] -= 90;
                        GivePlayerMoney(playerid, 70000000);
                        SCM(playerid, COLOR_YELLOW, "Ai cumparat $70.000.000 pentru 70 puncte premium.");
                        format(strings, sizeof(strings), "/shop: %s a cumparat 70,000,000$.",name);
                        ABroadCast(COLOR_YELLOW,strings,6);
                         
                    }
                }
            }
                
        }
        return 1;
    }

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.