Advertisement
Nuxeel

Kick | MadCommands

Mar 16th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. cmd add kick # Kick | Nuxeel | MadCommands v2.1 build 1015
  2. cmd add kick %all% = onlineplayers()
  3. cmd add kick %form%[\"type\"] = \"custom_form\"
  4. cmd add kick %form%[\"title\"] = \"Kick players for specific reasons!\"
  5. cmd add kick %con-1%[\"type\"] = \"dropdown\"
  6. cmd add kick %con-1%[\"text\"] = \"Select player:\"
  7. cmd add kick %con-1%[\"options\"] = %all%
  8. cmd add kick %con-2%[\"type\"] = \"input\"
  9. cmd add kick %con-2%[\"text\"] = \"Reason:\"
  10. cmd add kick %con-2%[\"placeholder\"] = \"Reason here...\"
  11. cmd add kick %content%[] = %con-1%
  12. cmd add kick %content%[] = %con-2%
  13. cmd add kick %form%[\"content\"] = %content%
  14. cmd add kick %res% = dialog(%p%, %form%)
  15. cmd add kick if %res% = %false% then exit
  16. cmd add kick %index% = %res%[0]
  17. cmd add kick %name% = %all%[%index%]
  18. cmd add kick %reason% = %res%[1]
  19. cmd add kick if %reason% = \"\" then %reason% = \":D\"
  20. cmd add kick /kick %name% %reason%
  21.  
  22. Up to you to edit the format.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement