Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Pay a player
- @persist [Player]:entity
- if(first() || dupefinished()) { runOnChat(1), print("[Commands]"), print("!send <Player Name Here> <Ammount>") }
- if(chatClk(owner())){Last = owner():lastSaid():explode(" ")}
- if(Last[1,string] == "!send"){
- hideChat(chatClk(owner()))
- for(I = 2, Last:count()) { if(I==2) { Name = Last[I,string] } else { Name += " " + Last[I,string] } }
- Player = findPlayerByName(Name)
- Amount = Last[3,string]:toNumber()
- if(Player == noentity()){ hint("Player Not Found", 10000) }
- else{ hint("Player Found", 10000), moneyGive(Player,Amount) }
- }
- if(moneyClk()) { print("Player accepted request,all his money is now yours!") }
- if(moneyNoClk()) { print("Player denied request, you recieved no money!") }
Advertisement
Add Comment
Please, Sign In to add comment