Guest User

Untitled

a guest
Aug 13th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. public PayDay()
  2. {
  3. new string[128];
  4. new account,interest;
  5. new rent = 0;
  6. GiftAllowed = 1;
  7. foreach(Player, i)
  8. if(TimeAfterBankJob < TIME_BETWEEN_BANKJOBS) TimeAfterBankJob += 1;
  9. for(new i = 0; i < MAX_PLAYERS; i++)
  10. {
  11. if(PlayerInfo[i][pLevel] > 0)
  12. {
  13. if(MoneyMessage[i]==1)
  14. {
  15. if( PlayerInfo[i][pJailed] < 1 && !IsACop(i))
  16. {
  17. 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));
  18. SendClientMessageEx(i, COLOR_LIGHTRED, string);
  19. if(PlayerInfo[i][pWantedLevel] < 6) PlayerInfo[i][pWantedLevel] += 1;
  20. PlayerInfo[i][pCrimes] += 1;
  21. SetPlayerWantedLevel(i, PlayerInfo[i][pWantedLevel]);
  22. }
  23. }
  24. account = PlayerInfo[i][pAccount];
  25. if(PlayerInfo[i][pRenting] != INVALID_HOUSE_ID)
  26. {
  27. if(HouseInfo[PlayerInfo[i][pRenting]][hRentFee] > PlayerInfo[i][pAccount])
  28. {
  29. PlayerInfo[i][pRenting] = INVALID_HOUSE_ID;
  30. SendClientMessageEx(i, COLOR_WHITE, "You have been evicted.");
  31. }
  32. else {
  33. HouseInfo[PlayerInfo[i][pRenting]][hSafeMoney] += HouseInfo[PlayerInfo[i][pRenting]][hRentFee];
  34. PlayerInfo[i][pAccount] -= HouseInfo[PlayerInfo[i][pRenting]][hRentFee];
  35. }
  36. }
  37. new tmpintrate, faretax;
  38. tmpintrate = 1;
Advertisement
Add Comment
Please, Sign In to add comment