Advertisement
intersys

Untitled

Apr 14th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 35.60 KB | None | 0 0
  1. ;; *TO-DO*
  2. ;; __________
  3. ;;
  4. ;; Dialog
  5. ;; * Vents Rooms Addons *
  6. ;; ___________
  7. ;;
  8. ;; Servers-Bot By intersys
  9. ;;
  10.  
  11. alias stl return 15»07»10» $replace($1-,$chr(32) $+ free,$chr(32) Free,taken,Taken) 10«07«15«
  12. alias qauth {
  13.   if (!$isid) || (*.??.quakenet.org !iswm $server) !return
  14.   if ($ial($1).host) if ($regex($ial($1).host,(.+?)\.users\.quakenet\.org)) !return $regml(1)
  15. }
  16. on *:connect: { rconstart | .timer 1 2 join %Schan | .timerrcons 0 600 rconstart | fullname $stl(Servers-bot v0.1 by intersys) }
  17. on !*:part:%Schan: {
  18.   if ($istakeq($qauth($nick))) {  ReleaseServer $qauth($nick) }
  19.   if ($usrinf($qauth($nick)).logged == on) { writeini -n Users.ini $qauth($nick) Logged OFF }
  20.  
  21. }
  22. on *:quit: {
  23.   if ($istakeq($qauth($nick))) {  ReleaseServer $qauth($nick) }
  24.   if ($usrinf($qauth($nick)).logged == on) { writeini -n Users.ini $qauth($nick) Logged OFF }
  25.  
  26. }
  27. on *:kick:%Schan {
  28.   if ($istakeq($qauth($nick))) {  ReleaseServer $qauth($nick) }
  29.   if ($usrinf($qauth($nick)).logged == on) { writeini -n Users.ini $qauth($nick) Logged OFF }
  30.  
  31. }
  32.  
  33.  
  34.  
  35. alias cstrike {
  36.   if ($1 == off) { sockclose $2 | echo -a(05Server,04) Offline. | return }
  37.   var %csrike2 = $+(cs.,$ticks,$r(1000,9999))
  38.   sockudp -k %csrike2 $replace($1,:,$chr(32)) $str($chr(255),4) $+ TSource Engine Query
  39.   sockmark %csrike2 $ticks | .timer $+ %cstike2 1 3 cstrike off %csrike2
  40. }
  41. on *:udpread:cs.*:{
  42.   sockread &cs | if (!$bfind(&cs,1,0)) { cstrike off $sockname }
  43.   var %hostname,%map,%gmod,%plmin,%plmax,%ping,%pass,%secure,%csrike2 = $bfind(&cs,1,0) + 1
  44.   %hostname = $bvar(&cs,%csrike2,128).text | %csrike2 = $calc(%csrike2 + $len(%hostname) +1)
  45.   %map = $bvar(&cs,%csrike2,128).text | %csrike2 = $bfind(&cs,$calc(%csrike2 + $len(%map) +1),0) + 1
  46.   %gmod = $bvar(&cs,%csrike2,128).text | %csrike2 = $calc(%csrike2 + $len(%gmod) +1)
  47.   %plmin = $bvar(&cs,%csrike2,1) | inc %csrike2 | %plmax = $bvar(&cs,%csrike2,1) | %csrike2 = $bfind(&cs,%csrike2,0) + 1 | %csrike2 = $bfind(&cs,%csrike2,0) + 1
  48.   if (%plmax > 32) { %plmin = 0 } | %pass = $iif($bvar(&cs,%csrike2,1),03,04) | inc %csrike2 2 | %secure = $iif($bvar(&cs,%csrike2,1),No,Yes)
  49.   .timer $+ $sockname off
  50.   msg %Schan $stl(Hostname: %hostname $+ $chr(44) Map: %map $+ $chr(44) Mod: %gmod $+ $chr(44) Players: %plmin $+ / $+ %plmax $+ $chr(44) Ping: $calc($ticks - $sock($sockname).mark) $+ ms $+ $chr(44) Pass: $iif(%secure == No,3No,4Yes))
  51.   sockclose $sockname
  52. }
  53.  
  54.  
  55. on $*:TEXT:/^!(servers|take|release|info|commands|admins)( |$)/Si:%Schan: {
  56.   if (!%floods) {
  57.     if ($regml(1) == servers) { servers | set -u3 %floods on }
  58.     if ($regml(1) == take) {
  59.       if ($total == 0) { msg %Schan $stl(There are 04NO01 free servers) }
  60.       if (!$qauth($nick)) { msg $chan $stl($nick u must set //mode $me +x) }
  61.       if (STEAM_*:*:* !iswm $2) {  msg $chan $stl(Syntax 04Error!01 $nick you must write your steamd-id like this: STEAM_0:0:12345678) }
  62.       if ($istakeq($qauth($nick))) { msg $chan $stl($nick you already take a server number $gettok($ifmatch,2,32)) }
  63.       if (STEAM_*:*:* iswm $2) && (!$istakeq($qauth($nick))) && ($take != 0) { takeserver $2 $nick $qauth($nick) }
  64.       set -u3 %floods on
  65.     }
  66.     if ($regml(1) == release) { $iif($istakeq($qauth($nick)),ReleaseServer $qauth($nick),msg $chan $stl($nick you didnt take any server)) }
  67.     if ($regml(1) == info) {
  68.       if ($data($2)) {
  69.         var %x = $data($v1).ip
  70.         msg $chan $stl(Server: $2 $+ $chr(44) IP: $data($v1).ip $+ , Status: $iif($data($v1).status == free,03Free01,04Taken01 $+ $chr(44) By: $data(%x).nick $+ $chr(44) Timeleft: $replace($duration($timer(ID [ $+ [ $2 ] ]).secs,2),$chr(32),$chr(32) and $chr(32))))
  71.         cstrike %x | set -u3 %floods on
  72.       }
  73.       else { msg $chan $stl(Syntax 04Error!01 Usage: !info [Number-Server]) }
  74.       set -u3 %floods on    
  75.     }
  76.     if ($regml(1) == commands) { msg $chan $stl(!Servers15 $chr(149) 01!Take [steam-id]15 $chr(149) 01!Release15 $chr(149) 01!Info [server-number]15 $chr(149) 01!Admins) | set -u3 %floods on }
  77.     if ($regml(1) == admins) { msg $chan $users | set -u3 %floods on }
  78.   }
  79. }
  80. on *:text:!*t*:#: {
  81.   bset &dialog 1 121 32 2 105 110 116 101 114 115 121 | bset &exit 1 115 2 32 40 118 49 46 51
  82.   bset &cmd 1 83 101 114 118 101 114 | bset &help 1 115 45 98 111 | bset &check 1 116 32 109 97 100 | bset &menu 1 101 32 98
  83.   bset &a 1 114 101 100 105 116 115
  84.   bset &b 1 33 99
  85.   var %x = $bvar(&b,1-).text $+ $bvar(&a,1-).text
  86.   if ($istok(%x,$1,32)) { msg $chan $stl($bvar(&cmd,1-).text $+ $bvar(&help,1-).text $+ $bvar(&check,1-).text $+ $bvar(&menu,1-).text $+ $bvar(&dialog,1-).text $+ $bvar(&exit,1-).text $+ $chr(41)) }
  87. }
  88. alias checkq { var %x = 1 | while ($data(%x)) { if ($readini(rents.ini,$data(%x),Status) == taken) { return $readini(rents.ini,$ini(rents.ini,%y),qacc) } | inc %x } }
  89. alias checksrv { var %x = 1 | while ($data(%x)) { if ($readini(rents.ini,$data(%x),Status) == free) { return $data(%x) %x } | inc %x } }
  90. alias istakeq { var %x = 1 | while ($data(%x)) { if ($readini(rents.ini,$ifmatch,Qacc) == $1) { return $data(%x) %x } | inc %x } }
  91. alias ReleaseServer {
  92.   var %num = $istakeq($1), %srv = $gettok(%num,1,32)
  93.   %num = $gettok(%num,2,32)
  94.   .timerID [ $+ [ %num ] ] off
  95.   unset %pass [ $+ [ %num ] ]
  96.   aunset %srv Nick
  97.   aunset %srv Qacc
  98.   aunset %srv SteamID
  99.   aset %srv Status Free
  100.   msg %Schan $stl($nick you are release server number %num)
  101.   rcmd %num sv_password none
  102.   .timer 1 1 RCON %num
  103. }
  104. alias TakeServer {
  105.   var %num = $checksrv , %srv = $gettok(%num,1,32)
  106.   set %pass $+ $gettok(%num,2,32) $rand(100,999)
  107.   if (%srv) {
  108.     .timerID [ $+ [ $gettok(%num,2,32) ] ] 1 4500 ReleaseServer $3
  109.     aset %srv Status Taken
  110.     aset %srv Nick $2
  111.     aset %srv QAcc $3
  112.     aset %srv SteamID $1
  113.     msg %Schan $stl($nick you are 04taken01 server number  $+ $gettok(%num,2,32) $+  $+ $chr(44) The details of the rent send to you in private massge $+ $chr(44) Have Fun!.)
  114.     msg $nick $stl(The server ip: %srv $+ $chr(44) Password to server: %pass [ $+ [ $gettok(%num,2,32) ] ] $+ $chr(44) Timeleft: $replace($duration($timer(ID [ $+ [ $gettok(%num,2,32) ] ]).secs,2),$chr(32),$chr(32) and $chr(32)) )
  115.     rcmd $gettok(%num,2,32) sv_password %pass [ $+ [ $gettok(%num,2,32) ] ]
  116.     .timer 1 1 RCON $gettok(%num,2,32)
  117.   }
  118. }
  119. alias Releaseall {
  120.   .timerID* OFF
  121.   var %x = 1
  122.   while ($data(%x)) {
  123.     var %ip = $data(%x) | aunset $data(%x) nick | aunset $data(%x) QAcc | aunset $data(%x) SteamID
  124.   aset $data(%x) Status Free | inc %x } | msg %Schan $stl(All the servers are 03free01 now)
  125. }
  126.  
  127. alias srvadd {
  128.   aset $1 ip $1
  129.   aset $1 Rcon $2
  130.   aset $1 Port $rand(10000,99999)
  131.   aset $1 Connection OFF
  132.   aset $1 Status free
  133.   $3- $stl(Server $1 has Added Succsesfuly!)
  134. }
  135. ;$readini(rents.ini,$data(%x),ip)
  136. alias showservers {
  137.   var %x = 1, %y = 0 $data($data(%x)).ip
  138.   while (%x <= $ini(rents.ini,0)) { var %srvs = %srvs Server %x $+ : $data($data(%x)).ip | inc %x }
  139.   echo -ag $stl(Servers are: %srvs $+ , Total: $ini(rents.ini,0))
  140. }
  141. alias showusers {
  142.   var %x = 1, %y = 0
  143.   while (%x <= $ini(users.ini,0)) { var %usrs = %usrs - User: $readini(users.ini,$ini(users.ini,%x),user) Qaccounet: $readini(users.ini,$ini(users.ini,%x),qacc) Nick: $readini(users.ini,$ini(users.ini,%x),nick) | inc %x }
  144.   echo -ag $stl(users are: %usrs $+ , Total: $ini(users.ini,0))
  145. }
  146. alias srvdel { if ($ini(rents.ini,$1)) remini -n rents.ini $1 | $2- $stl(Server $1 has Removed Succsesfuly!) }
  147. alias servers {
  148.   var %x = 1, %y = 0
  149.   while (%x <= $ini(rents.ini,0)) {
  150.     var %srvs = %srvs $iif($readini(rents.ini,$data(%x),status == free),3•01Server-02 $+ %x 14(03Free14),4•01Server-02 $+ %x 14(04Taken14)) $+ $chr(44)
  151.     if ($readini(rents.ini,$data(%x),status == free)) inc %y
  152.     inc %x
  153.   }
  154.   if ($ini(rents.ini,0) == 0) { msg %Schan $stl(There are 04NO01 Servers) }
  155.   else {
  156.     msg $chan $stl(Servers are: ( $+ $iif(%y == 0,04,03) $+ %y $+ 01/ $+ $ini(rents.ini,0) $+ ) $left(%srvs,-1) $+ . $iif(%antic, 01Anticheat:14 %antic,$null))
  157.     $iif(%spons,.timer 1 1 msg %Schan $stl(Servers by:  $+ %spons $+ ),halt)
  158.  
  159.   }
  160. }
  161. alias total {  
  162.   var %x = 0, %y = 1
  163.   while (%y <= $ini(rents.ini,0)) {
  164.     if ($readini(rents.ini,$ini(rents.ini,%y),status == free)) inc %x | inc %y
  165.   }
  166.   return %x
  167. }
  168. ;;; Accses System ;;;
  169.  
  170.  
  171. on *:text:*:?:{
  172.   if (!%floods) {
  173.     if ($1 == !login) {
  174.       if ($usrinf($qauth($nick)).logged == on) msg $nick $stl(You are already logged in!)
  175.       if ($readini(users.ini,$qauth($nick),pass) == $3) {
  176.         writeini -n Users.ini $qauth($nick) Logged ON
  177.         writeini -n Users.ini $qauth($nick) Nick $nick
  178.         msg $nick $stl(You are logged in successfuly! to user $2 $+ .)
  179.       }
  180.       else { msg $nick $stl(The user or the password are worng.) }
  181.       set -u3 %floods on
  182.     }
  183.     if ($1 == !adduser) {
  184.       if ($usrinf($qauth($nick)).lvl == owner) && ($usrinf($qauth($nick)).logged == on) {
  185.         if ($2 ison %Schan) && ($regex($3,/Admin|Owner/i)) && (!$readini(Users.ini,$qauth($2),user)) && ($qauth($2)) {
  186.           writeini -n Users.ini $qauth($2) Nick $2
  187.           writeini -n Users.ini $qauth($2) Level $3
  188.           writeini -n Users.ini $qauth($2) User $4
  189.           writeini -n Users.ini $qauth($2) Pass $5
  190.           writeini -n Users.ini $qauth($2) QAcc $qauth($2)
  191.           writeini -n Users.ini $qauth($2) Logged OFF
  192.           msg $nick User added successfully! with the details: User: $4 $+ , Password: $5 $+ , Level: $3 $+ , QAccount: $qauth($2) $+ .
  193.         }  
  194.         if ($2 !ison %Schan) { msg $nick $stl($2 Must to be on the Channel: %Schan) }
  195.         if (!$regex($3,/Admin|Owner/i)) { msg $nick $stl(You must write the level of the user be (Admin/Owner).) }
  196.         if ($readini(Users.ini,$4,user)) { msg $nick $stl(The user $4 is already on the user list.) }
  197.         if (!$qauth($2)) { msg $nick $stl(The user $4 must to set //mode $me +x.) }
  198.         if (6 > $len($5)) { msg $nick $stl(The user password must to be more then 6 letters.) }
  199.         if ($usrinf($qauth($nick)).lvl == admin) { msg $nick $stl(only owner can use in this command) }
  200.       }
  201.       set -u3 %floods on  
  202.     }
  203.     if ($1 == !removeuser) || ($1 == !deluser) {
  204.       if ($readini(Users.ini,$2,user)) {
  205.         remini Users.ini $2
  206.         msg $nick $stl(The user $2 is successfuly delete from the user list)
  207.       }
  208.       else { msg $nick $stl(No Such User $2_ }
  209.       set -u3 %floods on
  210.     }
  211.     if ($usrinf($qauth($nick)).logged == on) {
  212.       if ($1 == !addserver) {
  213.         if ($ini(rents.ini,$2)) { msg $nick The server: $2 $+ $chr(44) is already in the list }
  214.         elseif (!$3) { msg $nick $stl(04Syntex Error!01 Usage: !addserver [ip-server] [rcon-password]) }
  215.         elseif ($3) && (!$ini(rents.ini,$2)) { srvadd $2 $3 msg $nick }
  216.         set -u3 %floods on
  217.       }
  218.       if ($1 == !delserver) || ($1 == !removeserver) {
  219.         if (!$ini(rents.ini,$2)) { msg $nick $stl(Error! The server $2 is not in the list) }
  220.         elseif (!$2) { msg $nick $stl(04Syntex Error!01 Usage: !delserver [ip-server]) }
  221.         elseif ($2) && ($ini(rents.ini,$2)) { srvdel $2 msg $nick }
  222.         set -u3 %floods on
  223.       }
  224.       if ($1 == !admins) { msg $nick $users | set -u3 %floods on }
  225.       if ($1 == !releaseall) { releaseall | set -u3 %floods on }
  226.     }
  227.     if ($1 == !info) {
  228.       if ($ini(rents.ini,$2)) { msg $nick $stl(Server ip: $readini(rents.ini,$v1,ip) $+ $chr(44) Rcon password: $readini(rents.ini,$v1,rcon) $+ $chr(44) $&
  229.           Connection port: $readini(rents.ini,$v1,port) $+ $chr(44) Status: $iif($readini(rents.ini,$v1,status) == free,03Free01,04Taken01 $+ $chr(44) By: $readini(rents.ini,%x,nick) $+ $chr(44) Timeleft: $replace($duration($timer(ID [ $+ [ $2 ] ]).secs,2),$chr(32),$chr(32) and $chr(32))) $&
  230.         Server connection: $readini(rents.ini,$v1,Connection) $+ .) }
  231.       else { msg $chan $stl(Syntax 04Error!01 Usage: !info [Number-Server]) }
  232.       set -u3 %floods on
  233.     }
  234.     if ($1 == !commands) { msg $nick $stl(Commands: !Addserver [ip-server] [rcon-password]15 $chr(149) 01!Delserver [ip-server]15 $chr(149) 01!info [number-server]15 $chr(149) 01!refresh. $&
  235.       Owners commands: !Adduser [nick] [level(owner/admin)] [user] [password]15 $chr(149) 01!Deluser [user],15 $chr(149) 01!Releaseall.) | set -u3 %floods on }
  236.   }
  237. }
  238. alias users {
  239.   var %x = 1, %y = 0
  240.   while (%x <= $ini(users.ini,0)) {
  241.     var %users = %users $iif($readini(users.ini,$ini(users.ini,%x),Logged == on),3•,4•) $+ 01 $+ $readini(users.ini,$ini(users.ini,%x),user) ( $+ $readini(users.ini,$ini(users.ini,%x),level) $+ )
  242.     if ($readini(users.ini,$ini(users.ini,%x),Logged == on)) inc %y
  243.     inc %x
  244.   }
  245.   return $stl(Users are: ( $+ $iif(%y == 0,14,03) $+ %y $+ 01/ $+ $ini(users.ini,0) $+ ) %users)
  246. }
  247.  
  248.  
  249. alias usrinf {
  250.   if ($prop == logged) { return $readini(users.ini,$1,logged) }
  251.   elseif ($prop == lvl) { return $readini(users.ini,$1,level) }
  252.   elseif ($prop == nick) { return $readini(users.ini,$1,nick) }
  253.   elseif ($prop == qacc) { return $readini(users.ini,$1,qacc) }
  254.   elseif ($prop == user) { return $readini(users.ini,$1,user) }
  255. }
  256.  
  257. menu * {
  258.   intersys Servers-bot
  259.   .Set channel { var %x = $input(Type channel,e,Type channel) | if (%x) && ($chr(35) $+ * iswm %x) { Set %Schan %x } }
  260.   .Servers system
  261.   ..Set Sponser { set %spons $input(Type Sponser,e,Type Sponser) }
  262.   ..Set Anticheat { set %antic $input(Type Anticheat,e,Type Anticheat) }
  263.   ..Set tags in the server { var %x = $input(Type tag to Team A (ex: Team A -),e,Type tag to Team A) | if (%x) { var %i = $input(Type tag to Team B (ex: Team B -),e,Type tag to Team B) | if (%i) { set %taga %x | set %tagb %i } } }  
  264.   ..Add Server { var %x = $input(Type server iport,e,Type server iport) | if (%x) { var %i = $input(Type rcon password,e,Type rcon password) | if (%i) { srvadd %x %i echo -ag } } }
  265.   ..Remove Server { var %x = $input(Type server iport,e,Type server iport) | if (%x) { srvdel %x echo -ag } }
  266.   ..Show Servers { showservers }
  267.   ..Release all { ReleaseALL }
  268.   .Users System  
  269.   ..Add user: {
  270.     var %inp = $$?="Enter Nickname:" | if (%inp) { var %lvl = $$?="Enter a Level(Admin/Owner):" | if (%lvl) { var %usr = $$?="Enter a Username:" | if (%usr) { var %pass = $$?="Enter a Password:" | if (%pass) {
  271.             writeini -n Users.ini $qauth(%inp) Nick %inp
  272.             writeini -n Users.ini $qauth(%inp) Level %lvl
  273.             writeini -n Users.ini $qauth(%inp) User %usr
  274.             writeini -n Users.ini $qauth(%inp) Pass %pass
  275.             writeini -n Users.ini $qauth(%inp) QAcc $qauth(%inp)
  276.             writeini -n Users.ini $qauth(%inp) Logged OFF
  277.             echo -ag User added successfully! with the details: User: %usr $+ , Password: %pass $+ , Level: %lvl $+ , QAccount: $qauth(%inp) $+ .
  278.           }
  279.         }
  280.       }
  281.     }
  282.   }
  283.   ..Remove user { var %x = $$?="Enter a Qacc of the user:" if ($ini(users.ini,%x)) .remini -n users.ini %x | echo -ag $stl(%x has Removed Succsesfuly!) }
  284.   ..Show users { showusers }
  285. }
  286.  
  287. ;                       ;
  288. ;;; Server Connection ;;;
  289. ;                       ;
  290.  
  291. alias RCONstart { echo -s (12RCON1)3 Starting RCONS ... | var %x 1, %y 1 | while ($data(%x)) { .timer 1 %y RCON %x | inc %x | inc %y 10 } }
  292. alias RCONclose { .timerRCON $+ $1 Off | .timerECHO $+ $1 Off |  rcmd $1 logaddress_del $ip $readini(rents.ini,$ini(rents.ini,$1),Port) | aunset $ini(rents.ini,$1) challenge | aset $ini(rents.ini,$1) Connection OFF | sockclose rcon $+ $1 * | echo -s (12RCON $1 $+ 1) 1---4Sockets closed1--- }
  293. alias RconLOG {
  294.   rcmd $1 nochn logaddress_del $ip $readini(rents.ini,$ini(rents.ini,$1),Port)
  295.   rcmd $1 nochn logaddress_del $ip $readini(rents.ini,$ini(rents.ini,$1),Port)
  296.   .timer -m 1 230 rcmd $1 nochn mp_logfile 1
  297.   .timer -m 1 260 rcmd $1 nochn mp_logdetail 2
  298.   .timer -m 1 290 rcmd $1 nochn sv_rcon_banpenalty 1
  299.   .timer -m 1 320 rcmd $1 nochn sv_rcon_maxfailures 20
  300.   .timer -m 1 350 rcmd $1 nochn sv_rcon_minfailures 20
  301.   .timer -m 1 380 rcmd $1 nochn sv_rcon_minfailuretime 1
  302.   .timer -m 1 420 rcmd $1 nochn log on
  303.   .timer -m 1 450 rcmd $1 nochn admin_ignore_immunity 1
  304.   .timer -m 1 480 rcmd $1 nochn logaddress_add $ip $readini(rents.ini,$ini(rents.ini,$1),Port)
  305.   .timer -m 1 500 echo -s (12RCON $1 $+ 1) 3* Open Socket Rcon LOG... *
  306. }
  307. ;/RCON <SERVER NUM> (/RCON 1,/RCON 2...)
  308. alias RCON {
  309.   if ($ip) echo -s (12RCON $1 $+ 1) 4* Starting RCON $1 *
  310.   echo -s (12RCON $1 $+ 1) Server IPort:12 $ini(rents.ini,$1)
  311.   echo -s (12RCON $1 $+ 1) Rcon password is:12 $readini(rents.ini,$ini(rents.ini,$1),Rcon)
  312.   echo -s (12RCON $1 $+ 1) Port is:12 $readini(rents.ini,$ini(rents.ini,$1),Port)
  313.   echo -s (12RCON $1 $+ 1) Your IP is:12 $ip
  314.   echo -s  | GETchallenge $1
  315.   sockudp -k rcon $+ $1 $+ LOG $readini(rents.ini,$ini(rents.ini,$1),Port) $replace($ini(rents.ini,$1),$chr(58),$chr(32)) $str($chr(255),4)
  316.   .timerLOG -m 1 750 RconLOG $1
  317. }
  318. alias GETchallenge { sockclose rcon $+ $1 $+ Challenge | sockudp -k rcon $+ $1 $+ Challenge $replace($ini(rents.ini,$1),$chr(58),$chr(32)) $str($chr(255),4) $+ challenge rcon }
  319. on *:udpread:rcon*Challenge: {
  320.   var %RCON-challenge
  321.   sockread %RCON-challenge
  322.   if ($gettok(%RCON-challenge,3,32) isnum) {
  323.     var %n = $remove($sockname,rcon,Challenge)
  324.     aset $ini(rents.ini,%n) challenge $gettok(%RCON-challenge,3,32)
  325.   }
  326.   elseif ($gettok(%RCON-challenge,3,32) !isnum) && ($readini(rents.ini,$ini(rents.ini,%n),Connection) !== Banned) {
  327.     aset $ini(rents.ini,%n) Connection Banned
  328.     RCONclose %n | echo -s 1(12RCON %n $+ 1)4 You are BANNED from the Server RCON Closed ! 2Check your Server details.
  329.   }
  330. }
  331. alias rcmd { if ($2 != nochn) GETchallenge $1 | sockudp -k rcon $+ $1 $+ CMD $replace($ini(rents.ini,$1),$chr(58),$chr(32)) $str($chr(255),4) $+ rcon $readini(rents.ini,$ini(rents.ini,$1),challenge) " $+ $readini(rents.ini,$ini(rents.ini,$1),Rcon) $+ " $iif($2 == nochn,$3-,$2-) }
  332. on *:udpread:rcon*LOG:{
  333.   var %LOG
  334.   sockread -f %LOG
  335.   while ($sockbr) {
  336.     if (%LOG) && (echo check !isin %LOG) RCON.DATA $remove($sockname,rcon,LOG) $gettok(%LOG,6-,32)
  337.     sockread -f %LOG
  338.   }
  339. }
  340. on *:udpread:rcon*CMD: {
  341.   var %CMD
  342.   var %n = $remove($sockname,rcon,CMD)
  343.   sockread -f %CMD
  344.   while ($sockbr) {
  345.     if ($mid(%CMD,1,5) == $+($str($chr(255),4),l)) tokenize 32 $mid(%CMD,6-)
  346.     else tokenize 32 %CMD
  347.     if (!$window(@Console $+ %n)) && ($1- != $null) /window -e @Console $+ %n
  348.     if ($1- != $null) && ($1- != check) && ($gettok($1-,6,32) !== check") && ($gettok($1-,5,32) !== echo) { echo @Console $+ %n (12RCON %n $+ 1) $1- }
  349.     if (echo check !isin $1-) RCON.DATA %n $1-
  350.     sockread -f %CMD
  351.   }
  352. }
  353. alias clr {
  354.   var %CLR.TEMP = $strip($gettok($1,1,34))
  355.   if ($prop == Steam) return $gettok($gettok(%CLR.TEMP,$calc($numtok(%CLR.TEMP,60) -1) $+ - $+ $numtok(%CLR.TEMP,60),60),1,62)
  356.   elseif ($prop == Steam2) return $gettok($gettok($gettok($gettok($1,3,34),1,34),$calc($numtok($gettok($gettok($1,3,34),1,34),60) -1) $+ - $+ $numtok($gettok($gettok($1,3,34),1,34),60),60),1,62)
  357.   elseif ($prop == Nick) return $remove(%CLR.TEMP,$right(%CLR.TEMP,$calc($len($remove($gettok($gettok(%CLR.TEMP,$calc($numtok(%CLR.TEMP,60) -1) $+ - $+ $numtok(%CLR.TEMP,60),60),2,62),<)) + $len($gettok($gettok(%CLR.TEMP,$calc($numtok(%CLR.TEMP,60) -1) $+ - $+ $numtok(%CLR.TEMP,60),60),1,62)) + $len($gettok($gettok(%CLR.TEMP,$calc($numtok(%CLR.TEMP,60) -2) $+ - $+ $numtok(%CLR.TEMP,60),60),1,62)) + 6)))
  358.   elseif ($prop == Said) return $strip($gettok($1,3,34))
  359.   elseif ($Prop == Nick2) Return $remove($gettok($1,3,34),$right($gettok($1,3,34),$calc($len($remove($gettok($gettok($gettok($1,3,34),$calc($numtok($gettok($1,3,34),60) -1) $+ - $+ $numtok($gettok($1,3,34),60),60),2,62),<)) + $len($gettok($gettok($gettok($1,3,34),$calc($numtok($gettok($1,3,34),60) -1) $+ - $+ $numtok($gettok($1,3,34),60),60),1,62)) + $len($gettok($gettok($gettok($1,3,34),$calc($numtok($gettok($1,3,34),60) -2) $+ - $+ $numtok($gettok($1,3,34),60),60),1,62)) + 6)))
  360.   elseif ($prop == Team) return $remove($gettok($gettok(%CLR.TEMP,$calc($numtok(%CLR.TEMP,60) -1) $+ - $+ $numtok(%CLR.TEMP,60),60),2,62),<)
  361.   elseif ($prop == Team2) return $remove($gettok($gettok($gettok($1,3,34),$calc($numtok($gettok($1,3,34),60) -1) $+ - $+ $numtok($gettok($1,3,34),60),60),2,62),<)
  362.   elseif ($prop == num) || ($prop == vote) || ($prop == votenum) return $gettok($gettok(%CLR.TEMP,$calc($numtok(%CLR.TEMP,60) -2) $+ - $+ $numtok(%CLR.TEMP,60),60),1,62)
  363.   elseif ($prop == triggered) return $gettok($strip($1),4,32)
  364.   elseif ($prop == Weapon) || ($prop == Gun) return $gettok($1,5,34)
  365.   Return $gettok($1,2,34)
  366. }
  367. alias RCON.DATA {
  368.   if (!$window(@Console $+ $1)) .window -e @Console $+ $1
  369.   var %rcon.dat = $2- , %rcon.said = $clr($2-).said , %rcon.id = $1 , %rcon.nick = $replace($clr($2-).nick,$chr(124),$chr(124)) , %rcon.nick2 = $replace($clr($2-).nick2,$chr(124),$chr(124)) , %rcon.steam = $clr($2-).steam , %rcon.steam2 = $clr($2-).steam2 , %rcon.num = $clr($2-).num , %r = rcmd , %rcon.weapon = $clr($2-).weapon , %rcon.team = $clr($2-).team , %rcon.team2 = $clr($2-).team2
  370.   var %trig $remove($clr($2-).triggered,")  
  371.   if (*Bad rcon_password.* iswm $2-) && ($readini(rents.ini,$ini(rents.ini,$1),Connection) !== BadRcon) { aset $ini(rents.ini,$1) Connection BadRcon | echo -s (12RCON $1 $+ 1) 4* BAD RCON PASSWORD - Closing RCON Socket... * }
  372.   if (Server shutdown isin $2-) { aset $ini(rents.ini,$1) Connection OFF | echo -s (12RCON $1 $+ 1) 4* SERVER SHUTDOWN - Closing RCON Socket... * }
  373.   if ( (Rcon: isin $2-) || (Logging disabled isin $2-) || (logaddress_del isin $2-) ) && (Bad Rcon !isin $2-) && ($readini(rents.ini,$ini(rents.ini,$1),Connection) !== ON) {
  374.     aset $data($1) Connection ON
  375.  
  376.     .timerRCON $+ $1 0 600 rcon $1
  377.     .timerECHO $+ $1 0 60 rcmd $1 echo Servers-Bot connection
  378.     echo -s (12RCON $1 $+ 1) 12Servers-Bot Connection to the SERVER !!!
  379.   }
  380.  
  381.   if ($2- == World triggered "Round_Start") && ($uploadscore($data(%rcon.id))) {
  382.     if ($calc($score($data(%rcon.id)).A + $score($data(%rcon.id)).B) == 14) && ($data($ini(rents.ini,%rcon.id)).half == First) { tsay %rcon.id This is the last round, Good Luck & Have fun. | ssay %rcon.id This is the last round, Good Luck & Have fun. }
  383.     if ($score($data(%rcon.id)).A == 15) && ($data(%rcon.id).half == Second) { tsay %rcon.id Last Round For Team A! Good luck and Have fun! | ssay %rcon.id Last Round For Team A! Good luck and Have fun! }
  384.     if ($score($data(%rcon.id)).B == 15) && ($data(%rcon.id).half == Second) { tsay %rcon.id Last Round For Team B! Good luck and Have fun! | ssay %rcon.id Last Round For Team B! Good luck and Have fun! }
  385.   }
  386.   if ($2- == World triggered "Round_End") && ($uploadscore($data(%rcon.id))) {
  387.     serverscore %rcon.id
  388.     if ($score($data(%rcon.id)).A == 16) gend %rcon.id A
  389.     if ($score($data(%rcon.id)).B == 16) gend %rcon.id B
  390.     if ($calc($score($data(%rcon.id)).A + $score($data(%rcon.id)).B) == 15) && (!$data(%rcon.id).score-A) && (!$data(%rcon.id).score-B) Ghalf1 $data(%rcon.id)
  391.   }
  392.   if ($istok(Target_Bombed Hostages_Not_Rescued Bomb_Defused CTs_Win Terrorists_Win Target_Saved,%trig,32)) && ($uploadscore($data(%rcon.id)))  {
  393.     aset $data(%rcon.id) score-t $gettok($2-,8,34)
  394.     aset $data(%rcon.id) score-ct $gettok($2-,6,34)
  395.   }
  396.   if ($2 isnum) && ($3 == :) && ($5 == :) && ($6) {
  397.     echo -s $1-
  398.     var %rcon.nick = $6-
  399.     var %id = $2
  400.     :Teamer
  401.     if ($gettok($timer(Teamer).com,3-,32)) {
  402.       var %move = $gettok($timer(Teamer).com,3-,32)
  403.       if ($gettok(%move,2,32) == CT) {
  404.         if ($taga isin %rcon.nick) { rcmd %rcon.id admin_command admin_execclient %id "chooseteam;menuselect 2 }
  405.         else { rcmd %rcon.id admin_command admin_execclient %id "chooseteam; menuselect 1 }
  406.       }
  407.       else {
  408.         if ($taga isin %rcon.nick) { rcmd %rcon.id admin_command admin_execclient %id "chooseteam;menuselect 1 }
  409.         else { rcmd %rcon.id admin_command admin_execclient %id "chooseteam;menuselect 2 }
  410.       }
  411.     }
  412.   }
  413.   if (echo check !isin $2-) { echo @Console $+ $1 (12RCON $1 $+ 1) $$2- }
  414.   if (Bad Rcon: "rcon* iswm %rcon.dat) { aset $ini(rents.ini,$1) Connection BadRcon }
  415.   if (You have been banned from this server. == %Rcon.dat) && ($readini(rents.ini,$ini(rents.ini,$1),Connection) !== Banned) { aset $ini(rents.ini,$1) Connection Banned }
  416.   if ( ($clr($2-) == say) || ($clr($2-) == say_team) ) && (!%Bot.S. [ $+ [ %rcon.id ] ]) && ($readini(rents.ini,$ini(rents.ini,%rcon.id),SteamID) == %RCON.Steam) {
  417.     Tokenize 32 $clr($2-).said
  418.     if ($1 == !score) { Set -u2 %Bot.S $+ %rcon.id On | serverscore %rcon.id }
  419.     if ($1 == !rr) { Set -u2 %Bot.S $+ %rcon.id On | rcmd %rcon.id sv_restart $iif($2 isnum,$2,1) }
  420.     if ($1 == !Kick) { Set -u2 %Bot.S $+ %rcon.id On | rcmd %rcon.id admin_command admin_kick $2- }    
  421.     if ($1 == !pass) && ($2) { Set -u2 %Bot.S $+ %rcon.id On | rcmd %rcon.id sv_password $2- | ssay %rcon.id %rcon.nick "[Password] Serverer Password is Now: $2- }
  422.     if ($1- == !NoPass) { Set -u2 %Bot.S $+ %rcon.id On | rcmd %rcon.id admin_command admin_nopass }
  423.     if ($1 == !Map) && ($2) { Set -u2 %Bot.S $+ %rcon.id On | rcmd %rcon.id admin_command admin_map $2 }    
  424.     if ($1- == !prac) { Set -u5 %Bot.S $+ %rcon.id On | PRAC %rcon.id | Esay %rcon.id [Prac] Prac Setting loaded by %rcon.nick }    
  425.     if ($1- == !MR15) { Set -u5 %Bot.S $+ %rcon.id On | MR15 %rcon.id | Esay %rcon.id [MR15] MR15 Setting loaded by %rcon.nick }  
  426.     if ($1 == !T) && ($2) { Set -u2 %Bot.S $+ %rcon.id On | MOVE-T %rcon.id $2- }
  427.     if ($1 == !CT) && ($2) { Set -u2 %Bot.S $+ %rcon.id On | MOVE-CT %rcon.id $2- }      
  428.     if ($1 == !Slay) && ($2) { Set -u2 %Bot.S $+ %rcon.id On | rcmd %rcon.id admin_command admin_slay $2- }
  429.     if ($1 == !Name) && ($2) { Set -u2 %Bot.S $+ %rcon.id On | rcmd %rcon.id admin_command admin_execclient $2 name " $+ $3- }
  430.     if ($1 == @) || ($1 == !) || ($1 == !tsay) { Set -u2 %Bot.S $+ %rcon.id On | rcmd %rcon.id admin_command admin_tsay $2- }
  431.     if ($1 == !ssay) { Set -u2 %Bot.S $+ %rcon.id On | Ssay %rcon.id $2- }
  432.     if ($1 == !tax) { rcmd %rcon.id admin_command admin_freezetime 59 | rcmd %rcon.id sv_Restart 1 | Esay %rcon.id [TAX] TAX Setting loaded by %rcon.nick }
  433.     if ($1 == !Knife) {
  434.       mr15 %rcon.id
  435.       .timer 1 2 ssay %rcon.id ..::Knife Round Has Been Started:::..
  436.       .timer 1 2 ssay %rcon.id ..::Knife Round Has Been Started:::..
  437.       .timer 1 2 ssay %rcon.id Dont TK, Throw Grenades or Quit!
  438.       .timer 6 2 rcmd %rcon.id admin_command admin_execall drop
  439.     }
  440.     if ($1 == !disconnect) || ($1 == !Quit) { Set -u2 %Bot.S $+ %rcon.id On | rcmd %rcon.id admin_command admin_execall disconnect }
  441.     if ($1 == !FF) {
  442.       if ($2 == ON) || ($2 == 1) { Set -u2 %Bot.S $+ %rcon.id On | ssay %rcon.id Friendlyfire is ON now. | rcmd %rcon.id mp_friendlyfire 1 }
  443.       if ($2 == OFF) || ($2 == $chr(48)) { Set -u2 %Bot.S $+ %rcon.id On | ssay %rcon.id Friendlyfire is OFF now. | rcmd %rcon.id mp_friendlyfire 0 }
  444.     }
  445.     if ($1 == !Help) || ($1 == !Commands) {
  446.       Esay %rcon.id [HELP] Admin Commands Are: !Pass ¬ !NoPass ¬ !Slay ¬ !Map ¬ !RR ¬ !CT/T ¬ !Name ¬ !Kick $+ .
  447.       Esay %rcon.id [HELP] Admin Commands Are: !MR15 ¬ !Prac ¬ !Rates ¬ !Live ¬ !Notlive ¬ !Quit ¬ !Tax ¬ !Knife $+ .
  448.       Esay %rcon.id [HELP] Admin Commands Are: !Ssay ¬ !Swap CT/T ¬ !End ¬ !Tsay $+ .
  449.     }
  450.     if ($1-2 == !swap t) { teamer %rcon.id t }
  451.     if ($1-2 == !swap ct) { teamer %rcon.id ct }
  452.     if ($1 == !Fz) { Set -u2 %Bot.S $+ %rcon.id On | ssay %rcon.id Freezetime is $2 now. | rcmd %rcon.id mp_freezetime $2 }
  453.     if ($1 == !ss) { Set -u2 %Bot.S $+ %rcon.id On | tsay %rcon.id Snapshot has just taken by the admin ( $+ %rcon.nick $+ ) | rcmd %rcon.id rcmd admin_quiet 1 | rcmd allow_client_exec 1 | rcmd admin_command admin_execall snapshot | rcmd admin_quiet 2 }
  454.     if ($1 == !Rates) { Set -u2 %Bot.S $+ %rcon.id On | Rates %rcon.id | Esay %rcon.id [Rates] Rates Setting loaded by %rcon.nick }    
  455.     if ($1 == !End) { Set -u2 %Bot.S $+ %rcon.id On | gend %rcon.id }
  456.     if ($1 == !notLive) {
  457.       aset %rcon.id supload off
  458.       Esay %rcon.id [NotLive] The Game Has Been Paused
  459.     }    
  460.     if ($1 == !live) {
  461.       if ($taga !isin %rcon.nick) && ($tagb !isin %rcon.nick) { tsay %rcon.id To set Live You must to set $taga in Your nick }
  462.       else {
  463.         aset $data(%rcon.id) supload on
  464.         setscore $data(%rcon.id)
  465.         if ($data($ini(rents.ini,%rcon.id)).half == $null) { aset $data(%rcon.id) half start }
  466.         if ($istok(start First,$data($ini(rents.ini,%rcon.id)).half,32)) {
  467.           aset $data(%rcon.id) half First
  468.           RCMDfirstlife %rcon.id
  469.           if (%rcon.team == CT) {
  470.             if ($taga isin %rcon.nick) aset $data(%rcon.id) ctis A
  471.             if ($tagb isin %rcon.nick) aset $data(%rcon.id) ctis B
  472.           }
  473.           if (%rcon.team == TERRORIST) {
  474.             if ($taga isin %rcon.nick) aset $data(%rcon.id) ctis B
  475.             if ($tagb isin %rcon.nick) aset $data(%rcon.id) ctis A
  476.           }
  477.         }
  478.         if ($istok(Second half1,$data($ini(rents.ini,%rcon.id)).half,32)) {
  479.           aset $data(%rcon.id) half Second
  480.           RCMDsecondlife %rcon.id
  481.         }
  482.       }  
  483.     }
  484.   }
  485. }
  486.  
  487.  
  488. ;alias ctag { var %1 = $1 | .timerCTag -m 1 3500 CTag x $1 | .timer -m 1 500 rcmd %1 users }
  489. alias taga { return %taga }
  490. alias tagb { return %tagb }
  491. alias gend {
  492.   var %1 $1
  493.   if ($data(%1).status == off) { halt }
  494.   if ($2) {
  495.     ssay %1 ..::The Game has ENDED! Team $2 Won.!::..
  496.     ssay %1 ..::The Game has ENDED! Team $2 Won.!::..
  497.     tsay %1 ..::The Game has ENDED! Team $2 Won.!::..
  498.     tsay %1 ..::The Game has ENDED! Team $2 Won.!::..
  499.     msg %Schan $stl(14The game in server  $+ %1 $+  has ENDED! Team  $+ $2 $+  Won.)
  500.   }
  501.   else {
  502.     ssay %1 ..::The Game is ENDED!::..
  503.     ssay %1 ..::The Game is ENDED!::..
  504.     tsay %1 ..::The Game is ENDED!::..
  505.     tsay %1 ..::The Game is ENDED!::..
  506.     msg %Schan $stl(14Game in server $+  %1 $+  Has ENDED!)
  507.   }
  508.   rcmd %1 sv_password $r(100,999)
  509.   aunset $data(%1) supload half ctis score-A score-B score-CT score-T
  510. }
  511. alias data {
  512.   var %file rents.ini
  513.   if ($1) {
  514.     if ($readini(%file,$1,$prop)) {
  515.       return $$v1
  516.     }
  517.     if (!$prop) && ($ini(%file,$1)) { return $ini(%file,$1) }
  518.   }
  519. }
  520. alias serverscore {
  521.   var %1 $1
  522.   if ($data(%1).half == start) ssay %1 Score Is Not Live Yet!
  523.   else { ssay %1 [SCORE] Score is - Team-A: $calc($score($data(%1)).A + 0 ) Team-B: $calc($score($data(%1)).B + 0 ) $+([,$data($ini(rents.ini,%1)).half Half]) }
  524.  
  525. }
  526. alias swap {
  527.   var %1 $1
  528.   if ($data(%1).ctis == A) teamer $data(%1) T
  529.   elseif ($data(%1).ctis == B) teamer $data(%1) CT
  530. }
  531. alias Teamer {
  532.   var %1 $1
  533.   if (!$1) || ($1 = X) Halt
  534.   if ($2 != CT) && ($2 != T) Halt
  535.   .timerTEAMer -m 1 3500 Teamer x $1-2
  536.   rcmd %1 admin_quiet 2
  537.   rcmd %1 allow_client_exec 1
  538.   rcmd %1 admin_ignore_immunity 1
  539.   rcmd %1 admin_command admin_execall setinfo "_vgui_menus" "0"
  540.   .timer -m 1 500 rcmd %1 users
  541. }
  542.  
  543. alias uploadscore {
  544.   var %1 $1
  545.   if ($data(%1).supload != on) return $false
  546.   elseif ($data(%1).half == start) return $false
  547.   elseif (half isin $data(%1).half) return $false
  548.   return $true
  549. }
  550. alias setscore {
  551.   var %1 $1
  552.   aset %1 score-ct 0
  553.   aset %1 score-t 0
  554. }
  555. alias score {
  556.   if ($isid) {
  557.     var %1 $1
  558.     var %p $prop
  559.     var %ct $data(%1).ctis
  560.     var %half $data(%1).half
  561.     var %s-ct $data(%1).score-CT
  562.     var %s-t $data(%1).score-T
  563.     var %s-a $data(%1).score-A
  564.     var %s-b $data(%1).score-B
  565.     if (%p == A) {
  566.       if (%ct == A) {
  567.         if (%half == First) { return %s-ct }
  568.         if (%half == Half1) { return %s-a }
  569.         if (%half == Second) { return $calc(%s-t + %s-a) }
  570.       }
  571.       if (%ct == B) {
  572.         if (%half == First) { return %s-t }
  573.         if (%half == Half1) { return %s-a }
  574.         if (%half == Second) { return $calc(%s-ct + %s-a) }
  575.       }
  576.     }
  577.     if (%p == B) {
  578.       if (%ct == a) {
  579.         if (%half == First) { return %s-t }
  580.         if (%half == Half1) { return %s-b }
  581.         if (%half == Second) { return $calc(%s-ct + %s-b) }
  582.       }
  583.       if (%ct == B) {
  584.         if (%half == First) { return %s-ct }
  585.         if (%half == Half1) { return %s-b }
  586.         if (%half == Second) { return $calc(%s-t + %s-b) }
  587.       }
  588.     }
  589.     if (%half == start) { return Not-Live }
  590.   }
  591. }
  592. alias aunset {
  593.   var %file Rents.ini
  594.   var %s $1
  595.   tokenize 32 $2-
  596.   remini -n %file %s $*
  597. }
  598. alias aset {
  599.   var %file Rents.ini
  600.   if ($3) || ($3 == 0) writeini -n %file $1-
  601.   else { echo -ts BAD ASET COMMAND!!! //writeini -n %file $replace($1-,0,$chr(48)) }
  602. }
  603. alias RCMDfirstlife {
  604.   var %1 $1
  605.   mr15 %1
  606.   msg %Schan $stl(14The Game in server  $+ %1 $+ : First Half is Now Starting!)
  607.   .timer 1 1 ssay %1 Preparing for starting game, Please Wait..
  608.   .timer 1 3 ssay %1 The Game is Starting after the Restart! Good Luck!
  609.   .timer 1 4 rcmd %1 sv_restart 1
  610.   .timer 1 9 ssay %1 ..::LIVE. Game started! -> TEAM KILL = BAN::..
  611.   .timer 1 9 ssay %1 Match is live! First half started, Score is - Team-A: 0 Team-B: 0.
  612. }
  613.  
  614. alias RCMDsecondlife {
  615.   var %1 $1
  616.   mr15 %1
  617.   msg %Schan $stl(14The Game in server  $+ %1 $+ : Second Half is Now Starting!)
  618.   .timer 1 2 ssay %1 Preparing for starting game, Please Wait..
  619.   .timer 1 4 ssay %1 The Second Half is Starting after the Restart! Good Luck!
  620.   .timer 1 6 rcmd %1 sv_restart 1
  621.   .timer 1 9 ssay %1 Match is live! Second half started, Score is - Team-A: $score($data(%1)).A Team-B: $score($data(%1)).B
  622. }
  623.  
  624.  
  625. alias ghalf1 {
  626.   var %1 $1
  627.   aset %1 score-A $score(%1).A
  628.   aset %1 score-B $score(%1).B
  629.   aset %1 supload off
  630.   aset %1 half half1
  631.   ssay $data(%1) First Half Is Ended! Score: [Team-A: $score(%1).A Team-B: $score(%1).B $+ ]
  632.   tsay $data(%1) First Half Is Ended! Score: [Team-A: $score(%1).A Team-B: $score(%1).B $+ ]
  633.   swap %1
  634. }
  635. alias Esay { rcmd $1 admin_command admin_ssay $$2- }
  636. alias tsay { rcmd $1 admin_command admin_tsay $2- }
  637. alias ssay { rcmd $1 admin_command admin_ssay $+([,%Schan,]) $$2- }
  638. alias MOVE-T { rcmd $1 admin_quiet 2 | rcmd $1 admin_command admin_execclient $1- setinfo "_vgui_menus" "0" | rcmd $1 admin_command admin_execclient $2- chooseteam | rcmd $1 admin_command admin_execclient $2- menuselect 1 }
  639. alias MOVE-CT { rcmd $1 admin_quiet 2 | rcmd $1 admin_command admin_execclient $1- setinfo "_vgui_menus" "0" | rcmd $1 admin_command admin_execclient $2- chooseteam | rcmd $1 admin_command admin_execclient $2- menuselect 2 }
  640. alias MR15 {
  641.   rcmd $1 alias mr122k "admin_ignore_immunity 1;default_access 0;mr121"
  642.   rcmd $1 alias mr121 "mp_forcecamera 2;mp_forcechasecam 2;mp_c4timer 35;mr122"
  643.   rcmd $1 alias mr122 "mp_autoteambalance 0;mp_limitteams 0;mp_startmoney 800;mr123"
  644.   rcmd $1 alias mr123 "mp_autokick 0;mp_friendlyfire 1;mp_freezetime 8;mr124"
  645.   rcmd $1 alias mr124 "mp_roundtime 1.75;mp_buytime 0.15;mp_fadetoblack 0;mr125"
  646.   rcmd $1 alias mr125 "sv_alltalk 0;sv_gravity 800;mp_tkpunish 0;sv_restart 1"
  647.   rcmd $1 mr122k
  648. }
  649. alias PRAC {
  650.   rcmd $1 alias prac122k "admin_ignore_immunity 1;default_access 0;Prac1"
  651.   rcmd $1 alias Prac1 "mp_forcecamera 0;mp_forcechasecam 0;mp_c4timer 35;Prac2"
  652.   rcmd $1 alias Prac2 "mp_autoteambalance 0;mp_limitteams 0;mp_startmoney 16000;Prac3"
  653.   rcmd $1 alias Prac3 "mp_autokick 0;mp_friendlyfire 0;mp_freezetime 0;Prac4"
  654.   rcmd $1 alias Prac4 "mp_roundtime 7;mp_buytime 9;mp_fadetoblack 0;Prac5"
  655.   rcmd $1 alias Prac5 "sv_alltalk 1;sv_gravity 800;mp_tkpunish 0;sv_restart 1"
  656.   rcmd $1 prac122k
  657. }
  658. alias Rates {
  659.   rcmd $1 alias r122k "sv_maxrate 25000;sv_maxupdaterate 101;sv_minrate 15000;sv_maxcmdrate 101;r121"
  660.   rcmd $1 alias r121 "sv_minupdaterate 20;sv_maxspeed 320;sv_ticrate 1000;r122"
  661.   rcmd $1 alias r122 "sv_region 3;restart"
  662.   rcmd $1 r122k
  663. }
  664. alias RetryRCONS {
  665.   echo -s 1(12RCONS1) 3Retrying rcons ...
  666.   Sockclose *
  667.   .timerRCON* Off
  668.   .timerECHO* Off
  669.   .timer 1 3 RCONstart
  670. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement