Question small and easy!
#1

hi how can i make to get pyday smaller??

PHP код:
if(PlayerInfo[i][pPayDay] >= 5)
                        {
                            
Tax += TaxValue;//Should work for every player online
                            
PlayerInfo[i][pAccount] -= TaxValue;
                            new 
checks PlayerInfo[i][pPayCheck] / 5;
                            if(
PlayerInfo[i][pDonateRank] > 0)
                            {
                                new 
bonus PlayerInfo[i][pPayCheck] / 10// what does this do??
                                
checks += bonus;
                            }
                            new 
ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
                            
ConsumingMoney[i] = 1;
                               
PlayerInfo[i][pAccount]=checks+PlayerInfo[i][pAccount];
                            if(
PlayerInfo[i][pAccount] > 0)
                            {
                                
PlayerInfo[i][pAccount] -= ebill;
                                
SBizzInfo[4][sbTill] += ebill;
                            }
                            else
                            {
                                
ebill 0;
                            }
                            
interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
                            
PlayerInfo[i][pExp]++;
                            
PlayerPlayMusic(i);
                            
PlayerInfo[i][pAccount] = account+interest;
                            
SendClientMessage(iCOLOR_YELLOW"|==========| Salar Oral |==========");
                            
format(stringsizeof(string), "  Salariu: %dLei"checks);
                            
SendClientMessage(iCOLOR_WHITEstring);
                            if(
PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
                            {
                                
format(stringsizeof(string), "  Curentul: -%dLei"ebill);
                                
SendClientMessage(iCOLOR_WHITEstring);
                            }
                            
format(stringsizeof(string), "  Balanta: %dLei"account checks);
                            
SendClientMessage(iCOLOR_WHITEstring);
                            
format(stringsizeof(string), "  Dobanda: 0.%d la suta",tmpintrate);
                            
SendClientMessage(i,  COLOR_WHITEstring);
                            
format(stringsizeof(string), "  Dobanzile %dLei"interest);
                            
SendClientMessage(i,  COLOR_WHITEstring);
                            
format(stringsizeof(string), "  Balanta Noua: %dLei"PlayerInfo[i][pAccount]);
                            
SendClientMessage(i,  COLOR_WHITEstring);
                            
format(stringsizeof(string), "  Chirie: -%dLei"rent);
                            
SendClientMessage(i,  COLOR_WHITEstring);
                            
format(stringsizeof(string), "  Impozitul: -%dLei"TaxValue);
                            
SendClientMessage(i,  COLOR_WHITEstring);
                            
SendClientMessage(iCOLOR_YELLOW"|--------------------------------------|");
                            
rent 0;
                            
PlayerInfo[i][pPayDay] = 0;
                            
PlayerInfo[i][pPayCheck] = 0;
                            
PlayerInfo[i][pConnectTime] += 1;
                            if(
PlayerInfo[i][pDonateRank] > 0)
                            {
                                
PlayerInfo[i][pPayDayHad] += 1;
                                if(
PlayerInfo[i][pPayDayHad] >= 5)
                                {
                                    
PlayerInfo[i][pExp]++;
                                    
PlayerInfo[i][pPayDayHad] = 0;
                                }
                                
//}
                            
}
                        }
                        else
                        {
                            
SendClientMessage(iCOLOR_RED"* You haven't played long enough to obtain a PayDay.");
                        }
                    }
                    }
                    }
                    
SaveAccounts();
                    
Checkprop();
                    return 
1;
                    } 
Reply
#2

What are you trying to change exactly? The amount of taxes? the length before you can get it or how much your recieve?
Reply
#3

i want to get a low payday..i get 1k at payday.. and i want to get smaller money..
Reply
#4

pawn Код:
new bonus = PlayerInfo[i][pPayCheck] / 10; // what does this do??
It gives 10% bonus for people with pDonateRank > 0

pawn Код:
new checks = PlayerInfo[i][pPayCheck] / 5;
Change 5 to higher number to reduce money given to player
Reply
#5

Try

pawn Код:
if(PlayerInfo[i][pPayDay] >= 5)
                        {
                            Tax += TaxValue;//Should work for every player online
                            PlayerInfo[i][pAccount] -= TaxValue;
                            new checks = PlayerInfo[i][pPayCheck] / 7;
                            if(PlayerInfo[i][pDonateRank] > 0)
                            {
                                new bonus = PlayerInfo[i][pPayCheck] / 10; // what does this do??
                                checks += bonus;
                            }
                            new ebill = (PlayerInfo[i][pAccount]/10000)*(PlayerInfo[i][pLevel]);
                            ConsumingMoney[i] = 1;
                               PlayerInfo[i][pAccount]=checks+PlayerInfo[i][pAccount];
                            if(PlayerInfo[i][pAccount] > 0)
                            {
                                PlayerInfo[i][pAccount] -= ebill;
                                SBizzInfo[4][sbTill] += ebill;
                            }
                            else
                            {
                                ebill = 0;
                            }
                            interest = (PlayerInfo[i][pAccount]/1000)*(tmpintrate);
                            PlayerInfo[i][pExp]++;
                            PlayerPlayMusic(i);
                            PlayerInfo[i][pAccount] = account+interest;
                            SendClientMessage(i, COLOR_YELLOW, "|==========| Salar Oral |==========");
                            format(string, sizeof(string), "  Salariu: %dLei", checks);
                            SendClientMessage(i, COLOR_WHITE, string);
                            if(PlayerInfo[i][pPhousekey] != 255 || PlayerInfo[i][pPbiskey] != 255)
                            {
                                format(string, sizeof(string), "  Curentul: -%dLei", ebill);
                                SendClientMessage(i, COLOR_WHITE, string);
                            }
                            format(string, sizeof(string), "  Balanta: %dLei", account - checks);
                            SendClientMessage(i, COLOR_WHITE, string);
                            format(string, sizeof(string), "  Dobanda: 0.%d la suta",tmpintrate);
                            SendClientMessage(i,  COLOR_WHITE, string);
                            format(string, sizeof(string), "  Dobanzile %dLei", interest);
                            SendClientMessage(i,  COLOR_WHITE, string);
                            format(string, sizeof(string), "  Balanta Noua: %dLei", PlayerInfo[i][pAccount]);
                            SendClientMessage(i,  COLOR_WHITE, string);
                            format(string, sizeof(string), "  Chirie: -%dLei", rent);
                            SendClientMessage(i,  COLOR_WHITE, string);
                            format(string, sizeof(string), "  Impozitul: -%dLei", TaxValue);
                            SendClientMessage(i,  COLOR_WHITE, string);
                            SendClientMessage(i, COLOR_YELLOW, "|--------------------------------------|");
                            rent = 0;
                            PlayerInfo[i][pPayDay] = 0;
                            PlayerInfo[i][pPayCheck] = 0;
                            PlayerInfo[i][pConnectTime] += 1;
                            if(PlayerInfo[i][pDonateRank] > 0)
                            {
                                PlayerInfo[i][pPayDayHad] += 1;
                                if(PlayerInfo[i][pPayDayHad] >= 5)
                                {
                                    PlayerInfo[i][pExp]++;
                                    PlayerInfo[i][pPayDayHad] = 0;
                                }
                                //}
                            }
                        }
                        else
                        {
                            SendClientMessage(i, COLOR_RED, "* You haven't played long enough to obtain a PayDay.");
                        }
                    }
                    }
                    }
                    SaveAccounts();
                    Checkprop();
                    return 1;
                    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)