Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.17 KB | None | 0 0
  1. alias rnd_slap_objects ["rusty old nail" "old boot" "jar of jammeh" "brick" "Britney Spears" "white sticky liquid" "pokeball" "mousepad" "Snorlax" "Gibstick" "buke" "keyboard" "piano" "lint roller" "tissue" "glue stick" "pen"]
  2.  
  3. alias pubcommands [
  4.   if_conline_has "!changeteam" and_also $curname [changeteam] []
  5.   if_conline_has "!forceteam" and_also $curname [forceteam (findcn (at $conline 2))] []
  6.   if_conline_has "!nick" and_also $curname [name (at $conline 2)] []
  7.   if_conline_has "!kick" and_also $curname [kick (findcn (at $conline 2)) (at $conline 3)] []
  8.   if_conline_has "!ban" and_also $curname [ban (findcn (at $conline 2)) (at $conline 3)] []
  9.   if_conline_has "!giveadmin" and_also $curname [giveadmin (findcn (at $conline 2))] []
  10.   if_conline_has "!reconnect" and_also $curname [connect (curserver 1) (curserver 3)] []
  11.   if_conline_has "!disconnect" and_also $curname [disconnect] []
  12.   if_conline_has "!quit" and_also $curname [say bb; sleep 10 [quit]] []
  13.   if_conline_has "!swap" and_also $curname [forceteam (findcn (at $conline 2)); forceteam (findcn (at $conline 3))] []
  14.   if_conline_has "!ctf" and_also $curname [ctf (at $conline 2)] []
  15.   if_conline_has "!slap" and_also $curname [me (format "slaps %1 with a %2" (at $conline 2) (at $rnd_slap_objects (rnd (listlen $rnd_slap_objects))))] []
  16.   if_conline_has "!connect" and_also $curname [
  17.     if (< (listlen $conline) 4) [
  18.       tmp_conline_ip = (at $conline 2)
  19.       tmp_conline_port = (at $conline 3)
  20.       say (format "To follow me use: /connect %1 %2" (at $conline 2) (at $conline 3))
  21.       connect $tmp_conline_ip $tmp_conline_port
  22.     ] [
  23.       tmp_conline_ip = (at $conline 2)
  24.       tmp_conline_port = (at $conline 3)
  25.       tmp_conline_pw = (at $conline 4)
  26.       say (format "To follow me use: /connect %1 %2 %3" (at $conline 2) (at $conline 3) (at $conline 4))
  27.       connect $tmp_conline_ip $tmp_conline_port $tmp_conline_pw
  28.     ]
  29.   ] []
  30.   if_conline_has "!command" and_also $curname [
  31.     tmp_args = []
  32.     tmp_cmd = (at $conline 2)
  33.     loop cmdloop (listlen $conline) [
  34.       if (< $cmdloop 3) [] [add2list tmp_args (at $conline $cmdloop)]
  35.     ]
  36.     $tmp_cmd $tmp_args
  37.   ] []
  38. ]
  39.  
  40. add2conloop pubcommands
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement