Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public PayDay()
- {
- new string[128];
- new account,interest;
- new rent = 0;
- GiftAllowed = 1;
- foreach(Player, i)
- if(TimeAfterBankJob < TIME_BETWEEN_BANKJOBS) TimeAfterBankJob += 1;
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(PlayerInfo[i][pLevel] > 0)
- {
- if(MoneyMessage[i]==1)
- {
- if( PlayerInfo[i][pJailed] < 1 && !IsACop(i))
- {
- format(string,sizeof(string),"You're failing to pay your debt of $%d - now the police are on the look out for you.",GetPlayerCash(i));
- SendClientMessageEx(i, COLOR_LIGHTRED, string);
- if(PlayerInfo[i][pWantedLevel] < 6) PlayerInfo[i][pWantedLevel] += 1;
- PlayerInfo[i][pCrimes] += 1;
- SetPlayerWantedLevel(i, PlayerInfo[i][pWantedLevel]);
- }
- }
- account = PlayerInfo[i][pAccount];
- if(PlayerInfo[i][pRenting] != INVALID_HOUSE_ID)
- {
- if(HouseInfo[PlayerInfo[i][pRenting]][hRentFee] > PlayerInfo[i][pAccount])
- {
- PlayerInfo[i][pRenting] = INVALID_HOUSE_ID;
- SendClientMessageEx(i, COLOR_WHITE, "You have been evicted.");
- }
- else {
- HouseInfo[PlayerInfo[i][pRenting]][hSafeMoney] += HouseInfo[PlayerInfo[i][pRenting]][hRentFee];
- PlayerInfo[i][pAccount] -= HouseInfo[PlayerInfo[i][pRenting]][hRentFee];
- }
- }
- new tmpintrate, faretax;
- tmpintrate = 1;
Advertisement
Add Comment
Please, Sign In to add comment