Jump to content

Ajutor GM


AlexanderSMG

Recommended Posts

Buna seara,revin iar cu o problema sa ii spun asa. Am un GM luat dupa net,is la inceput cu scriptatul si nu stiu sa fac un GM la de 0 cum s-ar zice,in fine,usor usor am scapat de probleme,acum am dat de o problema ca sa ii zic asa,cand te duci la ATM si scrii /depune sau /transfera,cand dai o comanda ce are legatura cu Bani din banca,sub banii din mana iti apare cu albastru banii din banca si eu vreau sa elimin chestia asta ca se suprapune cu Stelutele de Wanted.

sa-mp-033.png

Link to comment
Share on other sites

 }
    if(strcmp(cmd, "/depune", true) == 0 || strcmp(cmd, "/atmdepune", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerToPoint(3.0,playerid,1737.201171,-1862.834960,13.575809) || PlayerToPoint(3.0,playerid,1154.137573,-1456.037109,15.796875) || PlayerToPoint(3.0,playerid,1496.072998,-1749.133911,15.445312) || PlayerToPoint(3.0,playerid,1831.669555,-1172.762329,23.907688) || PlayerToPoint(3.0,playerid,1625.031616,-1136.564697,23.906250) || PlayerToPoint(3.0,playerid,-1981.335083,144.781814,27.687500) || PlayerToPoint(3.0,playerid,1009.184143,-929.662963,42.328125))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                SendClientMessage(playerid, COLOR_GRAD2, "COMANDA: /depune [amount]");
                format(string, sizeof(string), "Tu ai %d$ in Cont.", PlayerInfo[playerid][pAccount]);
                SendClientMessage(playerid, COLOR_GRAD3, string);
                return 1;
                }
                new cashdeposit = strvalEx(tmp);
                if(!strlen(tmp))
                {
                SendClientMessage(playerid, COLOR_GRAD2, "COMANDA: /depune [amount]");
                format(string, sizeof(string), "Tu ai %d$ in Cont.", PlayerInfo[playerid][pAccount]);
                SendClientMessage(playerid, COLOR_GRAD3, string);
                return 1;
                }
                if (cashdeposit > GetPlayerCash(playerid) || cashdeposit < 1)
                {
                SendClientMessage(playerid, COLOR_GRAD2, "Nu ai atat de mult");
                return 1;
                }
                GivePlayerCash(playerid,-cashdeposit);
                //hackmoney[playerid] = hackmoney[playerid] - cashdeposit;
                if(cashdeposit > 4999 && cashdeposit < 50000)
                {
                        //ConsumingMoney[playerid] = 2;
                }
                else if(cashdeposit > 49999 && cashdeposit < 500000)
                {
                        //ConsumingMoney[playerid] = 3;
                }
                else if(cashdeposit > 499999 && cashdeposit < 5000000)
                {
                        //ConsumingMoney[playerid] = 4;
                }
                //ConsumingMoney[playerid] = 1;
                new curfunds = PlayerInfo[playerid][pAccount];
                PlayerInfo[playerid][pAccount]=cashdeposit+PlayerInfo[playerid][pAccount];
                SendClientMessage(playerid, COLOR_WHITE, "|___ BANK STATMENT ___|");
                format(string, sizeof(string), "Balanta Veche: $%d", curfunds);
                SendClientMessage(playerid, COLOR_GRAD2, string);
                format(string, sizeof(string), "Depozit: $%d",cashdeposit);
                SendClientMessage(playerid, COLOR_GRAD4, string);
                SendClientMessage(playerid, COLOR_GRAD6, "|-----------------------------------------|");
                format(string, sizeof(string), "Balanta Noua: $%d", PlayerInfo[playerid][pAccount]);
                SendClientMessage(playerid, COLOR_WHITE, string);
                TextDrawShowForPlayer(playerid, BalanceTextDraw[playerid] );
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_LIGHTGREEN, "Nu esti la ATM !");
                return 1;
             }
        }
        return 1;
    }

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.