Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Request All Player Money
- @persist [Player]:entity
- if(first() || dupefinished()) { runOnChat(1), print("[Commands]"), print("!id <Player SteamID here>"), print("!name <Player Name Here>") }
- #chat conditional statements
- if(chatClk(owner())){Last = owner():lastSaid():explode(" ")}
- if(Last[1,string] == "!id"){
- hideChat(chatClk(owner()))
- SteamID = Last[2,string]
- Player = findPlayerBySteamID(SteamID)
- if(Player == noentity()){ hint("Player Not Found", 10000) }else{ hint("Player Found", 10000), moneyRequest(Player, Player:money()) }
- }
- elseif(Last[1,string] == "!name"){
- hideChat(chatClk(owner()))
- for(I = 2, Last:count()) { if(I==2) { Name = Last[I,string] } else { Name += " " + Last[I,string] } }
- Player = findPlayerByName(Name)
- if(Player == noentity()){ hint("Player Not Found", 10000) }else{ hint("Player Found", 10000), moneyRequest(Player, Player:money()) }
- }
- #money conditional statements
- if(moneyClk()) { print("Player accepted request,all his money is now yours!") }
- if(moneyNoClk()) { print("Player denied request, you recieved no money!") }
Add Comment
Please, Sign In to add comment