Jump to content

StrikerBRO

Membru
  • Posts

    3
  • Joined

  • Last visited

Posts posted by StrikerBRO

  1. Acesta este payday-ul meu din gamemode:

    {
                            tmpintrate = 1;
                        }
                        account = PlayerInfo[pAccount];
                        Tax += TaxValue;
                        PlayerInfo[pAccount] -= TaxValue;
                        new checks = PlayerInfo[pPayCheck],
                            ebill = (PlayerInfo[pLevel]*SBizzInfo[14][sbEntranceCost]/100);
                        PlayerInfo[pAccount] += checks;
                        interest = (PlayerInfo[pAccount]/1000)*(tmpintrate);
                        PlayerInfo[pExp] += 1;
                        PlayerInfo[pAccount] += interest;
                        SendClientMessage(i, COLOR_TEAL, "----------------------------------------------------------------------------");
                        SendClientMessage(i, COLOR_WHITE, "Your paycheck has arrived; please visit the bank to withdraw your money.");
                        format(string, sizeof(string), "Paycheck: $%s | Bank balance: $%s | Bank interest: $%s | Tax: $%s (10 percent)", FormatNumber(checks), FormatNumber(PlayerInfo[pAccount]), FormatNumber(interest), FormatNumber(TaxValue));
                        SendClientMessage(i, COLOR_GREY, string);
                        format(string3, sizeof(string3), "Rent: $%s | Total earnings: $%d", FormatNumber(rent), checks-TaxValue);
                        SendClientMessage(i, COLOR_GREY, string3);
                        SendClientMessage(i, COLOR_TEAL, "----------------------------------------------------------------------------");
                        if(PlayerInfo[pAccount] >= ebill && key != 999 && strcmp(playername2, HouseInfo[key][hOwner], true) == 0)
                        {
                            PlayerInfo[pAccount] -= ebill;
                            SBizzInfo[14][sbTill] += ebill;
                            mysql_format(SQL,str,sizeof(str),"UPDATE `sbizz` SET `Till`='%d' WHERE `ID`='14'",SBizzInfo[14][sbTill]);
                            mysql_tquery(SQL,str,"","");
                        }
                        else
                        {
                            ebill = 0;
                        }
                        format(string, sizeof(string), "~y~payday");
                        GameTextForPlayer(i, string, 5000, 1);
                        PlayerInfo[pPayDay] = 0;
                        PlayerInfo[pPayCheck] = 0;
                        if(PlayerInfo[pCarLicT] > 0)
                        {

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