Guest User

Help! Wont work

a guest
May 25th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. @name Pay a player
  2. @persist [Player]:entity
  3. if(first() || dupefinished()) { runOnChat(1), print("[Commands]"), print("!send <Player Name Here> <Ammount>") }
  4. if(chatClk(owner())){Last = owner():lastSaid():explode(" ")}
  5.  
  6. if(Last[1,string] == "!send"){
  7. hideChat(chatClk(owner()))
  8. for(I = 2, Last:count()) { if(I==2) { Name = Last[I,string] } else { Name += " " + Last[I,string] } }
  9. Player = findPlayerByName(Name)
  10. Amount = Last[3,string]:toNumber()
  11.  
  12. if(Player == noentity()){ hint("Player Not Found", 10000) }
  13. else{ hint("Player Found", 10000), moneyGive(Player,Amount) }
  14. }
  15.  
  16. if(moneyClk()) { print("Player accepted request,all his money is now yours!") }
  17. if(moneyNoClk()) { print("Player denied request, you recieved no money!") }
Advertisement
Add Comment
Please, Sign In to add comment