Damaged

MUF to make a +gripe command

Jan 4th, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. $def .tell me @ swap ansi_notify
  2.  
  3. : main[ str:param -- ]
  4. param @ "=" instr if param @ "=" split var! gripe pmatch var! player else "Invalid input. ^yellow^+gripe <player>=<message>^normal^" .tell exit then
  5. player @ player? not if "Player not found! ^yellow^+gripe <player>=<message>^normal^" .tell exit then
  6. gripe @ not if "No message entered! ^yellow^+gripe <player>=<message>^normal^" .tell exit then
  7. #12078 gripe @ me @ player @ "+bbpost 18/%D =%D has made a gripe. The gripe is as follows: %s" fmtstring force
  8. "Staff has been notified. You will not be notified about the result." .tell
  9. ;
Advertisement
Add Comment
Please, Sign In to add comment