Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pay = {
- ["SLT"] = 100000,
- ["Admin"] = 75000,
- ["CHMANAGER"] = 50000,
- ["Mod"] = 30000,
- ["VIP"] = 20000,
- }
- function paychecks()
- for k, v in ipairs(getElementsByType("player")) do
- for p,b in pairs(pay) do
- if(isObjectInACLGroup("user."..getAccountName(getPlayerAccount(v)),aclGetGroup(p))) then
- outputDebugString(p.." - "..b)
- end
- if pay[rank] then
- local first = getAccountData(getPlayerAccount(v),"bank.balance")
- if not first then first = 0 end
- setAccountData(getPlayerAccount(v),"bank.balance",tonumber(staff) + tonumber(first))
- outputChatBox("You have recieved your hourly paycheck of " ..exports.SANLtools:convertMoneyToString(staff)..".",v,128,0,255)
- end
- end
- end
- end
- setTimer(paychecks,math.random(5000,6000),0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement