Guest User

Noel Steal Player Money

a guest
Apr 26th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.09 KB | None | 0 0
  1. @name Request All Player Money
  2. @persist [Player]:entity
  3.  
  4. if(first() || dupefinished()) { runOnChat(1), print("[Commands]"), print("!id <Player SteamID here>"), print("!name <Player Name Here>") }
  5. #chat conditional statements
  6. if(chatClk(owner())){Last = owner():lastSaid():explode(" ")}
  7. if(Last[1,string] == "!id"){
  8.     hideChat(chatClk(owner()))
  9.     SteamID = Last[2,string]
  10.     Player = findPlayerBySteamID(SteamID)
  11.     if(Player == noentity()){ hint("Player Not Found", 10000) }else{ hint("Player Found", 10000), moneyRequest(Player, Player:money()) }
  12.     }
  13. elseif(Last[1,string] == "!name"){
  14.     hideChat(chatClk(owner()))
  15.     for(I = 2, Last:count()) { if(I==2) { Name = Last[I,string] } else { Name += " " + Last[I,string] } }
  16.     Player = findPlayerByName(Name)
  17.     if(Player == noentity()){ hint("Player Not Found", 10000) }else{ hint("Player Found", 10000), moneyRequest(Player, Player:money()) }
  18.     }
  19.  
  20. #money conditional statements
  21. if(moneyClk()) { print("Player accepted request,all his money is now yours!") }
  22. if(moneyNoClk()) { print("Player denied request, you recieved no money!") }
Add Comment
Please, Sign In to add comment