AlexanderSMG Posted December 15, 2015 Posted December 15, 2015 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.
Джо Posted December 15, 2015 Posted December 15, 2015 Arata comanda /withdraw /deposit sau ce ai tu in legatura cu banca..
AlexanderSMG Posted December 15, 2015 Author Posted December 15, 2015 } 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; }
Alberto. Posted December 16, 2015 Posted December 16, 2015 (edited) asta "TextDrawHideForPlayer(playerid, BalanceTextDraw[playerid] ); " in locul asteia " TextDrawShowForPlayer(playerid, BalanceTextDraw[playerid] ); " Edited December 16, 2015 by Alberto.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now