Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. local pay = {
  2. ["SLT"] = 100000,
  3. ["Admin"] = 75000,
  4. ["CHMANAGER"] = 50000,
  5. ["Mod"] = 30000,
  6. ["VIP"] = 20000,
  7. }
  8.  
  9. function paychecks()
  10. for k, v in ipairs(getElementsByType("player")) do
  11. for p,b in pairs(pay) do
  12. if(isObjectInACLGroup("user."..getAccountName(getPlayerAccount(v)),aclGetGroup(p))) then
  13. outputDebugString(p.." - "..b)
  14. end
  15. if pay[rank] then
  16. local first = getAccountData(getPlayerAccount(v),"bank.balance")
  17. if not first then first = 0 end
  18. setAccountData(getPlayerAccount(v),"bank.balance",tonumber(staff) + tonumber(first))
  19. outputChatBox("You have recieved your hourly paycheck of " ..exports.SANLtools:convertMoneyToString(staff)..".",v,128,0,255)
  20. end
  21. end
  22. end
  23. end
  24. setTimer(paychecks,math.random(5000,6000),0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement