Advertisement
cardentity

Untitled

Sep 1st, 2014
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. timer.Create('ArcMoneyIsRemove',120,0,function()
  2.         for i,k in pairs(player.GetAll()) do
  3.                
  4.                 local ply = k
  5.                 local m = ply:SteamID()
  6.                 local last = 'account_'..m:lower():gsub(":","_")..'.txt'
  7.                 local path = "_arcbank/accounts/personal/"
  8.  
  9.                 if file.Read(path..last,"DATA") then
  10.                        
  11.                         local Json = util.JSONToTable(file.Read(path..last,"DATA"))
  12.                
  13.                         Msg'[MONEYBACK] 'print(ply,Json.money)
  14.                        
  15.                         ply:addMoney(Json.money)
  16.                         ply:ChatPrint("Cashback - "..Json.money)
  17.                         file.Delete(path..last)
  18.                        
  19.        
  20.                 end    
  21.                
  22.                
  23.         end
  24. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement