Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local tAPI = args[1]
- local user = args[2]
- local mode = args[3]
- local enduser = args[4]
- local amount = tonumber(args[5])
- --print(tAPI.message)
- if enduser and amount then
- if tAPI.isPlayerOnline(enduser) and amount <= tAPI.getLBC(user) and amount >= 1 then
- tAPI.setLBC(user, tAPI.getLBC(user)-amount)
- tAPI.setLBC(enduser, tAPI.getLBC(user)+amount)
- tAPI.message(mode, user, "You sent "..amount.." LBC to "..enduser)
- tAPI.message(mode, enduser, "You were sent "..amount.." LBC by "..user)
- else
- tAPI.message(mode, user, "That user is not online.")
- end
- else
- tAPI.message( mode, user, "Invalid Syntax. pay <user> <amount>")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement