Jump to content
  • 0

Banca - ia prea multi bani / Payday - nu primesc bani


Question

Posted

if(strcmp(cmd, "/retrag", true) == 0 || strcmp(cmd, "/scot", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "[RP-LF]: /retrage [suma]");

return 1;

}

new cashdeposit = strval(tmp);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "[RP-LF]: /retrage [suma]");

return 1;

}

            if(EstaEnCajero(playerid))

            {

if (cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)

{

SendClientMessage(playerid, COLOR_GRAD2, "  Nu aveti acest sold.");

return 1;

}

  GetPlayerName(playerid, sendername, sizeof(sendername));

format(string, sizeof(string), "* %s a retras o suma de bani din contul sau bancar", NumeEx(playerid));

ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

GivePlayerMoneyGR(playerid,cashdeposit);

PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-cashdeposit;

format(string, sizeof(string), "  Ai retras $%d din contul tau bancar.Noul sold este de $%d ", cashdeposit,PlayerInfo[playerid][pAccount]);

SendClientMessage(playerid, COLOR_YELLOW2, string);

return 1;

}

else if(IsPlayerInRangeOfPoint(playerid,2,1432.4330,-997.8284,1639.7911))

{

    if (cashdeposit > PlayerInfo[playerid][pAccount] || cashdeposit < 1)

{

SendClientMessage(playerid, COLOR_GRAD2, "  Nu aveti acest sold!");

return 1;

}

    //ConsumingMoney[playerid] = 1;

  GetPlayerName(playerid, sendername, sizeof(sendername));

format(string, sizeof(string), "* %s a retras bani din contul sau bancar.", NumeEx(playerid));

ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

GivePlayerMoneyGR(playerid,cashdeposit);

PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-cashdeposit;

format(string, sizeof(string), "  Ai retras $%d din contul tau bancar.Noul sold este de $%d ", cashdeposit,PlayerInfo[playerid][pAccount]);

SendClientMessage(playerid, COLOR_YELLOW2, string);

return 1;

}

Cand retrag bani sa zicem ca am sold 5000 , retrag 1000 si raman cu 300 :|

La payday nu primesc bani :

if(PlayerInfo[pPayDay] >= 0)

{

    Tax += TaxValue;

new checks = PlayerInfo[pPayCheck] / 5;

if(PlayerInfo[pDonateRank] > 0)

{

    new bonus = PlayerInfo[pPayCheck] / 10;

    checks += bonus;

}

    new ebill = (PlayerInfo[pAccount]/10000)*(PlayerInfo[pLevel]);

interest = (PlayerInfo[pAccount]/1000)*(tmpintrate);

PlayerInfo[pExp]++;

PlayerPlayMusic(i);

PlayerInfo[pSalariu] = checks + interest + (PlayerInfo[pPayCheck] / 25) ;//account+interest;

if(PlayerInfo[pSalariu] <= 199) PlayerInfo[pSalariu] = 200;

if(PlayerInfo[pSalariu] >= 601) PlayerInfo[pSalariu] = 600;

SendClientMessage(i, COLOR_GREEN, "|_____ Statistici Banca _____|");

format(string, sizeof(string), "  Plata de astazi: $%d  Impozit: -$%d", PlayerInfo[pSalariu], TaxValue);

SendClientMessage(i, COLOR_WHITE, string);

format(string, sizeof(string), "  Salariu: $%d", checks);

SendClientMessage(i, COLOR_WHITE, string);

if(PlayerInfo[pPhousekey] != 255 || PlayerInfo[pPbiskey] != 255)

{

    format(string, sizeof(string), "  Factura curent: -$%d", ebill);

SendClientMessage(i, COLOR_GRAD1, string);

}

format(string, sizeof(string), "  Balanta: $%d", PlayerInfo[pAccount]);

SendClientMessage(i, COLOR_WHITE, string);

format(string, sizeof(string), "  Dobanda primita: 0.%d percent",tmpintrate);

SendClientMessage(i, COLOR_GRAD2, string);

format(string, sizeof(string), "  Dobanzi incasate $%d", interest);

SendClientMessage(i, COLOR_GRAD3, string);

if(PlayerInfo[pPbiskey] != 255)

{

    Tot = 0;

    new bizkey = PlayerInfo[pPbiskey]-100;

    SendClientMessage(i, COLOR_WHITE, "|_____ Afaceri _____|");

    if(SBizzInfo[bizkey][sbType] == 0) //Concesionarias/Masinas

    {

        new RGN = RandomEx(1000,2500);

        format(string, sizeof(string), "  Profiturile de afaceri: $%d",RGN);

SendClientMessage(i, COLOR_GRAD3, string);

        PlayerInfo[pSalariu] += RGN;

        Tot += RGN

    }

    else if(SBizzInfo[bizkey][sbType] == 1) // Compañias

    {

        new RGN = RandomEx(1500,2500);

        format(string, sizeof(string), "  Profit din afaceri: $%d",RGN);

SendClientMessage(i, COLOR_GRAD3, string);

        PlayerInfo[pSalariu] += RGN;

        Tot += RGN

1 answer to this question

Recommended Posts

Posted

O intrebare,ai incercat sa iei x%$ din suma retrasa din banca?Exemplu 3% din banii retrasi.

 

 

Guest
This topic is now closed to further replies.
×
×
  • 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.