Advertisement
KinderClans

Untitled

Nov 2nd, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. task PayBankTaxes[2400000]() //40 minutes
  2. {
  3. foreach (new i : Player)
  4. {
  5. new str[128];
  6.  
  7. if(Player[i][Bank] > 25000 || Player[i][Bank] < 74999) //2.0125%
  8. {
  9. new taxes = Player[i][Bank] / 64;
  10. Player[i][Bank] = Player[i][Bank] - Player[i][Bank] / 64;
  11.  
  12. SCM(i, COLOR_WHITE, "|___ BANK STATEMENT ___|");
  13. SCMEX(i, COLOR_FADE1, " Balance: %s", formatInt(Player[i][Bank]));
  14. SCMEX(i, COLOR_FADE1, " Taxes paid: %s", formatInt(taxes));
  15. SCM(i, COLOR_WHITE, "|________________________|");
  16.  
  17. format(str, sizeof(str), "~y~Taxes~n~~w~Paid~n~~g~%s", formatInt(taxes));
  18. GameTextForPlayer(i, str, 3000, 1);
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement