Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.46 KB | None | 0 0
  1. alias rnd_slap_objects ["a rusty old nail" "an old boot" "a jar of jammeh"]
  2. alias rnd_quotes ["If you see shotguns, run. - DES|Bukz" "YAIYAIYAIYAIYAI - V-Man"]
  3.  
  4. alias pubcommands [
  5.   if_conline_has "!changeteam" and_also $curname [if (strstr (at $conline 0) $curname) [changeteam] []] []
  6.   if_conline_has "!forceteam" and_also $curname [if (strstr (at $conline 0) $curname) [forceteam (findcn (at $conline 2))] []] []
  7.   if_conline_has "!nick" and_also $curname [if (strstr (at $conline 0) $curname) [name (at $conline 2)] []] []
  8.   if_conline_has "!kick" and_also $curname [if (strstr (at $conline 0) $curname) [kick (findcn (at $conline 2)) (at $conline 3)] []] []
  9.   if_conline_has "!ban" and_also $curname [if (strstr (at $conline 0) $curname) [ban (findcn (at $conline 2)) (at $conline 3)] []] []
  10.   if_conline_has "!giveadmin" and_also $curname [if (strstr (at $conline 0) $curname) [giveadmin (findcn (at $conline 2))] []] []
  11.   if_conline_has "!reconnect" and_also $curname [if (strstr (at $conline 0) $curname) [connect (curserver 1) (curserver 3)] []] []
  12.   if_conline_has "!disconnect" and_also $curname [if (strstr (at $conline 0) $curname) [disconnect] []] []
  13.   if_conline_has "!quit" and_also $curname [if (strstr (at $conline 0) $curname) [say bb; sleep 10 [quit]] []] []
  14.   if_conline_has "!swap" and_also $curname [if (strstr (at $conline 0) $curname) [forceteam (findcn (at $conline 2)); forceteam (findcn (at $conline 3))] []] []
  15.   if_conline_has "!slap" and_also $curname [if (strstr (at $conline 0) $curname) [me (format "slaps %1 with %2" (at $conline 2) (at $rnd_slap_objects (rnd (listlen $rnd_slap_objects))))] []] []
  16.   if_conline_has "!map" and_also $curname [if (strstr (at $conline 0) $curname) [map (at $conline 2)] []] []
  17.   if_conline_has "!mode" and_also $curname [if (strstr (at $conline 0) $curname) [mode (at $conline 2)] []] []
  18.   if_conline_has "!coop" and_also $curname [if (strstr (at $conline 0) $curname) [coop (at $conline 2)] []] []
  19.   if_conline_has "!tdm" and_also $curname [if (strstr (at $conline 0) $curname) [tdm (at $conline 2)] []] []
  20.   if_conline_has "!dm" and_also $curname [if (strstr (at $conline 0) $curname) [dm (at $conline 2)] []] []
  21.   if_conline_has "!tsurv" and_also $curname [if (strstr (at $conline 0) $curname) [ts (at $conline 2)] []] []
  22.   if_conline_has "!surv" and_also $curname [if (strstr (at $conline 0) $curname) [lms (at $conline 2)] []] []
  23.   if_conline_has "!ctf" and_also $curname [if (strstr (at $conline 0) $curname) [ctf (at $conline 2)] []] []
  24.   if_conline_has "!htf" and_also $curname [if (strstr (at $conline 0) $curname) [htf (at $conline 2)] []] []
  25.   if_conline_has "!ktf" and_also $curname [if (strstr (at $conline 0) $curname) [ktf (at $conline 2)] []] []
  26.   if_conline_has "!tktf" and_also $curname [if (strstr (at $conline 0) $curname) [tktf (at $conline 2)] []] []
  27.   if_conline_has "!pf" and_also $curname [if (strstr (at $conline 0) $curname) [pf (at $conline 2)] []] []
  28.   if_conline_has "!lss" and_also $curname [if (strstr (at $conline 0) $curname) [lss (at $conline 2)] []] []
  29.   if_conline_has "!osok" and_also $curname [if (strstr (at $conline 0) $curname) [osok (at $conline 2)] []] []
  30.   if_conline_has "!tosok" and_also $curname [if (strstr (at $conline 0) $curname) [tosok (at $conline 2)] []] []
  31.   if_conline_has "!autoteam" and_also $curname [if (strstr (at $conline 0) $curname) [autoteam (at $conline 2)] []] []
  32.   if_conline_has "!mastermode" and_also $curname [if (strstr (at $conline 0) $curname) [mastermode (at $conline 2)] []] []
  33.   if_conline_has "!quote" and_also $curname [if (strstr (at $conline 0) $curname) [me (at $rnd_quotes (rnd (listlen $rnd_quotes)))] []] []
  34.   if_conline_has "!version" and_also $curname [if (strstr (at $conline 0) $curname) [say (concat version = $version)] []] []
  35.   if_conline_has "!serverdesc" and_also $curname [if (strstr (at $conline 0) $curname) [if (currole) [serverdesc (at $conline 2)] []] []] []
  36.   if_conline_has "!sendmap" and_also $curname [if (strstr (at $conline 0) $curname) [sendmap (at $conline 2)] []] []
  37.   if_conline_has "!getmap" and_also $curname [if (strstr (at $conline 0) $curname) [getmap] []] []
  38.   if_conline_has "!getdemo" and_also $curname [if (strstr (at $conline 0) $curname) [getdemo (at $conline 2)] []] []
  39.   if_conline_has "!listdemos" and_also $curname [if (strstr (at $conline 0) $curname) [listdemos] []] []
  40.   if_conline_has "!ratio" and_also $curname [if (strstr (at $conline 0) $curname) [say (format "My ratio is %1" (curratio $curname))] []] []
  41.   if_conline_has "!connect" and_also $curname [
  42.     if (strstr (at $conline 0) $curname) [
  43.       if (< (listlen $conline) 4) [
  44.         tmp_conline_ip = (at $conline 2)
  45.         tmp_conline_port = (at $conline 3)
  46.         say (format "To follow me use: /connect %1 %2" (at $conline 2) (at $conline 3))
  47.         connect $tmp_conline_ip $tmp_conline_port
  48.       ] [
  49.         tmp_conline_ip = (at $conline 2)
  50.         tmp_conline_port = (at $conline 3)
  51.         tmp_conline_pw = (at $conline 4)
  52.         say (format "To follow me use: /connect %1 %2 %3" (at $conline 2) (at $conline 3) (at $conline 4))
  53.         connect $tmp_conline_ip $tmp_conline_port $tmp_conline_pw
  54.       ]
  55.     ] []
  56.   ] []
  57.   if_conline_has "!command" and_also $curname [
  58.     if (strstr (at $conline 0) $curname) [
  59.       tmp_args = []
  60.       tmp_cmd = (at $conline 2)
  61.       loop cmdloop (listlen $conline) [
  62.         if (< $cmdloop 3) [] [add2list tmp_args (at $conline $cmdloop)]
  63.       ]
  64.       $tmp_cmd $tmp_args
  65.     ] []
  66.   ] []
  67. ]
  68.  
  69. add2conloop pubcommands
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement