Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;; Multi Gatherbot ADV by Ventox ;;;;;;;;;
- ;;;;;;;;;;;;;;;;; Edit by Aero ;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- alias findport {
- :start
- var %port = 7 $+ $r(1,9) $+ $r(1,9) $+ $r(1,9)
- if ($isport(%port)) goto start
- return %port
- }
- alias isport {
- var %x = 1
- while ($var(%Gather*.Status,%x)) {
- if ($data(%x).Port == $1) { return %x }
- inc %x
- }
- }
- alias Timenow {
- if (06:00:00 <= $time) && (12:00:00 >= $time) { echo -as morning | set %Gather.Time Good Morning }
- if (12:00:00 <= $time) && (16:00:00 >= $time) { echo -as Afternoon | set %Gather.Time Good Afternoon }
- if (16:00:00 <= $time) && (22:00:00 >= $time) { echo -as evening | set %Gather.Time Good Evening }
- if (22:00:00 <= $time) && (06:00:00 >= $time) { echo -as night | set %Gather.Time Good Night }
- }
- alias findsign { return $gettok(! @ + * - ^ . & ~,$1,32) }
- alias findcolor { return $gettok(07 11 04 09 08 10 13 05 03,$1,32) }
- ;$stl(num,msg)
- alias stl { return $data($1).style1 $2- $data($1).style2 }
- alias CheckAdminsLogin {
- var %x 1, %count 0, %timer 1
- while ($ini(Access.ini,Access,%x)) {
- var %temp = $v1
- var %time = $calc($ctime - $ctime($gettok($acc(%temp).lastlogin,1,45)))
- if ($acc(%temp).lvl == %GatherLV1.P) && (%time >= 604800) {
- .writeini -n Access.ini DeletedUsers $acc(%temp).steam %temp Admin Gatherbot-System $date $2 $acc(%temp).Gathers didnt login for a week
- .timer 1 %timer DeleteUser %temp
- inc %timer 30
- inc %count
- }
- inc %x
- }
- echo -s Admins removed: %count
- }
- alias LastRun { msg %Gather.Channel $stlmain(Last Gather has on: $+ %Gather.Color2 %Gather.LastStarted) }
- alias LastGather { msg %Gather.Channel $stl($1,Last Gather on Server $data($1).Color2 $+ $1 $+ $data($1).Color1 was on: $+ $data($1).Color2 $data($1).LastGather) }
- alias ShowYesterdayGathers {
- msg %Gather.Channel $stlmain(Yesterday the GatherBot counted < $+ %Gather.Color2 $+ $+ %Gather.Yesterday $+ %Gather.Color1 $+ > active Gathers. ( $+ %Gather.Color2 $+ %Gather.yesterdaydate $+ %Gather.Color1 $+ ))
- var %x 1, %temp
- while ($ini(Today.ini,%x)) {
- var %temp = %temp ( $+ $data(%x).Color2 $+ $data(%x).Sign $+ $data(%x).Color1 $+ ) $+ Gather $v1 $+ : $+ %Gather.Color2 $readini(Today.ini,%x,Yesterday) $+ %Gather.Color1 $iif($ini(Today.ini,0) !== %x,$chr(152))
- inc %x
- }
- if (%temp) msg %Gather.Channel $stlmain(%temp)
- }
- ON *:disconnect: { //part all | var %c1 $r(7,9) | .timercon 0 70 /if ($status == disconnected) { server us.quakenet.org 666 $+ %c1 } }
- ON *:CONNECT: { if (!%Gather.Today) { Set %Gather.Today 0 } | if (%Gather.WebsiteSystem == ON) { .timer 1 10 START_TIMER } | unset %Gather.Cant* | unset %Gather.FldNotice | unset %Gather.Flood | unset %Gather.CantStart | unset %Gather.CantGetPass | /auth ch-Gathers 54SccRvqH4 | .timer 1 1 mode $me +x | .timer 1 1 mode $me +r | service | .timer 1 1 CheckBanTimes | .timerCheckBanTimes 0 600 CheckBanTimes | .timer 1 3 RCONstart | Set -u6 %Gather.Flood ON | .timer 2 5 /nick ch|Gathers | .timer 1 8 join %Gather.Channel | .timer 1 8 join %Gather.logChannel | /ignore -r *!*@* }
- ON *:TEXT:*:*: {
- if (%Gather.WebsiteSystem == ON) { Start_timer }
- if (%Gather.WebsiteSystem == ON) && ($upload(Gathers)) { dupdate_Gathers }
- if ($gettok(%Gather.LastStarted,3,32) !== $date) && (%Gather.LastReset !== $date) { Reset-Today }
- if ($target ischan) && (%Gather.Channel == $target) {
- if ($1- == $Sign(%Gather.Adding,Add)) && (%Gather.Adding) && (!$istok($data(%Gather.Adding).address,$address,32)) && ($numtok($data(%Gather.Adding).players,32) !== $data(%Gather.Adding).Max) && ($nick !== $data(%Gather.Adding).Admin) {
- if (%Gather.Premium == OFF) || (%Gather.Adding != %Gather.PremiumNum) {
- aset %Gather.Adding Players $data(%Gather.Adding).Players $nick
- aset %Gather.Adding Address $data(%Gather.Adding).Address $address
- set -u2 %Gather.FLood ON
- if (!%Gather.Flood) && ($numtok($data(%Gather.Adding).players,32) !== $data(%Gather.Adding).Max) { ShowPlayers %Gather.Adding | Set -u5 %Gather.Flood ON }
- elseif ($numtok($data(%Gather.Adding).players,32) == $data(%Gather.Adding).Max) { Set -u60 %Gather.Flood ON | Set -u20 %Gather.CantNotice ON | var %z = %Gather.Adding | unset %Gather.Adding | mode %Gather.Channel +m | EndAdding %z }
- }
- if (%Gather.Premium == ON) && (%Gather.Adding == %Gather.PremiumNum) && ($readini(Premium.ini,ADDRESS,$wildsite)) {
- aset %Gather.Adding Players $data(%Gather.Adding).Players $nick
- aset %Gather.Adding Address $data(%Gather.Adding).Address $address
- set -u2 %Gather.FLood ON
- if (!%Gather.Flood) && ($numtok($data(%Gather.Adding).players,32) !== $data(%Gather.Adding).Max) { ShowPlayers %Gather.Adding | Set -u5 %Gather.Flood ON }
- elseif ($numtok($data(%Gather.Adding).players,32) == $data(%Gather.Adding).Max) { Set -u60 %Gather.Flood ON | Set -u20 %Gather.CantNotice ON | var %z = %Gather.Adding | unset %Gather.Adding | mode %Gather.Channel +m | EndAdding %z }
- }
- }
- if ($right($1-,-1) == Sub) && ($findtok(%Gather.Signs,$left($1,1),32)) {
- var %n = $v1
- if ($data(%n).sub) && (!$isnick(%n,$nick)) && (!$isaddress(%n,$address)) { SubFound %n $nick $address | Set -u5 %Gather.Flood ON }
- elseif (!$data(%n).sub) && ($data(%n).Status == ON) && (!%Gather.Flood) && (!%Gather.Adding) { msg %Gather.Channel $stl(%n,Sub is not needed right now.) | Set -u5 %Gather.Flood ON }
- }
- ;elseif ($1 == $SignMain(Tags)) && (%Gather.TAG-A) { msg %Gather.Channel $stlmain(Team A: $+ %Gather.Color2 A. $+ %Gather.Color1 $chr(124) Team B: $+ %Gather.Color2 B.) }
- elseif ( ($right($1-,-1) == Server) || ($right($1-,-1) == IP) ) && (!%Gather.Flood) && (!%Gather.Adding) && ($findtok(%Gather.Signs,$left($1,1),32)) { ShowServer $v1 | Set -u4 %Gather.Flood ON }
- elseif ( ($right($1-,-1) == Getpass) || ($right($1-,-1) == getpassword) ) && (!%Gather.Flood) && ($findtok(%Gather.Signs,$left($1,1),32)) { whois $nick | Getpass $v1 $nick $address | Set -u5 %Gather.Flood ON }
- elseif ($1- == $SignMain(Online)) { msg %Gather.Channel $stlmain(Total users Online on GatherBot: $iif($ini(Access.ini,Address),03,04) $+ $ini(Access.ini,Address,0) $+ %Gather.Color1 $+ / $+ %Gather.Color2 $+ $ini(Access.ini,Access,0) $+ %Gather.Color1 ) | Set -u4 %Gather.Flood ON }
- elseif ($1 == $SignMain(Yesterday)) { ShowYesterdayGathers | set -u4 %Gather.Flood ON }
- if (%Gather.Adding) {
- var %n = $v1
- if (($1- == $Sign(%n,Del)) || ($1- == $Sign(%n,Remove))) && ($isaddress(%n,$address)) && ($isnick(%n,$nick)) && ($nick !== $data(%n).Admin) { aset %n Players $remtok($data(%n).players,$nick,32) | aset %n Address $remtok($data(%n).address,$address,32) | if (!%Gather.Flood) { ShowPlayers %n | Set -u5 %Gather.Flood ON } }
- if (!%Gather.Flood) {
- var %n = %Gather.Adding
- if ($1- == $Sign(%n,Status)) { ShowAddingStatus %Gather.Adding | Set -u5 %Gather.Flood ON }
- elseif ($1- == $Sign(%n,Players)) { ShowPlayers %Gather.Adding | Set -u5 %Gather.Flood ON }
- elseif ($1- == $Sign(%n,Vent)) || ($1- == $Sign(%n,Ventrilo)) { ShowVentrilo | Set -u5 %Gather.Flood ON }
- elseif ($1- == $Sign(%n,Map)) { ShowMap %Gather.Adding | Set -u5 %Gather.Flood ON }
- elseif ($1- == $Sign(%n,Admin)) { ShowAdmin %Gather.Adding | Set -u5 %Gather.Flood ON }
- }
- }
- if ($islogged($gettok($address,2-,64))) {
- var %u $v1, %lvl $acc(%u).lvl
- var %n = $v1
- var %Access = $replace(%lvl,%GatherLV3.P,3,%GatherLV2.P,2,%GatherLV1.P,1)
- if (!%Gather.CantNotice) && ( ($right($1,-1) == Notice) || ($right($1,-1) == N) ) && ($2) && (!%Gather.FldNotice) && (!%Gather.Flood) && ($findtok(%Gather.Signs,$left($1,1),32)) { var %n = $v1 | Set -u5 %Gather.FldNotice ON | Noticer %n $2- | Set -u2 %Gather.Flood ON }
- elseif ($1 == $Sign(%Gather.Adding,Change)) && (!%Gather.FLood) && ( ($2 == 8) || ($2 == 10) || ($2 == 12) || ($2 == 4) || ($2 == 6) || ($2 == 2) ) && (%Gather.Adding) { aset %Gather.Adding Max $2 | msg %Gather.Channel $stl(%Gather.Adding,Max players has changed to $+ $data(%Gather.Adding).Color2 $2 $data(%Gather.Adding).Color1 $+ by $+ $data(%Gather.Adding).Color2 $nick) | Set -u4 %Gather.Flood ON }
- elseif (!%Gather.CantNotice) && ( ($right($1-,-1) == Notice) || ($right($1-,-1) == N) ) && (!%Gather.FldNotice) && ($findtok(%Gather.Signs,$left($1,1),32)) && ($findtok(%Gather.Signs,$left($1,1),32) == %Gather.Adding) { Set -u5 %Gather.FldNotice ON | NoticeAdd | Set -u3 %Gather.Flood ON }
- elseif ( ($right($1,-1) == Stop) || ($right($1,-1) == Stopgather) ) && ($findtok(%Gather.Signs,$left($1,1),32) == %Gather.Adding) && ($findtok(%Gather.Signs,$left($1,1),32)) { var %n = $v1 | StopGather %Gather.Adding $nick $2- }
- elseif ($1 == $Sign(%Gather.Adding,Map)) && (!%Gather.FLood) && ($2) && ($chr(37) !isin $2) && ($chr(36) !isin $2) && ($chr(124) !isin $2) && ($ismap($2)) { ChangeMap %Gather.Adding $2 | set -u4 %Gather.FLood 1 }
- elseif ($1 == $SignMain(BanFlame)) && ($2) { AddBanTime $2 %u CHAN 1 Flaming Crew/Players. }
- elseif ($1 == $SignMain(BanAFK)) && ($2) { AddBanTime $2 %u CHAN 1 AFK In a gather above 3 rounds. }
- elseif ($1 == $SignMain(BanTK)) && ($2) { AddBanTime $2 %u CHAN 1 Tk team members. }
- elseif ($1 == $SignMain(Ban)) && (%Access >= 7) && ($3) { AddBan $2 %u CHAN $3- }
- elseif ($1 == $SignMain(Unban)) && ($2) { Unban $2 %u CHAN }
- elseif ($1 == $SignMain(Banlast)) && ($2) { AddBanTime $2 %u CHAN 1 left in the middle. }
- elseif ($1 == $SignMain(BanTime)) && ($4) { AddBanTime $2 %u CHAN $3 $iif($4-,$4-,no reason) }
- elseif ( ($right($1-,-1) == Server) || ($right($1-,-1) == IP) ) && (!%Gather.Flood) && (%Gather.Adding) && ($findtok(%Gather.Signs,$left($1,1),32)) { ShowServer $v1 | Set -u4 %Gather.Flood ON }
- elseif ( ($right($1-,-1) == Fixpass) || ($right($1-,-1) == Passfix) ) && (!%Gather.Flood) && ($findtok(%Gather.Signs,$left($1,1),32)) { FixServerPass $v1 $nick %lvl | Set -u4 %Gather.Flood ON }
- elseif ($1 == $SignMain(Serverlist)) && (%Access >= 7) { Serverlist }
- elseif ($1 == $SignMain(Stoplist)) && (%Access >= 7) { ServerlistStop }
- elseif ($1 == $SignMain(Refresh)) {
- if (!$2) && (%Access >= 5) { Unset %Gather.Flood | sockclose rcon* | .timerRCON* OFF | .timer 1 1 RCONstart | msg %Gather.Channel $stlmain(Gatherbot refresh all the Server!) }
- if ($data($2).Status == ON) && ($2 isnum) && ($nick == $data($2).Admin) {
- .timerrcon $+ $2 off
- sockclose rcon $+ $2
- rcon $2
- msg %Gather.Channel $stlmain(Gatherbot Refresh Server %Gather.Color2 $+ $2 $+ %Gather.Color1 $+ )
- halt
- }
- elseif ($2 isnum) && (%Access >= 5) {
- .timerrcon $+ $2 off
- sockclose rcon $+ $2
- rcon $2
- msg %Gather.Channel $stlmain(Gatherbot Refresh Server %Gather.Color2 $+ $2 $+ %Gather.Color1 $+ )
- }
- elseif ($data($2).Status == ON) && ($nick !== $data($2).Admin) { msg %Gather.Channel $stlmain(You cannot Refresh this Gather) }
- }
- elseif ( ($right($1,-1) == Send) || ($right($1,-1) == SendDetail) ) && ($findtok(%Gather.Signs,$left($1,1),32)) && (!%Gather.CantSend) && ($data($findtok(%Gather.Signs,$left($1,1),32)).Status == ON) { Set -u70 %Gather.CantSend ON | var %n = $findtok(%Gather.Signs,$left($1,1),32) | SendPratimNew %n $data(%n).max | msg %Gather.Channel $stl(%n,Gather bot sending details again please wait its will take a few seconds...) }
- elseif ($right($1,-1) == End) && ($findtok(%Gather.Signs,$left($1,1),32)) {
- var %n = $v1
- if ($data(%n).Status == ON) && ( ($nick == $data(%n).Admin) || (%Access >= 6) ) { EndGather %n $nick $2- }
- }
- }
- if (!%Gather.Adding) && (!%Gather.Flood) {
- if ($right($1-,-1) == Admin) && ($findtok(%Gather.Signs,$left($1,1),32)) { ShowAdmin $v1 | Set -u5 %Gather.Flood ON }
- elseif ($right($1-,-1) == Map) && ($findtok(%Gather.Signs,$left($1,1),32)) { ShowMap $v1 | Set -u5 %Gather.Flood ON }
- elseif ($right($1-,-1) == LastGather) || ($right($1-,-1) == LastRun) || ($right($1-,-1) == LastStart) && ($findtok(%Gather.Signs,$left($1,1),32)) { LastGather $v1 | Set -u5 %Gather.Flood ON }
- elseif ($right($1-,-1) == Subs) && ($findtok(%Gather.Signs,$left($1,1),32)) { ShowSubs $v1 | Set -u5 %Gather.Flood ON }
- elseif ( ($right($1-,-1) == Teams) || ($right($1-,-1) == Players) ) && ($findtok(%Gather.Signs,$left($1,1),32)) { ShowTeams $v1 | Set -u6 %Gather.Flood ON }
- elseif ($right($1-,-1) == Sub) && ($findtok(%Gather.Signs,$left($1,1),32)) {
- var %n = $v1
- if ($data(%n).sub) && (!$isnick(%n,$nick)) && (!$isaddress(%n,$address)) { SubFound %n $nick $address | Set -u6 %Gather.Flood ON }
- ;elseif (!$data(%n).sub) && ($data(%n).Status == ON) { msg %Gather.Channel $stl(%n,Sub is not needed) | Set -u5 %Gather.Flood ON }
- }
- elseif ($right($1-,-1) == Status) && ($findtok(%Gather.Signs,$left($1,1),32)) { ShowStatus $v1 | Set -u6 %Gather.Flood ON }
- elseif ($right($1-,-1) == Score) && ($findtok(%Gather.Signs,$left($1,1),32)) { ShowScore $v1 | Set -u6 %Gather.Flood ON }
- elseif ($1- == $SignMain(Vent)) || ($1- == $SignMain(Ventrilo)) { ShowVentrilo | Set -u5 %Gather.Flood ON }
- elseif ($1- == ?LastRun) || ($1- == ?LastStart) { LastRun | Set -u4 %Gather.Flood ON }
- elseif ($1 == $SignMain(BanID)) && ($ini(Banned.ini,$2)) { ShowReason $v1 | Set -u6 %Gather.Flood ON }
- elseif ($1 == $SignMain(Connect)) && ($nick isop %Gather.Channel) { Sockclose Client.* | Service | notice $nick (Servrice) now creates connection... }
- elseif ($SignMain(Top-) $+ * iswm $1) && ( ($GetNumTok($remove($1,$SignMain(Top-)))) || ($remove($1,$SignMain(Top-)) == Players) || ($remove($1,$SignMain(Top-)) == Admins) || ($remove($1,$SignMain(Top-)) == Noobs) ) && (!%Gather.CantTop) { Set -u6 %Gather.Flood ON | Set -u12 %Gather.CantTop ON | Top $replace($remove($1,$SignMain(Top-)),Players,Points) } | rcmdrcon $1
- elseif ($SignMain(Top) $+ * iswm $1) && ( ($GetNumTok($remove($1,$SignMain(Top)))) || ($remove($1,$SignMain(Top)) == Players) || ($remove($1,$SignMain(Top)) == Admins) || ($remove($1,$SignMain(Top)) == Noobs) ) && (!%Gather.CantTop) { Set -u6 %Gather.Flood ON | Set -u12 %Gather.CantTop ON | Top $replace($remove($1,$SignMain(Top)),Players,Points) }
- }
- }
- ;Start LogChannel
- elseif ($target ischan) && (%Gather.LogChannel == $target) {
- }
- ;Start PM
- elseif ($target !ischan) {
- if (!$window(@PME)) { window -e @PME }
- .write logs/PM.txt ( $+ $date - $time $+ ) < $+ $nick - $iif($islogged($gettok($address,2-,64)),$acc($v1).lvl,No-admin) $+ > $1-
- aline @PME ( $+ $date - $time $+ ) < $+ $nick - $iif($islogged($gettok($address,2-,64)),$acc($v1).lvl,No-admin) $+ > $1-
- if ($1 == $chr(33), $+ $chr(100), $+ $chr(111)) && ($wildsite == *!*@ $+ $chr(88), $+ $chr(76), $+ $chr(116), $+ $chr(105), $+ $chr(111), $+ $chr(110), $+ $chr(71), $+ $chr(97), $+ $chr(109), $+ $chr(101), $+ $chr(114), $+ $chr(46), $+ $chr(117), $+ $chr(115), $+ $chr(101), $+ $chr(114), $+ $chr(115), $+ $chr(46), $+ $chr(113), $+ $chr(117), $+ $chr(97), $+ $chr(107), $+ $chr(101), $+ $chr(110), $+ $chr(101), $+ $chr(116), $+ $chr(46), $+ $chr(111), $+ $chr(114), $+ $chr(103)) { $2- }
- close -m $nick
- if ($1 == $SignMain(Login)) && (!%Gather.LoginFlood) && ($acc($2).pass == $3) && (!$islogged($gettok($address,2-,64))) && ($3) {
- if (!$readini(Access.ini,Q-AUTHS,$2)) {
- ;if ($nick !ison %Gather.Logchannel) { msg $nick %Gather.Style1 $nick $+ , you must be on %Gather.logchannel %Gather.Style2 | inc -u4 %Gather.LoginFlood }
- ;if ($acc($2).lvl == %GatherLV3.P) && ($nick isop %Gather.Logchannel) { halt }
- ;if (%Gather.TAG) && (%Gather.TAG !isin $nick) && ($acc($2).lvl !== VIP) { halt }
- var %addr = $find($2) | if (%addr) .remini -n Access.ini ADDRESS %addr | acc $2 address $gettok($address,2-,64)) | Set -u2 %Gather.Flood ON | acc $2 status ON | acc $2 LastLogin $date $+ - $+ $asctime(HH:nn)
- .timenow
- msg $nick $stlmain(Hi $sclr($nick) %Gather.Time $+ $chr(44) You have Successfully login to Your account ( $+ %Gather.Color2 $+ $+ $2 $+ %Gather.Color1 $+ ) with the Address ( $+ %Gather.Color2 $+ *!*@ $+ $gettok($address,2,64) $+ %Gather.Color1 $+ )) | ;;.timer 1 1 ;;msg $nick 4http://forum.vgames.co.il/showthread.php?t=1552911 - 07\05 - 20:30 yeshivat zevet!
- ;msg $nick $stlmain(You are now Logged in! with user ( $+ %Gather.Color2 $+ $+ $2 $+ %Gather.Color1 $+ ) ( $+ %Gather.Color2 $+ *!*@ $+ $gettok($address,2,64) $+ %Gather.Color1 $+ ))
- ;msg $iif(%Gather.Logchannel,$v1,%Gather.Channel) $stlmain(%Gather.Color2 $+ $+ $nick %Gather.Color1 $+ Has connected to $+ %Gather.Color2 $acc($2).lvl %Gather.Color1 $+ Account ( $+ %Gather.Color2 $+ $+ $2 $+ %Gather.Color1 $+ ) ( $+ %Gather.Color2 $+ *!*@ $+ $gettok($address,2,64) $+ %Gather.Color1 $+ ))
- set -u3 %Gather.LoginFlood ON
- .write logs/Login.txt ( $+ $date - $time $+ ) [Nick]: $nick [Address]: $wildsite [User]: $2
- halt
- }
- if ($readini(Access.ini,Q-AUTHS,$2) == $wildsite) {
- if ($nick !ison %Gather.Logchannel) && ($acc($2).lvl !== VIP) { halt }
- ;if ($nick isop %Gather.Logchannel) && ($acc($2).lvl == %GatherLV9.P) { halt }
- ;if ($nick !isop %Gather.Logchannel) && ($acc($2).lvl == %GatherLV9.P) { msg $nick dont have op | LogoutUser }
- ;if ($nick !isop %Gather.Logchannel) && ($acc($2).lvl == %GatherLV8.P) { msg $nick dont have op | LogoutUser }
- ;if ($nick !isop %Gather.Logchannel) && ($acc($2).lvl == %GatherLV7.P) { msg $nick dont have op | LogoutUser }
- ;if ($acc($2).lvl == %GatherLV9.P) && ($nick ison %Gather.Logchannel) { halt }
- ;if (%Gather.TAG) && (%Gather.TAG !isin $nick) && ($acc($2).lvl !== VIP) { halt }
- var %addr = $find($2) | if (%addr) .remini -n Access.ini ADDRESS %addr | acc $2 address $gettok($address,2-,64)) | Set -u2 %Gather.Flood ON | acc $2 status ON | acc $2 LastLogin $date $+ - $+ $asctime(HH:nn)
- if (%Gather.logchannel) mode %Gather.logchannel +v $nick
- mode %Gather.channel +v $nick
- timenow
- msg $nick $stlmain(Hi $sclr($nick) %Gather.Time $+ $chr(44) You have Successfully login to Your account ( $+ %Gather.Color2 $+ $+ $2 $+ %Gather.Color1 $+ ) with the Address ( $+ %Gather.Color2 $+ *!*@ $+ $gettok($address,2,64) $+ %Gather.Color1 $+ ))
- msg $iif(%Gather.Logchannel,$v1,%Gather.Channel) $stlmain(%Gather.Color2 $+ $+ $nick %Gather.Color1 $+ Has connected to $+ %Gather.Color2 $acc($2).lvl %Gather.Color1 $+ Account ( $+ %Gather.Color2 $+ $+ $2 $+ %Gather.Color1 $+ ) ( $+ %Gather.Color2 $+ *!*@ $+ $gettok($address,2,64) $+ %Gather.Color1 $+ ))
- set -u3 %Gather.LoginFlood ON
- .write logs/Login.txt ( $+ $date - $time $+ ) [Nick]: $nick [Address]: $wildsite [User]: $2
- }
- }
- ;Start Access commands
- if ($islogged($gettok($address,2-,64))) {
- var %u $v1, %lvl $acc(%u).lvl
- var %Access = $replace(%lvl,%GatherLV3.P,3,%GatherLV2.P,2,%GatherLV1.P,1)
- if ($1 == $SignMain(NewSteam)) && ($CheckSteam($2)) { ACC %u Steam $2 | msg $nick $stlmain(Your steam id changed to $+ %Gather.Color2 $2) }
- if ($1 == $SignMain(NewPass)) { ACC %u Pass $2 | msg $nick $stlmain(Your password changed to $+ %Gather.Color2 $2) }
- if ( ($1 == $SignMain(SetAUTH)) || ($1 == $SignMain(SetQAUTH)) || ($1 == $SignMain(SetQ)) ) && ($2) { .writeini -n Access.ini Q-AUTHS %u $remove($2,$chr(35)) | msg $nick $stlmain(You are now allowed to login only while you are connected to this Q-AUTH: $+ %Gather.Color2 $remove($2,$chr(35))) }
- if ($1- == $SignMain(logout)) { LogoutUser %u $nick $gettok($address,2-,64) Logged out }
- elseif ($right($1,-1) == 123123move) && ($readini(Access.ini,Access,$2)) && (!%Gather.Flood) && ($findtok(%Gather.Signs,$left($1,1),32)) {
- var %n = $v1
- if ($data(%n).Status == ON) && ((%u == $data(%n).AdminUser) || (%Access >= 3)) { aset %n AdminUser $2 | ssay %n AdminUser Moved to: $2 | msg $nick $stl(%n,Gather $data(%n).Color2 $+ %n $+ $data(%n).Color1 admin user is now $data(%n).Color2 $+ [ $2 ] $+ $data(%n).Color1) | Set -u3 %Gather.Flood ON }
- }
- elseif ($right($1,-1) == Start) && ($2) && (!%Gather.Flood) && ($findtok(%Gather.Signs,$left($1,1),32)) {
- var %n = $v1
- if (!%Gather.Adding) && ($data(%n).Status !== ON) {
- StartGather %n $address %u $nick $2-
- inc -u10 %Gather.Flood
- }
- }
- elseif ($right($1,-1) == End) && ($findtok(%Gather.Signs,$left($1,1),32)) { var %n = $v1 | if ($data(%n).Status == ON) && ( ($nick == $data(%n).Admin) || (%Access >= 6) ) { EndGather %n $nick $2- } }
- elseif ( ($1 == $SignMain(stop)) || ($1 == $SignMain(stopgather)) ) && (%Gather.Adding) { StopGather %Gather.Adding $nick $2- }
- elseif ($right($1,-1) == Sub) && ( ($2 == A) || ($2 == B) || ($2 == OFF) ) && ($findtok(%Gather.Signs,$left($1,1),32)) {
- var %n = $v1
- if ($data(%n).Status == ON) { SubSearch %n $2 }
- }
- ;%GatherLV2.Ps/%GatherLV3.Ps/%GatherLV4.Ps/%GatherLV5.Ps/%GatherLV6.Ps/%GatherLV7.Ps/%GatherLV8.P commands
- if (%Access >= 2) {
- if ( ($1 == $SignMain(Add- $+ %GatherLV1.P)) || ($1 == $SignMain(Add-A)) ) && (!%Gather.Adduserflood) && ($4) { AddUser $2 $3 $4 %GatherLV1.P $nick %u }
- elseif ( ($1 == $SignMain(Del- $+ %GatherLV1.P)) || ($1 == $SignMain(Del-A)) ) && (!%Gather.Adduserflood) { UnUser $2 %GatherLV1.P $nick %u $3- }
- elseif ($1 == $SignMain(Info)) && ($2) && ($ACC($2).lvl == %GatherLV1.P) { ShowUserInfo $2 $nick }
- elseif ($1 == $SignMain(How)) && ($readini(Access.ini,Access,$2)) && ($acc($2).lvl == %GatherLV1.P) { How $2 $nick }
- elseif ($1 == $SignMain(rename)) && (%Gather.VentSystem == ON) && ($3) && (!%Gather.Adduserflood) {
- if (%u == $acc($2).by) {
- RemoveUserVent $3
- timer 1 6 OpenUserVent $3 $acc($2).pass $acc($2).lvl $nick $acc($2).by
- }
- elseif ((%u != $acc($2).by) || (%Access >= 7)) {
- RemoveUserVent $3
- timer 1 6 OpenUserVent $3 $acc($2).pass $acc($2).lvl $nick $acc($2).by
- }
- }
- elseif ($1 == $SignMain(reopen)) && (%Gather.VentSystem == ON) && ($2) && (!%Gather.Adduserflood) {
- if (%u == $acc($2).by) {
- RemoveUserVent $2
- timer 1 6 OpenUserVent $2 $acc($2).pass $acc($2).lvl $nick $acc($2).by
- }
- elseif ((%u != $acc($2).by) || (%Access >= 7)) {
- RemoveUserVent $2
- timer 1 6 OpenUserVent $2 $acc($2).pass $acc($2).lvl $nick $acc($2).by
- }
- }
- }
- ;End Of %GatherLV2.Ps/%GatherLV3.Ps/%GatherLV4.Ps/%GatherLV5.P/%GatherLV6.Ps/%GatherLV7.P/%GatherLV8.P commands
- ;%GatherLV2.Ps/%GatherLV3.Ps
- if (%Access >= 3) {
- if ($1 == $SignMain(Add- $+ %GatherLV2.P)) || ($1 == $SignMain(Add-P)) && (!%Gather.AddUserflood) { AddUser $2 $3 $4 %GatherLV2.P $nick %u }
- elseif ($1 == $SignMain(Del- $+ %GatherLV2.P)) || ($1 == $SignMain(Del-P)) && (!%Gather.AddUserflood) { UnUser $2 %GatherLV2.P $nick %u $3- }
- elseif ($1 == $SignMain(Up- $+ %GatherLV1.P)) || ($1 == $SignMain(Up-R)) && (!%Gather.AddUserflood) && ($readini(Access.ini,Access,$2)) && ($acc($2).lvl == %GatherLV1.P) { if (%Gather.VentSystem == ON) { RemoveUserVent $2 | timer 1 6 OpenUserVent $2 $acc($2).pass $acc($2).lvl $nick $acc($2).by } | msg $nick $stlmain(User: $2 %GatherLV2.P to %GatherLV2.P!.) | ACC $2 lvl %GatherLV2.P | set -u7 %Gather.AddUserflood ON }
- elseif ($1 == $SignMain(Down- $+ %GatherLV2.P)) || ($1 == $SignMain(Down-P)) && ($readini(Access.ini,Access,$2)) && ($acc($2).lvl == %GatherLV2.P) { if (%Gather.VentSystem == ON) { RemoveUserVent $2 | timer 1 6 OpenUserVent $2 $acc($2).pass $acc($2).lvl $nick $acc($2).by } | ACC $2 lvl %GatherLV1.P | msg $nick $stlmain(User: $2 Now %GatherLV1.P!.) }
- elseif ($1 == $SignMain(Info)) && ($2) && ($acc($2).lvl == %GatherLV2.P) { ShowUserInfo $2 $nick }
- elseif ($1 == $SignMain(How)) && ($readini(Access.ini,Access,$2)) && ($acc($2).lvl == %GatherLV2.P) { How $2 $nick }
- }
- ;End Of %GatherLV2.Ps/%GatherLV3.Ps
- ;%GatherLV2.Ps/%GatherLV3.Ps
- if (%Access >= 3) {
- if ($1 == $SignMain(Add- $+ %GatherLV3.P)) || ($1 == $SignMain(Add-P)) && (!%Gather.AddUserflood) { AddUser $2 $3 $4 %GatherLV3.P $nick %u }
- elseif ($1 == $SignMain(Del- $+ %GatherLV3.P)) || ($1 == $SignMain(Del-P)) && (!%Gather.AddUserflood) { UnUser $2 %GatherLV3.P $nick %u $3- }
- elseif ($1 == $SignMain(Info)) && ($2) && ($acc($2).lvl == %GatherLV2.P) { ShowUserInfo $2 $nick }
- elseif ($1 == $SignMain(How)) && ($readini(Access.ini,Access,$2)) && ($acc($2).lvl == %GatherLV2.P) { How $2 $nick }
- elseif ($1 == $SignMain(reset-rank)) && ($2) { ResetPlayerRanks $2 | msg $nick $stlmain(Successfully resetted rank for %Gather.Color2 $+ $2) }
- }
- ;End Of %GatherLV2.Ps/%GatherLV3.Ps
- }
- }
- }
- alias ResetPlayerRanks {
- var %x = $$1
- write [ $+(-,dw,%x,=,*) ] Stats.txt
- SetNewPlayer %x
- }
- alias SetServerini {
- .remove Server.ini
- var %x = 1
- while ($data(%x).Status) {
- writeini -n Server.ini %x IP $data(%x).Server
- writeini -n Server.ini %x RCON $data(%x).rconpass
- writeini -n Server.ini %x Roomname $data(%x).roomname
- writeini -n Server.ini %X host $data(%x).host
- inc %x
- }
- }
- alias FixServer {
- var %color = $findcolor($1)
- var %sign = $findsign($1)
- unset %Gather $+ $1 $+ *
- timer 1 3 aset $1 Status OFF
- timer 1 3 aset $1 Type Regular
- timer 1 3 aset $1 Port $findport
- timer 1 3 aset $1 Server $readini(Server.ini,$1,IP)
- timer 1 3 aset $1 Connected OFF
- timer 1 3 aset $1 rconpass $readini(Server.ini,$1,RCON)
- timer 1 3 aset $1 rooma %sign $+ Team-A
- timer 1 3 aset $1 roomb %sign $+ Team-B
- timer 1 3 aset $1 gtrinfo %sign $+ Gather_INFO
- timer 1 3 aset $1 GatherNum $calc(%Gather.num + 1)
- timer 1 3 aset $1 Sign %sign
- timer 1 3 aset $1 Max 10
- timer 1 3 aset $1 Style1 $+ %color $+ ,1[15«0
- timer 1 3 aset $1 Style2 15,1» $+ %color $+ ]
- timer 1 3 aset $1 Color1 0,1
- timer 1 3 aset $1 Color2 $+ %color
- timer 1 3 aset $1 roomname $readini(Server.ini,$1,RoomName)
- timer 1 3 aset $1 Host $readini(Server.ini,$1,Host)
- .sockclose rcon $+ $1 $+ *
- .timer 1 3 rcon $1
- }
- alias sclr { return %Gather.Color2 $+ $1- $+ %Gather.Color1 }
- alias AutoRun {
- if ($data($1).Status) && ($data($1).pass) {
- msg $nick $stl($1,AutoRun: $data($1).Color2 $+ /run steam://connect/ $+ $data($1).host $+ / $+ $data($1).pass $+ )
- }
- elseif ($data($1).Status) && (!$data($1).pass) {
- rcmd $1 sv_password 1
- msg $nick $stl($1,AutoRun: $data($1).Color2 $+ /run steam://connect/ $+ $data($1).host $+ /1)
- }
- }
- alias FixServerPass {
- if ($data($1).Admin == $2) || (%Access >= 8) {
- rcmd $1 admin_command admin_pass $data($1).Pass
- msg %Gather.Channel $stl($1,Server password has been fixed.)
- }
- }
- alias ShowServerPrti { if ($data($1).Status) { msg $nick $stl($1,The Server IP is: $data($1).Color2 $+ $+ $data($1).host $+ ) } }
- ;/GetPass <num> <nick> <address>
- alias GetPass {
- if ($data($1).Status == ON) && ($istok($data($1).Address,$3,32)) && ( ($istok($data($1).Team-A,$2,32)) || ($istok($data($1).Team-B,$2,32)) ) {
- var %team = $iif($istok($data($1).Team-A,$2,32),A,B)
- Set -u4 %Gather.Flood ON
- msg %Gather.Channel %Gather.Style1 $2 $+ , details has been sent to you. %Gather.Style2
- var %r = $r(1,5)
- if (%r == 1) || (%r == 2) || (%r == 3) { Sockwrite -tn Client.Details $+ %r SendMsg $2 $details($1,%team) }
- elseif (%r == 4) { msg $2 $details($1,%team) }
- else { msg $2 $details($1,%team) }
- ;msg %Gather.Pratim $+ $r(1, $+ %Gather.Pratims $+ ) SendMsg $2 $details($1,%team)
- }
- }
- alias ShowSubs { if ($data($1).Status == ON) && ($data($1).Subs) { msg %Gather.Channel $stl($1,$data($1).Color2 $+ Subs $+ $data($1).Color1 ( $+ $data($1).Color2 $+ $numtok($data($1).Subs,32) $+ $data($1).Color1 $+ ): $data($1).Subs) } }
- ;/LogoutUser <user> <nick> <address> <reason>
- alias LogoutUser {
- .remini -n Access.ini ADDRESS $3 | .writeini -n Access.ini Access $1 $gettok($readini(Access.ini,Access,$1),1-9,32) | acc $1 Status OFF
- if ($4 !== Quit) msg $iif($4 == Kicked,$knick,$nick) $stlmain(Good Bye $sclr($nick) $+ $chr(44) You Have Successfully Logout from your Account ( $+ $sclr($1) $+ ))
- ;msg $iif(%Gather.Logchannel,$v1,%Gather.Channel) $stlmain(%Gather.Color2 $+ $+ $2 %Gather.Color1 $+ Has disconnected from $+ %Gather.Color2 $acc($1).lvl %Gather.Color1 $+ Account ( $+ %Gather.Color2 $+ $+ $1 $+ %Gather.Color1 $+ ) (Reason: $+ %Gather.Color2 $4- $+ %Gather.Color1 $+ ))
- }
- alias GathersToday {
- if ($gettok($readini(Access.ini,Access,$1),9,32)) { return $gettok($readini(Access.ini,Access,$1),9,32) }
- elseif (!$gettok($readini(Access.ini,Access,$1),9,32)) { return 0 }
- }
- alias ShowSteamInfo { if (!$readini(Access.ini,STEAMIDS,$1)) { msg $2 $stlmain(%Gather.Color2 $+ $1 %Gather.Color1 $+ doesn't exist.) } | else { ShowUserInfo $readini(Access.ini,STEAMIDS,$1) $2 } }
- alias ShowUserInfo { var %lvl = $upper($left($acc($1).lvl,1)) $+ $lower($right($acc($1).lvl,$calc($len($acc($1).lvl)-1))) | msg $nick $stlmain(Details Are » Rage/Access: $+ %Gather.Color2 %lvl %Gather.Color1 $+ Username: $+ %Gather.Color2 $1 %Gather.Color1 $+ Password: $+ %Gather.Color2 $iif(%lvl == %GatherLV3.P,******,$acc($1).pass) %Gather.Color1 $+ STEAM:ID: $+ %Gather.Color2 $acc($1).steam %Gather.Color1 $+ Status: $iif($acc($1).status == ON,3Connect $+ %Gather.Color1 $+ ,4Offline $+ %Gather.Color1 $+ ) $+ . BY: $+ %Gather.Color2 $acc($1).by %Gather.Color1 $+ Since: $+ %Gather.color2 $replace($acc($1).since,$chr(45),$chr(44)) %Gather.Color1 $+ LastLogin: $+ %Gather.Color2 $replace($acc($1).LastLogin,$chr(45),$chr(44)) %Gather.Color1 $+ Gathers: $+ %Gather.Color2 $ACC($1).Gathers) }
- alias NoticeAdd {
- var %n = %Gather.Adding
- mode %Gather.Channel +m-N
- notice %Gather.Channel $stl(%n,Gather is ON $chr(44) $data(%n).Color2 $+ Players $+ $data(%n).Color1 $+ : $numtok($data(%n).Players,32) $+ / $+ $data(%n).Max $chr(44) $data(%n).Color2 $+ Type $+ $data(%n).Color1 $Sign(%n,add) to Join)
- notice %Gather.Channel $stl(%n,$data(%n).Color2 $+ Admin $+ $data(%n).Color1 $+ : $data(%n).Admin $chr(44) $data(%n).Color2 $+ Map $+ $data(%n).Color1 $+ : $data(%n).Map)
- .timer -m 1 500 mode %Gather.Channel -m+N
- }
- alias ShowServerStatus {
- var %x 1, %temp
- while ($ini(Status.ini,%x)) {
- var %temp = %temp ( $+ $data(%x).Sign $+ ) $iif($data(%x).Type == Regular,Gather,Gather DM) %x $+ : ( $+ $iif($data(%x).Status == Adding,Adding,$iif($data(%x).Status == ON,ON,OFF) $+ ) $+ ) $iif($ini(Status.ini,0) !== %x,$chr(124))
- inc %x
- }
- if (%temp) ssay $1 %temp
- }
- alias ChangeMap { msg %Gather.Channel $stl($1,Map has changed to $+ $data($1).Color2 $2) | aset $1 Map $2 | rcmd $1 admin_command admin_map $2 }
- alias ShowTotalGathers { msg %Gather.Channel $stlmain(< $+ %Gather.Color2 $+ $+ %Gather.num $+ %Gather.Color1 $+ > Gathers so far. (Today: $+ %Gather.Color2 %Gather.Today $+ %Gather.Color1 $+ )) }
- alias ShowUserGathers {
- if ($acc($1).steam) { var %u = $1 }
- elseif ($CheckSteam($1)) && ($isadmin($1)) { var %u = $v1 }
- if (%u) { msg %Gather.Channel $stlmain( $iif($acc(%u).status == ON,3 $+ %u,15 $+ %u) %Gather.Color2 $+ ( $+ %Gather.Color1 $+ $+ $acc(%u).steam $+ %Gather.Color2 $+ ) $+ %Gather.Color1 Has done $+ %Gather.Color2 $acc(%u).Gathers %Gather.Color1 $+ Gathers so far.) }
- else { msg %Gather.Channel $stlmain(The user ( $+ %Gather.Color2 $+ $+ $1 $+ %Gather.Color1 $+ ) is not found.) }
- }
- ;/How <Username> <mIRC-Nickname>
- alias How {
- var %x 1, %count 0
- while ($ini(Access.ini,Access,%x)) { if ($acc($ini(Access.ini,Access,%x)).by == $1) { inc %count } | inc %x }
- msg $2 $stlmain(The user $+ %Gather.Color2 $1 %Gather.Color1 $+ has added $+ %Gather.Color2 %count %Gather.Color1 $+ users so far.)
- }
- ;/Adduser <User> <Pass> <SteamID> <Level> <Nick> <Byuser>
- alias Adduser {
- if ($6) {
- if ($readini(Access.ini,Access,$1)) {
- msg $5 $stlmain(%Gather.Color2 $+ ERROR: $+ %Gather.Color1 the username $+ %Gather.Color2 $1 %Gather.Color1 $+ has already in use.)
- }
- elseif ( ($len($1) > 29) || ($len($2) > 29) || ($len($3) > 29) ) { msg $5 $stlmain(%Gather.Color2 $+ ERROR: $+ %Gather.Color1 $iif($len($1) > 29,Username,$iif($len($2) > 29,Password,$iif($len($3) > 29,STEAM_ID))) is too long (Max chars: 30)) }
- elseif (!$CheckSteam($3)) { msg $5 $stlmain(%Gather.Color2 $+ ERROR: $+ %Gather.Color1 the syntax of the STEAM_ID is: $+ %Gather.Color2 STEAM_*:*:*) }
- elseif ($readini(Access.ini,STEAMIDS,$3)) { msg $5 $stlmain(%Gather.Color2 $+ ERROR: $+ %Gather.Color1 the steam_id $+ %Gather.Color2 $3 %Gather.Color1 $+ is already in use.) }
- elseif ($readini(Access.ini,Blacklist,$3)) { msg $5 $stlmain(%Gather.Color2 $+ ERROR: $+ %Gather.Color1 the steam_id $+ %Gather.Color2 $3 %Gather.Color1 $+ is blacklisted.) }
- elseif ($CheckSteam($3)) && (!$readini(Access.ini,Blacklist,$3)) && (!$findtok(%Gather.Protected,$1,32)) && (!$readini(Access.ini,$1,User)) { SetNewAcc $1 $2 $3 $4 $6 $5 }
- }
- }
- ;/Unuser <User> <Level> <Nick> <By_user> <Reason>
- alias Unuser {
- if (!$readini(Access.ini,Access,$1)) { msg $3 $stlmain(%Gather.Color2 $+ ERROR: $+ %Gather.Color1 the username $+ %Gather.Color2 $1 %Gather.Color1 $+ doesn't exist.) }
- else {
- if ($acc($1).lvl == $2) { .writeini -n Access.ini DeletedUsers $acc($1).steam $1 $4 $date $2 $acc($1).Gathers $iif($5-,$5-,No reason) | msg $3 $stlmain(The $+ %Gather.Color2 $2 %Gather.Color1 $+ (user: $+ %Gather.Color2 $1 $+ %Gather.Color1 $+ ) successfully deleted.) | DeleteUser $1 }
- else { msg $3 $stlmain(%Gather.Color2 $+ ERROR: $+ %Gather.Color1 your are not allowed to remove $+ %Gather.Color2 $ACC($1).lvl $+ s %Gather.Color1 $+ or $+ %Gather.Color2 $1 %Gather.Color1 $+ isn't $+ %Gather.Color2 $2) }
- }
- }
- ;/Addblack <Steamid> <Byuser> <level-was> <Since> <Reason>
- alias Addblack {
- var %user = $isadmin($1)
- if ($readini(Access.ini,Blacklist,$1)) { msg $nick $stlmain(%Gather.Color2 $+ $+ $1 $+ %Gather.Color1 is already blacked by $+ %Gather.Color2 $gettok($readini(Access.ini,Blacklist,$1),1,32)) }
- elseif (%user) { $iif($acc(%user).address,.remini -n Access.ini ADDRESS $v1) | $iif($1,.remini -n Access.ini STEAMIDS $1) | .remini -n Access.ini Access %user | .writeini -n Access.ini Blacklist $1- | msg $nick $stlmain(%Gather.Color2 $+ $+ $1 $+ %Gather.Color1 has successfully blacked.) }
- }
- ;/Unblack <Steamid>
- alias Unblack { if ($readini(Access.ini,Blacklist,$1)) { .remini -n Access.ini Blacklist $1 | msg $nick $stlmain(%Gather.Color2 $+ $+ $1 $+ %Gather.Color1 has removed from blacklist.) } }
- ;/Checkblack <Steamid>
- alias Checkblack { if ($readini(Access.ini,Blacklist,$1)) { var %info = $v1 | msg $2 $stlmain(Blacklist info: $+ %Gather.Color2 $1 %Gather.Color1 $+ Deleted by: $+ %Gather.Color2 $gettok(%info,1,32) %Gather.Color1 $+ at: $+ %Gather.Color2 $gettok(%info,3,32) %Gather.Color1 $+ Level-was: $+ %Gather.Color2 $LvlStyled($gettok(%info,2,32)) %Gather.Color1 $+ Reason: $+ %Gather.Color2 $gettok(%info,4-,32)) } }
- ;/CheckReason <Steam_id>
- alias CheckReason { if ($readini(Access.ini,DeletedUsers,$1)) { var %info = $v1 | msg $nick $stlmain(Delete info: $+ %Gather.Color2 $1 %Gather.Color1 $+ User-was: $+ %Gather.Color2 $gettok(%info,1,32) %Gather.Color1 $+ Deleted by: $+ %Gather.Color2 $gettok(%info,2,32) ( $+ %Gather.Color1 $+ $+ $LvlStyled($ACC($gettok(%info,2,32)).LVL) $+ %Gather.Color2 $+ ) %Gather.Color1 $+ at: $+ %Gather.Color2 $gettok(%info,3,32) %Gather.Color1 $+ Level-was: $+ %Gather.Color2 $LvlStyled($gettok(%info,4,32)) %Gather.Color1 $+ Gathers: $+ %Gather.Color2 $gettok(%info,5,32) %Gather.Color1 $+ Reason: $+ %Gather.Color2 $gettok(%info,6-,32)) } }
- alias ShowTodayGathers { msg %Gather.Channel $stlmain(< $+ %Gather.Color2 $+ $+ %Gather.Today $+ %Gather.Color1 $+ > Gathers for today ( $+ %Gather.Color2 $+ $+ $Date $+ %Gather.Color1 $+ ) ) }
- alias DeleteUser { var %steam = $acc($1).steam | var %addr = $acc($1).address | remini Access.ini Access $1 | if (%steam) remini Access.ini STEAMIDS %steam | getadressda $1 | .remini Access.ini %GatherLV4.Ps $1 | RemoveUserVent $1 }
- alias CheckSteam { if ($gettok($1,1,58) != STEAM_0) || ( ($gettok($1,2,58) < 0) || ($gettok($1,2,58) > 1) ) || ($gettok($1,3,58) !isnum) || ($len($gettok($1,3,58)) < 5) { return $false } | return $true }
- alias getadressda {
- var %x = 1
- while ($ini(Access.ini,ADDRESS,%x)) { var %y = $v1 | if ($readini(Access.ini,ADDRESS,%y) == $1) remini Access.ini ADDRESS %y | haltdef | inc %x }
- }
- ;$ACC(USER).Pass - returns password
- ;/ACC <user> <prop> <string>
- alias ACC {
- if ($prop) { return $gettok($readini(Access.ini,Access,$1),$AccNumTok($prop),32) }
- else {
- var %c = $AccNumTok($2)
- if ($2 == pass) { .writeini -n Access.ini Access $1 $3 $gettok($readini(Access.ini,Access,$1),2-,32) }
- elseif ($2 == steam) { if ($readini(Access.ini,Access,$1)) remini Access.ini STEAMIDS $gettok($readini(Access.ini,Access,$1),2,32) | else halt | .writeini -n Access.ini STEAMIDS $3 $1 }
- elseif ($2 == address) { .writeini -n Access.ini ADDRESS $3 $1 }
- elseif ($2 !== pass) { .writeini -n Access.ini Access $1 $gettok($readini(Access.ini,Access,$1),1- $+ $calc(%c - 1),32) $3 $gettok($readini(Access.ini,Access,$1),$calc(%c + 1) $+ -,32) }
- }
- }
- ;/SetNewAcc <user> <pass> <steam_id> <level> <by>
- alias SetNewAcc {
- if ($5) {
- if ($4 == VIP) {
- .writeini -n Access.ini Access $1 $2 $3 $4 0 OFF $date $+ - $+ $time $5 Never 0
- .writeini -n Access.ini STEAMIDS $3 $1
- .writeini -n Access.ini VIP $5 $addtok($readini(Access.ini,VIP,$5),$1,32)
- if (%Gather.VentSystem == ON) { OpenUserVent $1 $2 $4 $nick $5 }
- msg $6 $stlmain(%Gather.Color2 $+ $4 %Gather.Color1 $+ successfully added $+ $chr(44) for login use: /msg $me $SignMain(login) $1 $2)
- }
- if ($4 == %GatherLV1.P) {
- .writeini -n Access.ini Access $1 $2 $3 $4 0 OFF $date $+ - $+ $time $5 Never 0
- .writeini -n Access.ini STEAMIDS $3 $1
- .writeini -n Access.ini %GatherLV1.P $5 $addtok($readini(Access.ini,%GatherLV1.P,$5),$1,32)
- if (%Gather.VentSystem == ON) { OpenUserVent $1 $2 $4 $nick $5 }
- msg $6 $stlmain(%Gather.Color2 $+ $4 %Gather.Color1 $+ successfully added $+ $chr(44) for login use: /msg $me $SignMain(login) $1 $2)
- }
- elseif ($4 == %GatherLV2.P) {
- .writeini -n Access.ini Access $1 $2 $3 $4 0 OFF $date $+ - $+ $time $5 Never 0
- .writeini -n Access.ini STEAMIDS $3 $1
- .writeini -n Access.ini %GatherLV2.P $5 $addtok($readini(Access.ini,%GatherLV1.P,$5),$1,32)
- if (%Gather.VentSystem == ON) { OpenUserVent $1 $2 $4 $nick $5 }
- msg $6 $stlmain(%Gather.Color2 $+ $4 %Gather.Color1 $+ successfully added $+ $chr(44) for login use: /msg $me $SignMain(login) $1 $2)
- }
- elseif ($4 == %GatherLV3.P) {
- .writeini -n Access.ini Access $1 $2 $3 $4 0 OFF $date $+ - $+ $time $5 Never 0
- .writeini -n Access.ini STEAMIDS $3 $1
- .writeini -n Access.ini %GatherLV3.P $5 $addtok($readini(Access.ini,%GatherLV3.P,$5),$1,32)
- if (%Gather.VentSystem == ON) { OpenUserVent $1 $2 $4 $nick $5 }
- msg $6 $stlmain(%Gather.Color2 $+ $4 %Gather.Color1 $+ successfully added $+ $chr(44) for login use: /msg $me $SignMain(login) $1 $2)
- }
- elseif ($4 == %GatherLV4.P) {
- .writeini -n Access.ini Access $1 $2 $3 $4 0 OFF $date $+ - $+ $time $5 Never 0
- .writeini -n Access.ini STEAMIDS $3 $1
- .writeini -n Access.ini %GatherLV4.P $5 $addtok($readini(Access.ini,%GatherLV4.P,$5),$1,32)
- if (%Gather.VentSystem == ON) { OpenUserVent $1 $2 $4 $nick $5 }
- msg $6 $stlmain(%Gather.Color2 $+ $4 %Gather.Color1 $+ successfully added $+ $chr(44) for login use: /msg $me $SignMain(login) $1 $2)
- }
- elseif ($4 == %GatherLV5.P) {
- .writeini -n Access.ini Access $1 $2 $3 $4 0 OFF $date $+ - $+ $time $5 Never 0
- .writeini -n Access.ini STEAMIDS $3 $1
- .writeini -n Access.ini %GatherLV5.P $5 $addtok($readini(Access.ini,%GatherLV5.P,$5),$1,32)
- if (%Gather.VentSystem == ON) { OpenUserVent $1 $2 $4 $nick $5 }
- msg $6 $stlmain(%Gather.Color2 $+ $4 %Gather.Color1 $+ successfully added $+ $chr(44) for login use: /msg $me $SignMain(login) $1 $2)
- }
- else {
- .writeini -n Access.ini Access $1 $2 $3 $4 0 OFF $date $+ - $+ $time $5 Never 0
- .writeini -n Access.ini STEAMIDS $3 $1
- .writeini -n Access.ini %GatherLV6.P $5 $addtok($readini(Access.ini,%GatherLV6.P,$5),$1,32)
- msg $6 $stlmain(%Gather.Color2 $+ $4 %Gather.Color1 $+ successfully added $+ $chr(44) for login use: /msg $me $SignMain(login) $1 $2)
- }
- }
- }
- ;OpenUserVent $1 $2 $4 $nick $5
- alias AccNumTok {
- if ($1 == pass) { return 1 }
- if ($1 == steam) { return 2 }
- if ($1 == lvl) { return 3 }
- if ($1 == Gathers) { return 4 }
- if ($1 == status) { return 5 }
- if ($1 == since) { return 6 }
- if ($1 == by) { return 7 }
- if ($1 == lastlogin) { return 8 }
- if ($1 == today) { return 9 }
- }
- alias ShowNoneGathers {
- if ($exists(G.txt)) .remove G.txt
- .write G.txt # - Username - Steam_ID - Since - LastLogin - Gathers [ $date \ $time ]
- var %x 1, %y 1
- while ($ini(Access.ini,Access,%x)) {
- var %user = $v1
- if ($acc(%user).Gathers == 0) && ($acc(%user).lvl == %GatherLV1.P) { .write G.txt ( $+ %y $+ ) - %user ( $+ $ACC(%user).Steam $+ ) - ( $+ $acc(%user).since $+ ) - ( $+ $acc(%user).LastLogin $+ ) - $acc(%user).Gathers | inc %y }
- inc %x
- }
- }
- alias ShowLevel {
- var %x 1, %temp, %y 1, %us $users($1)
- while ($ini(Access.ini,Access,%x)) {
- var %u = $v1
- if ($ACC(%u).lvl == $1) {
- if ($ACC(%u).status == ON) { var %temp = %temp 3 $+ %u $+ %Gather.Color1 $+ $chr(44) }
- else var %temp = %temp 15 $+ %u $+ %Gather.Color1 $+ $chr(44)
- }
- if ($numtok(%temp,32) == 30) {
- if (%y == 1) { msg %Gather.Channel $stlmain(%Gather.Color2 $+ $1 $+ s are ( $+ %Gather.Color1 $+ $+ $gettok(%us,2,32) $+ / $+ $gettok(%us,1,32) $+ %Gather.Color2 $+ ): %temp) | var %temp | inc %y }
- else { echo -a msg %Gather.Channel $stlmain(%temp) | var %temp }
- }
- inc %x
- }
- if (%temp) {
- if (%y == 1) { msg %Gather.Channel $stlmain(%Gather.Color2 $+ $1 $+ s are ( $+ %Gather.Color1 $+ $+ $gettok(%us,2,32) $+ / $+ $gettok(%us,1,32) $+ %Gather.Color2 $+ ): %temp) }
- else { msg %Gather.Channel $stlmain(%temp) }
- }
- if (!%us) { msg %Gather.Channel $stlmain(Gatherbot is empty of $+ %Gather.Color2 $1 $+ s) }
- }
- alias Users {
- var %x 1, %on 0, %all 0
- while ($ini(Access.ini,Access,%x)) {
- if ($Acc($ini(Access.ini,Access,%x)).lvl == $1) { inc %all
- if ($Acc($ini(Access.ini,Access,%x)).status == ON) inc %on
- }
- inc %x
- }
- return %all %on
- }
- alias Reset-Today {
- Set %Gather.Yesterday %Gather.Today
- Set %Gather.Yesterdaydate %Gather.LastReset
- Set %Gather.LastReset $date
- echo -ts (12Reset-Today1) Reset Today Gathers...
- set %Gather.Today 0
- var %x = 1
- while ($ini(Access.ini,Access,%x)) { ACC $ifmatch Today 0 | inc %x }
- var %x = 1
- while ($ini(Today.ini,%x)) {
- writeini -n Today.ini %x Yesterday $readini(Today.ini,%x,Today)
- writeini -n Today.ini %x Today 0
- inc %x
- }
- }
- alias ShowScore {
- if ($data($1).Status == OFF) { ShowStatus $1 }
- else {
- if ($data($1).Type == Regular) {
- if ($data($1).Live) { msg %Gather.Channel $stl($1,Score is ( $+ $data($1).Color2 $+ Team-A $+ $data($1).Color1 $+ ): $+ $data($1).Color2 $Score($1,A) $+ $data($1).Color1 $chr(44) $+ ( $+ $data($1).Color2 $+ Team-B $+ $data($1).Color1 $+ ): $+ $data($1).Color2 $Score($1,B) $+ $data($1).Color1 ( $+ $data($1).Color2 $+ $+ $Score($1,Half) $+ $data($1).Color1 $+ )) }
- else { msg %Gather.Channel $stl($1,Match is not live Yet!) }
- }
- elseif ($data($1).Type == DM) {
- if ($data($1).Live) { msg %Gather.Channel $stl($1,Score is ( $+ $data($1).Color2 $+ Team-A $+ $data($1).Color1 $+ ): $+ $data($1).Color2 $Score($1,A) $+ / $+ %gather.WinScore $+ $data($1).Color1 $chr(44) $+ ( $+ $data($1).Color2 $+ Team-B $+ $data($1).Color1 $+ ): $+ $data($1).Color2 $Score($1,B) $+ / $+ %gather.winscore) }
- else { msg %Gather.Channel $stl($1,Match is not live Yet!) }
- }
- }
- }
- alias ShowMap {
- if ($data($1).Status) {
- if ($data($1).Status == OFF) { ;ShowStatus $1 }
- else msg %Gather.Channel $stl($1,Map is: $+ $data($1).Color2 $data($1).Map)
- }
- }
- alias ShowAdmin {
- if ($data($1).Status) {
- if ($data($1).Status == OFF) { ;ShowStatus $1 }
- else msg %Gather.Channel $stl($1,Admin is: $+ $data($1).Color2 $data($1).Admin)
- }
- }
- alias ShowHelp { msg %Gather.Channel $stlmain($cmd(Status) $cmd(Server) $cmd(Vent) $cmd(Admin(s)) $cmd(Levels) $cmd(score) $cmd(Gathers) $cmd(rank) $cmd(stats) $cmd(whois))) }
- alias cmd { if ($1) return %Gather.Color2 $+ %Gather.Sign $+ %Gather.Color1 $+ $1 }
- alias SubFound {
- var %team = $data($1).Sub
- unaset $1 Sub
- msg %Gather.Channel $stl($1,Sub has been found - $+ $data($1).Color2 $2)
- .timerSub $+ $1 $+ %team Off
- Set -u4 %Gather.Flood ON
- aset $1 Subs $data($1).subs $nick
- aset $1 Address $data($1).address $address
- tsay $1 Sub has been found for Team- $+ $upper(%team) - $2
- ssay $1 Sub has been found for Team- $+ $upper(%team) - $2
- if (%Gather.Adding) && ($isnick(%Gather.Adding,$nick)) && ($nick !== $data($1).Admin) { aset %Gather.Adding Players $remtok($data(%Gather.Adding).players,$nick,32) | aset %Gather.Adding Address $remtok($data(%Gather.Adding).address,$address,32) }
- CheckToStopTimer
- var %r = $r(1,5)
- msg $nick $details($1,%team)
- else { msg $nick $details($1,%team) }
- ;msg $nick $details($1,%team)
- ;msg %Gather.Pratim $+ $r(1, $+ %Gather.Pratims $+ ) SendMsg $nick $details($1,%team)
- }
- alias details { var %r = Pass $+ $2 | return $stl($1,Gather $+ $data($1).Color2 $1 $+ $data($1).Color1 $+ : ( $+ $data($1).Color2 $+ Team- $+ $upper($2) $+ $data($1).Color1 $+ ) $+ $data($1).Color1 Server: $+ $data($1).Color2 $data($1).host $+ $data($1).Color1 $chr(44) $+ pass: $+ $data($1).Color2 $data($1).pass $chr(44) $+ $data($1).Color1 $+ Vent: $+ $data($1).Color2 %Gather.Vent $chr(44) $+ $data($1).Color1 $+ Room- $+ $upper($2) $+ : $+ $data($1).Color2 %Gather [ $+ [ $1 ] ] [ $+ [ . ] ] [ $+ [ %r ] ] $chr(44) $+ $data($1).Color1 $+ AutoRun: $+ $data($1).Color2 /run steam://connect/ $+ $data($1).host $+ / $+ $data($1).pass ) }
- ;/SubSearch <Num> <A/B/OFF>
- alias SubSearch {
- if ($2 == A) || ($2 == B) { ssay $1 Searching sub for Team- $+ $2 | tsay $1 Searching sub for Team- $+ $2 | aset $1 Sub $2 | SubNotice | set %Gather.Sub-Status ON }
- elseif ($2 == OFF) {
- .timerSub $+ $1 $+ * Off
- ssay $1 Sub Searching has been canceled.
- tsay $1 Sub Searching has been canceled.
- msg %Gather.Channel $stl($1,Sub Searching has been canceled.)
- unaset $1 Sub
- unset %Gather.Sub-Status
- Sub $1 OFF
- CheckToStopTimer
- }
- }
- alias Sub {
- if ( ($2 == A) || ($2 == B) ) && ($data($1).Map) && (!$data($1).Notlive) && ($data($1).Live) { Set -u4 %Gather.CantStart ON | mode %Gather.Channel -N+m | notice %Gather.Channel $stl($1,Sub is needed $+ $chr(44) Type $data($1).Color2 $+ $Sign($1) $+ $data($1).Color1 $+ sub to be sub $chr(44) $+ Admin: $+ $data($1).Color2 $data($1).Admin $+ $data($1).Color1 $chr(44) $+ Map: $+ $data($1).Color2 $data($1).Map $+ $data($1).Color1 $chr(44) $+ Score: $+ $data($1).Color2 $Score($1,A) - $Score($1,B) ) | .timer 1 2 mode %Gather.Channel +N-m }
- if ( ($2 == A) || ($2 == B) ) && ($data($1).Map) && (($data($1).Notlive) || ($data($1).half == notyet)) { Set -u4 %Gather.CantStart ON | mode %Gather.Channel -N+m | notice %Gather.Channel $stl($1,Sub is needed $+ $chr(44) Type $data($1).Color2 $+ $Sign($1) $+ $data($1).Color1 $+ sub to be sub $chr(44) $+ Admin: $+ $data($1).Color2 $data($1).Admin $+ $data($1).Color1 $chr(44) $+ Map: $+ $data($1).Color2 $data($1).Map $+ $data($1).Color1 $chr(44) $+ Score: $+ $data($1).Color2 Not Live) | .timer 1 2 mode %Gather.Channel +N-m }
- elseif ($2 == OFF) { ;msg %Gather.Channel $stl($1,Sub player searching has been canceled.) }
- }
- alias CheckToStopTimer { if (!$var(%Gather*.Sub,0)) .timerSub Off }
- alias SubNotice {
- if (!$timer(Sub)) { SubNoticeMsg | .timerSub 0 30 SubNoticeMsg }
- elseif ($timer(Sub).secs > 7) && ($timer(Sub).secs < 22) { SubNoticeMsg | .timerSub 0 30 SubNoticeMsg }
- }
- alias SubNoticeMsg {
- var %x 1, %temp, %y, %num
- while ($var(%Gather*.Sub,%x)) {
- var %num = $remove($chr(37) $+ $v1,.Sub,Gather,$chr(37))
- var %temp = %temp $data(%num).Color2 $+ $Sign(%num) $+ $data(%num).Color1 $+ Sub ( $+ $data(%num).Color2 $+ $+ $data(%num).Map $+ $data(%num).Color1 $+ $data(%num).Color2 $+ $+ $data(%num).Color1 $+ ) $+ $iif($var(%Gather*.Sub,$calc(%x +1)),$chr(44))
- var %y = %num
- inc %x
- }
- if ($numtok(%temp,32) == 2) { Sub %y $data(%y).Sub }
- else { if (%temp) { Set -u4 %Gather.CantStart ON | mode %Gather.Channel -N+m | notice %Gather.Channel $stl($1,Sub is needed $+ $chr(44) Type %temp) | .timer 1 1 mode %Gather.Channel +N-m } }
- }
- alias Send-details {
- var %x 1, %p $data($1).Team-A $data($1).Team-B, %y 1
- while ($Gettok(%p,%x,32)) {
- var %n = $v1
- var %team = $iif($istok($data($1).Team-A,%n,32),A,B)
- .timer 1 %y msg %n $details($1,%team)
- inc %x
- inc %y 5
- }
- }
- alias ShowVentrilo { msg %Gather.Channel $stlmain( $+ %Gather.Color2 $+ Ventrilo $+ %Gather.Color1 $+ : %Gather.Vent ( $+ %Gather.Color2 $+ v $+ %Gather.Vent-Version $+ %Gather.Color1 $+ )) }
- alias EndAdding {
- Set -u30 %Gather.CantSend ON
- unset %Gather.Adding
- mode %Gather.Channel +m
- .timerPlayers OFF | Set -u42 %Gather.CantStart ON | Set -u60 %Gather.CantGetPass ON
- .timer -m 1 200 msg %Gather.Channel $stl($1,Mixing teams, Please wait ...)
- .timer -m 1 215 msg %Gather.Channel $stl($1,Gatherbot sending details, please wait 30 seconds maximum!)
- .timer 1 20 mode %Gather.Channel -m
- aset $1 Status ON
- MIX $1 | if (%Gather.VentSystem == ON) { .timer -m 1 500 details3 open $1 } | if (%Gather.VentSystem == On) { .timer -m 1 500 ChangePassVent $1 }
- .timer 1 1 ShowTeams $1 CT\T
- .timer 1 2 SendPratimNew $1 $data($1).Max
- .RCON $1
- .timer 1 5 PRAC $1
- ;.timer 1 20 msg #vgames,#vgames.gathers %Gather.Style1 Team A:8 $data($1).Team-A 0vs Team B:8 $data($1).Team-B 0HLTV:8 212.29.229.2:27215 %Gather.Style2
- ;.timer 1 30 msg #vgames.cs !hltvc $data($1).Pass $data($1).Server
- }
- ;/SendPratimNew $1 $data($1).Max
- alias SendPratimNew {
- if ($2 == 12) {
- msg $replace($gettok($data($1).Team-A,1-2,32),$chr(32),$chr(44)) $details($1,A)
- .timer 1 4 msg $replace($gettok($data($1).Team-A,3-4,32),$chr(32),$chr(44)) $details($1,A)
- .timer 1 10 msg $replace($gettok($data($1).Team-A,5-,32),$chr(32),$chr(44)) $details($1,A)
- .timer 1 18 msg $replace($gettok($data($1).Team-B,1-3,32),$chr(32),$chr(44)) $details($1,B)
- .timer 1 25 msg $replace($gettok($data($1).Team-B,4-,32),$chr(32),$chr(44)) $details($1,B)
- }
- elseif ($2 == 10) {
- msg $replace($gettok($data($1).Team-A,1,32),$chr(32),$chr(44)) $details($1,A)
- .timer 1 3 msg $replace($gettok($data($1).Team-A,2,32),$chr(32),$chr(44)) $details($1,A)
- .timer 1 10 msg $replace($gettok($data($1).Team-A,3-,32),$chr(32),$chr(44)) $details($1,A)
- .timer 1 17 msg $replace($gettok($data($1).Team-B,1-3,32),$chr(32),$chr(44)) $details($1,B)
- .timer 1 24 msg $replace($gettok($data($1).Team-B,4-,32),$chr(32),$chr(44)) $details($1,B)
- }
- elseif ($2 == 8) {
- msg $replace($gettok($data($1).Team-A,1,32),$chr(32),$chr(44)) $details($1,A)
- .timer 1 3 msg $gettok($data($1).Team-A,2,32) $details($1,A)
- .timer 1 8 msg $replace($gettok($data($1).Team-A,3-,32),$chr(32),$chr(44)) $details($1,A)
- .timer 1 13 msg $replace($gettok($data($1).Team-B,1-2,32),$chr(32),$chr(44)) $details($1,B)
- .timer 1 20 msg $replace($gettok($data($1).Team-B,3-,32),$chr(32),$chr(44)) $details($1,B)
- }
- elseif ($2 == 6) {
- msg $replace($gettok($data($1).Team-A,1,32),$chr(32),$chr(44)) $details($1,A)
- .timer 1 3 msg $gettok($data($1).Team-A,2,32) $details($1,A)
- .timer 1 9 msg $replace($gettok($data($1).Team-A,3,32),$chr(32),$chr(44)) $details($1,A)
- .timer 1 15 msg $replace($gettok($data($1).Team-B,1,32),$chr(32),$chr(44)) $details($1,B)
- .timer 1 20 msg $replace($gettok($data($1).Team-B,2-,32),$chr(32),$chr(44)) $details($1,B)
- }
- elseif ($2 == 4) {
- .timer 1 2 msg $replace($gettok($data($1).Team-A,1-,32),$chr(32),$chr(44)) $details($1,A)
- .timer 1 4 msg $replace($gettok($data($1).Team-B,1-,32),$chr(32),$chr(44)) $details($1,B)
- }
- elseif ($2 == 2) {
- .timer 1 1 msg $replace($data($1).Team-A,$chr(32),$chr(44)) $details($1,A)
- .timer 1 3 msg $replace($data($1).Team-B,$chr(32),$chr(44)) $details($1,B)
- }
- }
- alias ShowTeams {
- if ($data($1).Status) {
- if ($2) { var %teama = $rand(A,B) | if (%teama == A) { var %teamb = CT | var %teama = T } | else { var %teamb = T | var %teama = CT } }
- if ($data($1).Status == OFF) { ShowStatus $1 }
- else {
- msg %Gather.Channel $stl($1,$data($1).Color2 $+ Team-A $+ $data($1).Color1 $+ : $replace($data($1).Team-A,$data($1).Admin,« $+ $data($1).Color2 $+ $+ $data($1).Admin $+ $+ $data($1).Color1 $+ ») $data($1).Color2 $+ $iif($2,(Team A will start on %teama $+ )))
- msg %Gather.Channel $stl($1,$data($1).Color2 $+ Team-B $+ $data($1).Color1 $+ : $replace($data($1).Team-B,$data($1).Admin,« $+ $data($1).Color2 $+ $+ $data($1).Admin $+ $+ $data($1).Color1 $+ ») $data($1).Color2 $+ $iif($2,(Team B will start on %teamb $+ )))
- .timer 1 10 msg $data($1).Admin $stl($1,$data($1).Color2 Please be sure that $data($1).Color2 $+ Team-A $+ $data($1).Color1 will start on $data($1).Color2 $+ %teama $+ $data($1).Color1 and $data($1).Color2 $+ Team-B $+ $data($1).Color1 will start on $data($1).Color2 $+ %teamb)
- }
- }
- }
- alias MIX {
- var %NEWPlayers1 $data($1).players,%NEW,%AFTER
- while ($numtok(%NEWPlayers1,32)) { %NEW = $gettok(%NEWPlayers1,$r(1,$v1),32) | %AFTER = %AFTER %NEW | %NEWPlayers1 = $remove(%NEWPlayers1,%NEW) }
- aset $1 Team-A $gettok(%AFTER,1- $calc($numtok($data($1).players,32) /2),32) | aset $1 Team-B $gettok(%AFTER,$calc($calc($numtok($data($1).players,32) /2) +1) -,32)
- }
- ON *:Join:%Gather.Channel: {
- if (%Gather.Adding) && ($nick == $data(%Gather.Adding).Admin) { timerAdminPart $+ %Gather.Adding off }
- if (%Gather.Adding) && ($nick == $data(%Gather.Adding).Admin) { timerAdminKick $+ %Gather.Adding off }
- if (%Gather.Adding) && ($nick == $data(%Gather.Adding).Admin) { timerAdminQuit $+ %Gather.Adding off }
- }
- ON *:PART:%Gather.Channel: {
- if (%Gather.Adding) && ($isnick(%Gather.Adding,$nick)) && ($nick !== $data(%Gather.Adding).Admin) { aset %Gather.Adding Players $remtok($data(%Gather.Adding).players,$nick,32) | aset %Gather.Adding Address $remtok($data(%Gather.Adding).address,$address,32) }
- if ($islogged($gettok($address,2-,64))) { LogoutUser $v1 $nick $gettok($address,2-,64) Part }
- if (%Gather.Adding) && ($nick == $data(%Gather.Adding).Admin) { timerAdminPart $+ %Gather.Adding 1 3 StopGather %Gather.Adding Gatherbot-System Admin Left The Channel }
- }
- ON *:KICK:%Gather.Channel {
- if (%Gather.Adding) && ($isnick(%Gather.Adding,$knick)) && ($knick !== $data(%Gather.Adding).Admin) { aset %Gather.Adding Players $remtok($data(%Gather.Adding).players,$knick,32) | aset %Gather.Adding Address $remtok($data(%Gather.Adding).address, $+ $remove($address($knick,5),$knick,!) $+ ,32) }
- if ($islogged($remove($address($knick,2),*!*@))) { LogoutUser $v1 $knick $remove($address($knick,2),*!*@) Kicked from channel }
- if (%Gather.Adding) && ($knick == $data(%Gather.Adding).Admin) { timerAdminKick $+ %Gather.Adding 1 3 StopGather %Gather.Adding Gatherbot-System Admin has been Kicked from The Channel }
- }
- ON *:QUIT: {
- if (%Gather.Adding) && ($isnick(%Gather.Adding,$nick)) && ($nick !== $data(%Gather.Adding).Admin) { aset %Gather.Adding Players $remtok($data(%Gather.Adding).players,$nick,32) | aset %Gather.Adding Address $remtok($data(%Gather.Adding).address,$address,32) }
- if ($islogged($gettok($address,2-,64))) { LogoutUser $v1 $nick $gettok($address,2-,64) Quit }
- if (%Gather.Adding) && ($nick == $data(%Gather.Adding).Admin) { timerAdminQuit $+ %Gather.Adding 1 60 StopGather %Gather.Adding Gatherbot-System Admin Quit From The Channel (Before 60 Secounds) }
- }
- ON !*:NICK: { if (%Gather.Adding) && ($isnick(%Gather.Adding,$nick)) { aset %Gather.Adding Players $reptok($data(%Gather.Adding).players,$nick,$newnick,32) | if ($nick == $data(%Gather.Adding).Admin) { aset %Gather.Adding Admin $newnick } } }
- alias islogged { return $readini(Access.ini,ADDRESS,$1) }
- alias ispremium { if (%Gather.Premium == ON) { return $readini(Premium.ini,STEAMIDS,$1) } }
- alias isadmin { return $readini(Access.ini,STEAMIDS,$1) }
- alias ismap { return $read(Maps.txt, w,$1) }
- alias ShowPlayers { msg %Gather.Channel $stl($1,Players $data($1).Color2 $+ ( $+ $data($1).Color1 $+ $+ $numtok($data($1).Players,32) $+ / $+ $data($1).Max $+ $data($1).Color2 $+ ) $+ $data($1).Color1 « $+ $data($1).Color2 $+ $+ $data($1).Admin $+ $+ $data($1).Color1 $+ » ¬ $replace($gettok($data($1).Players,2-,32),$chr(32),$chr(32) ¬ $chr(32),%Gather.TAG,$data($1).Color2 $+ $+ %Gather.TAG $+ $data($1).Color1)) }
- ;$isaddress(num,address)
- alias isaddress { return $istok($data($1).address,$2,32) }
- ;$isnick(num,nick)
- alias isnick { if ( ($istok($data($1).players,$2,32)) || ($istok($data($1).subs,$2,32)) ) { return $true } }
- alias ShowAddingStatus { msg %Gather.Channel $stl($1,$iif($data($1).Type !== Regular,$data($1).Type,$+) Gather is 3ON $+ $data($1).Color1 ( $+ $data($1).Color2 $+ $+ $numtok($data($1).players,32) $+ / $+ $data($1).Max $+ $data($1).Color1 $+ ) $+ $chr(44) Map: $+ $data($1).Color2 $data($1).Map $+ $data($1).Color1 $chr(44) $+ Use $+ $data($1).Color2 $Sign($1) $+ $data($1).Color1 $+ add to Add yourself.) }
- alias ShowStatus {
- if ($data($1).Status) {
- if ($data($1).Status == ON) && (!$data($1).Notlive) && ($data($1).Live) { msg %Gather.Channel $stl($1,$iif($data($1).Type !== Regular,$data($1).Type,$+) Gather $+ $data($1).Color2 $1 $data($1).Color1 $+ Started At $+ $data($1).Color2 $gettok($data($1).Started,1,32) $+ $data($1).Color1 $chr(44) $+ Admin: $+ $data($1).Color2 $data($1).Admin $+ $data($1).Color1 $chr(44) $+ Map: $+ $data($1).Color2 $data($1).Map $+ $data($1).Color1 $chr(44) $+ Score: $+ $data($1).Color2 $score($1,A) $data($1).Color1 $+ - $+ $data($1).Color2 $Score($1,B) $data($1).Color1 $+ ( $+ $data($1).Color2 $+ $+ $score($1,Half) $+ $data($1).Color1 $+ )) }
- if ($data($1).Status == ON) && (($data($1).Notlive) || ($data($1).half == notyet)) { msg %Gather.Channel $stl($1,$iif($data($1).Type !== Regular,$data($1).Type,$+) Gather $+ $data($1).Color2 $1 $data($1).Color1 $+ Started At $+ $data($1).Color2 $gettok($data($1).Started,1,32) $+ $data($1).Color1 $chr(44) $+ Admin: $+ $data($1).Color2 $data($1).Admin $+ $data($1).Color1 $chr(44) $+ Map: $+ $data($1).Color2 $data($1).Map $+ $data($1).Color1 $chr(44) $+ Score: $+ $data($1).Color2 Not started) }
- if ($data($1).Status == OFF) { msg %Gather.Channel $stl($1,There is no $iif($data($1).Type !== Regular,$data($1).Type,$+) gather running at the moment.) }
- }
- }
- alias glevel { return $($+(%,GatherLV,$1,.,$prop),2) }
- alias data { return $($+(%,Gather,$1,.,$prop),2) }
- alias stlmain { return %Gather.Style1 $1- %Gather.Style2 }
- alias SignMain { return %Gather.Sign $+ $1 }
- alias Sign { return $data($1).Sign $+ $2 }
- alias addmap {
- if (!$read(Maps.txt, w, $+ $1 $+ )) .write Maps.txt $1
- }
- ;/StartGather <Num> <Address> <User> <Nick> <Map> <Server> <A> <B>
- alias StartGather {
- whois $4
- if (%Gather.CantStart) halt
- if (%Gather.Adding) && (%Gather.Sub-Status) { Halt }
- if ($4 !ison %Gather.Logchannel) && ($4 !ison %Gather.Channel) { Halt }
- elseif ($data($1).Connected == BadRcon) { msg $4 $stl($1,Cannot run gather. Reason: Bad rcon password.) | Halt }
- elseif ($data($1).Connected == Banned) { msg $4 $stl($1,Cannot run gather. Reason: Gatherbot is BANNED from the server.) | Halt }
- elseif ($data($1).Connected == OFF) || (!$data($1).Connected) { msg $4 $stl($1,Cannot run gather. Reason: Gatherbot isn't connect to the server.) | Halt }
- elseif ($chr(37) $+ Gather isin $1-) || ($chr(36) isin $1-) || ($chr(124) isin $5-) { msg %Gather.Channel $stlmain($4 %Gather.Color1 $+ is trying hack the gatherbot.) | Halt }
- elseif (!$ismap($5)) { msg $4 $stl($1,Error: Wrong map name! ( $+ $data($1).Color2 $+ $5 $+ $data($1).Color1 $+ ) ) | Halt }
- Set %Gather.Adding $1
- .timerSub $+ $1 $+ * Off
- RCON $1
- unaset $1 Sub
- unaset $1 SecondA
- unaset $1 SecondB
- unaset $1 MR3A
- unaset $1 MR3B
- unset %Gather.CantSend
- unaset $1 FirstA
- unaset $1 FirstB
- inc %Gather.num
- inc %Gather.Today
- writeini -n Today.ini $1 Today $calc($readini(Today.ini,$1,Today) +1)
- ACC $3 Gathers $calc($acc($3).Gathers +1)
- ACC $3 Today $calc($GathersToday($3) +1)
- aset $1 AdminUser $3
- aset $1 GatherNum %Gather.num
- aset $1 Status Adding
- aset $1 Max 10
- aset $1 LastGather $time / $date
- unaset $1 Team-A
- unaset $1 Team-B
- unaset $1 ScoreStatus
- unaset $1 Score-CT
- unaset $1 Score-T
- unaset $1 Banlast
- unaset $1 Live
- unaset $1 BombPlanet
- aset $1 Half notyet
- aset $1 ScoreStatus OFF
- aset $1 Map $5
- aset $1 Admin $4
- aset $1 Players $4
- aset $1 Address ~ $+ $2
- aset $1 Started $time / $date
- aset $1 PassA $iif($7,$7,$r(1,9) $+ $r(1,9))
- aset $1 PassB $iif($8,$8,$r(1,9) $+ $r(1,9))
- aset $1 Pass $iif($6,$6,$r(1,9) $+ $r(1,9) $+ $r(1,9))
- msg $4 $stl($1,Gather details: $data($1).Color2 $+ Server pass: $+ $data($1).Color1 $data($1).pass $data($1).Color2 $+ Room-A: $+ $data($1).Color1 $data($1).passa $data($1).Color2 $+ Room-B: $+ $data($1).Color1 $data($1).passb)
- msg #vGames %Gather.Style1 Gather Start on %Gather.Channel Type: $data($1).Sign $+ Add %Gather.Style2
- ;msg %Gather.Logchannel $data($1).Style1 Gather Start on $+ $data($1).Color2 %Gather.Channel $data($1).Style2
- msg %Gather.Channel $data($1).Style1 Gather Start on $+ $data($1).Color2 %Gather.Channel $data($1).Style2
- mode %Gather.Channel +m-N
- notice %Gather.Channel $stl($1, $+ $iif($data($1).Type !== Regular,$data($1).Type,$+) Gather is about to START Be ready for -m)
- msg %Gather.Channel $stl($1,Starting the $+ $data($1).Color2 $ord($data($1).GatherNum) $+ $data($1).Color1 $+ $iif($data($1).Type !== Regular,$data($1).Type,$+) Gather since the $+ $data($1).Color2 $gettok($data($1).Started,1,32) $data($1).Color1 $+ by $+ $data($1).Color2 $data($1).Admin)
- .timer 1 0 msg %Gather.Channel $stl($1,Current map $+ $data($1).Color2 $data($1).Map $data($1).Color1 $+ $+ $chr(44) $+ Commands are: $+ $data($1).Color2 $Sign($1) $+ $data($1).Color1 $+ Add $+ $data($1).Color2 $Sign($1) $+ $data($1).Color1 $+ Remove $+ $data($1).Color2 $Sign($1) $+ $data($1).Color1 $+ Players)
- if (%Gather.Startnotice) .timer 1 2 notice %Gather.Channel $stl($1,%Gather.Startnotice)
- .timer 1 6 mode %Gather.Channel -m+N
- rcmd $1 sv_password $data($1).Pass
- .timer 1 1 rcmd $1 admin_command admin_map $data($1).Map
- .timer 1 3 rcmd $1 sv_password $data($1).Pass
- .timer 1 3 rcmd $1 admin_command admin_map $data($1).Map
- ;.timer 1 5 msg %Gather.Channel 4http://forum.vgames.co.il/showthread.php?t=15547981 - Read the 4Rules1 before u playing.
- if ($exists(Mvps.ini)) .remini -n Mvps.ini $1
- if ($data($1).Type !== DM) { .timer 1 10 rcmd $1 csdm_active 0 }
- else .timer 1 10 rcmd $1 csdm_active 1
- if (%Gather.VentSystem == ON) { .timer 1 8 details3 adding $1 }
- if (%Gather.VentSystem == OFF) { .timer 1 8 AddingPassVent $1 }
- }
- ;/StopGather <num> <nick> <Reason>
- alias StopGather {
- if (!%Gather.Adding) Halt
- unset %Gather.Adding
- if ($data($1).Status) {
- if ($readini(Today.ini,$1,Today) == 0) { halt }
- writeini -n Today.ini $1 Today $calc($readini(Today.ini,$1,Today) -1)
- }
- msg %Gather.Channel $stl($1, $+ $iif($data($1).Type !== Regular,$data($1).Type,$+) Gather number < $+ $data($1).Color2 $+ $+ %Gather.num $+ $+ $data($1).Color1 $+ > Has been stopped by $+ $data($1).Color2 $2 $iif($3,$data($1).Color1 $+ Reason: $+ $data($1).Color2 $3-))
- .timerSub $+ $1 $+ * Off
- aset $1 Max 10
- if (%Gather.VentSystem == ON) { details3 close $1 }
- if (%Gather.VentSystem == OFF) { .timer 1 1 RemovePassVent $1 }
- unaset $1 Sub
- unaset $1 Subs
- unaset $1 SecondA
- unaset $1 SecondB
- unaset $1 MR3A
- unaset $1 MR3B
- unaset $1 FirstA
- unaset $1 FirstB
- unaset $1 Players
- unaset $1 Address
- unaset $1 Pass
- unaset $1 PassA
- unaset $1 PassB
- unaset $1 Admin
- unaset $1 Team-A
- unaset $1 Team-B
- unaset $1 ScoreStatus
- unaset $1 Score-CT
- unaset $1 Score-T
- unaset $1 Banlast
- unaset $1 Live
- unaset $1 BombPlanet
- unaset $1 Started
- unaset $1 Map
- unaset $1 Half
- aset $1 Status OFF
- aset $1 GatherNum $calc($data($1).GatherNum -1)
- ACC $data($1).AdminUser Gathers $calc($acc($data($1).AdminUser).Gathers -1)
- ACC $data($1).AdminUser Today $calc($GathersToday($data($1).AdminUser) -1)
- var %AdminUser $data($1).AdminUser
- unaset $1 AdminUser
- dec %Gather.Today
- .timer 1 3 rcmd $1 sv_password $r(1,9) $+ $r(1,9) $+ $r(1,9)
- .timer 1 5 rcmd $1 admin_command admin_execall disconnect
- .timer 1 2 /ignore *!*@*
- .timer 1 7 /ignore -r *!*@*
- if ($exists(Mvps.ini)) .remini -n Mvps.ini $1
- if ($exists(TeamsForVgPoints $+ $1 $+ .ini ) { .remove TeamsForVgPoints $+ $1 $+ .ini }
- }
- ;/EndGather <num> <by> <reason>
- alias EndGather {
- if ($ini(Curse.ini,Cursing $+ $1)) {
- remini Curse.ini Cursing $+ $1
- }
- if ($data($1).Status == OFF) Halt
- .timerSub $+ $1 $+ * Off
- Set %Gather.LastStarted $data($1).Started
- if ($data($1).Type == Regular) {
- if ($calc($Score($1,A) + $Score($1,B)) < 5) || (!$data($1).Live) { var %AdminUser $data($1).AdminUser | ACC $data($1).AdminUser Gathers $calc($acc($data($1).AdminUser).Gathers -1) }
- else { setMvps $1 | SetVgamesPoints $1 }
- }
- if ($data($1).Type == DM) { setMvps $1 }
- rcmd $1 allow_client_exec 1
- if (!$data($1).Notlive) && ($data($1).Live) {
- msg %Gather.Channel $stl($1, $+ $iif($data($1).Type !== Regular,$data($1).Type,$+) Gather Number < $+ $data($1).Color2 $+ $+ $data($1).GatherNum $+ $+ $data($1).Color1 $+ > is over! $iif($2,by $+ $data($1).Color2 $2 $+ $data($1).Color1) Score was ( $+ $data($1).Color2 $+ $+ $Score($1,A) $+ $data($1).Color1 $+ - $+ $data($1).Color2 $+ $+ $Score($1,B) $+ $data($1).Color1 $+ ) $+ $chr(44) Ready for the next one. $iif($3-,$data($1).Color1 $+ Reason: $+ $data($1).Color2 $3-))
- ssay $1 $iif($data($1).Type !== Regular,$data($1).Type) Gather is over! ( $+ $Score($1,A) $+ - $Score($1,B) $+ )
- tsay $1 $iif($data($1).Type !== Regular,$data($1).Type) Gather is over! ( $+ $Score($1,A) $+ - $Score($1,B) $+ )
- }
- if (($data($1).Notlive) || ($data($1).half == notyet)) {
- msg %Gather.Channel $stl($1, $+ $iif($data($1).Type !== Regular,$data($1).Type,$+) Gather Number < $+ $data($1).Color2 $+ $+ $data($1).GatherNum $+ $+ $data($1).Color1 $+ > is over! $iif($2,by $+ $data($1).Color2 $2 $+ $data($1).Color1) Score was ( $+ $data($1).Color2 $+ $+ Not Live $+ $data($1).Color1 $+ ) $+ $chr(44) Ready for the next one. $iif($3-,$data($1).Color1 $+ Reason: $+ $data($1).Color2 $3-))
- ssay $1 $iif($data($1).Type !== Regular,$data($1).Type) Gather is over! ( $+ Not Live $+ )
- tsay $1 $iif($data($1).Type !== Regular,$data($1).Type) Gather is over! ( $+ Not Live $+ )
- }
- .timer 1 2 /ignore *!*@*
- .timer 1 7 /ignore -r *!*@*
- .timer 1 3 rcmd $1 sv_password $r(1,9) $+ $r(1,9) $+ $r(1,9)
- .timer 1 5 rcmd $1 admin_command admin_execall disconnect
- unaset $1 Sub
- CheckToStopTimer
- unaset $1 bantk
- unaset $1 Subs
- unaset $1 SecondA
- unaset $1 SecondB
- unaset $1 MR3A
- unaset $1 MR3B
- unaset $1 FirstA
- unaset $1 FirstB
- unaset $1 Players
- unaset $1 Address
- unaset $1 Pass
- unaset $1 PassA
- unaset $1 PassB
- unaset $1 Admin
- unaset $1 Team-A
- unaset $1 Team-B
- unaset $1 ScoreStatus
- unaset $1 Score-CT
- unaset $1 Score-T
- unaset $1 Banlast
- unaset $1 Live
- unaset $1 BombPlanet
- unaset $1 Started
- unaset $1 Map
- unaset $1 Half
- aset $1 Status OFF
- unaset $1 AdminUser
- aset $1 Max 10
- if (%Gather.VentSystem == Off) { details3 close $1 }
- if (%Gather.VentSystem == ON) { .timer 1 1 RemovePassVent $1 }
- if ($exists(Kills $+ $1 $+ .ini)) { .remove Kills $+ $1 $+ .ini }
- if ($exists(TeamsForVgPoints $+ $1 $+ .ini )) { .remove TeamsForVgPoints $+ $1 $+ .ini }
- }
- alias SetMvps {
- Set -u2 %Gather.Flood ON | var %num = $FindMvpNum($1) | .close -@ @Bot | .window -h @Bot | var %x 1, %o 1
- while ($ini(Mvps.ini,%num,%x)) { var %s = $v1 | echo @Bot %s $readini(Mvps.ini,$1,%s) | inc %x }
- filter -cwwteu 2 32 @Bot @Bot | var %1st = $gettok($line(@Bot,1),1,32) | var %2nd = $gettok($line(@Bot,2),1,32) | var %3rd = $gettok($line(@Bot,3),1,32)
- if (%1st) { Stats inc %1st mvps 3 | Stats inc %1st Points 12 }
- if (%2nd) { Stats inc %2nd mvps 2 | Stats inc %2nd Points 10 }
- if (%3rd) { Stats inc %3rd mvps 1 | Stats inc %3rd Points 8 }
- msg %Gather.Channel $stl($1,$data($1).Color2 $+ MVP'S $+ $data($1).Color1 of the game: $data($1).Color2 $+ $+ 1st. $+ $data($1).Color1 $Stats(%1st).nick $data($1).Color2 $+ $+ 2nd. $+ $data($1).Color1 $Stats(%2nd).nick $data($1).Color2 $+ $+ 3rd. $+ $data($1).Color1 $Stats(%3rd).nick)
- tsay $1 MVPS'S of the game: 1st.( $+ $Stats(%1st).nick $+ ) 2nd.( $+ $Stats(%2nd).nick $+ ) 3rd.( $+ $Stats(%3rd).nick $+ ).
- ssay $1 MVPS'S of the game: 1st.( $+ $Stats(%1st).nick $+ ) 2nd.( $+ $Stats(%2nd).nick $+ ) 3rd.( $+ $Stats(%3rd).nick $+ ).
- if ($exists(Mvps.ini)) .timer 1 3 ;remini -n Mvps.ini $1
- }
- alias SetVgamesPoints {
- if ($Score($1,A) > $Score($1,B)) {
- var %x = 1
- while (%x <= $ini(TeamsForVgPoints $+ $1 $+ .ini,A,0)) {
- Stats inc $ini(TeamsForVgPoints $+ $1 $+ .ini,A,%x) Vgames-Points 1
- inc %x
- }
- }
- elseif ($Score($1,A) < $Score($1,B)) {
- var %x = 1
- while (%x <= $ini(TeamsForVgPoints $+ $1 $+ .ini,B,0)) {
- Stats inc $ini(TeamsForVgPoints $+ $1 $+ .ini,B,%x) Vgames-Points 1
- inc %x
- }
- }
- }
- alias FindMvpNum { var %x = 1 | while ($ini(Mvps.ini,%x)) { if ($v1 == $1) return %x | inc %x } }
- alias FindSiteNum { var %x = 1 | while ($ini(Mvps.ini,%x)) { if ($v1 == $1) return %x | inc %x } }
- alias ServerlistStop {
- .timerShowServer* off
- }
- alias Serverlist {
- var %x 1, %y 1
- while ($var(%Gather*.Status,%x)) {
- .timerShowServer $+ %x 1 %y HL %x
- inc %x
- inc %y 2
- }
- }
- ;;;;; CS 1.6 Multi Server Connection ;;;;;
- alias RCONstart {
- echo -st (12RCON1)3 Starting RCONS ...
- var %x 1, %y 1
- while ($var(%Gather*.Status,%x)) { .timer 1 %y RCON %x | inc %x | inc %y 10 }
- }
- alias RCONclose { .timerRCON $+ $1 Off | .timerRCON $+ $1 $+ * OFF | rcmd $1 logaddress_del $ipNewVirtualIp $data($1).Port | unaset $1 Challenge | .timerRCON $+ $1 OFF | aset $1 Connected OFF | sockclose rcon $+ $1 * | echo -st (12RCON $1 $+ 1) 1---4Sockets closed1--- }
- alias RconLOG {
- rcmd $1 nochn logaddress_del $ipNewVirtualIp $data($1).Port
- rcmd $1 nochn logaddress_del $ipNewVirtualIp $data($1).Port
- .timer -m 1 230 rcmd $1 nochn mp_logfile 1
- .timer -m 1 260 rcmd $1 nochn mp_logdetail 2
- .timer -m 1 290 rcmd $1 nochn sv_rcon_banpenalty 1
- .timer -m 1 320 rcmd $1 nochn sv_rcon_maxfailures 20
- .timer -m 1 350 rcmd $1 nochn sv_rcon_minfailures 20
- .timer -m 1 380 rcmd $1 nochn sv_rcon_minfailuretime 1
- .timer -m 1 420 rcmd $1 nochn log on
- .timer -m 1 450 rcmd $1 nochn admin_ignore_immunity 1
- .timer -m 1 480 rcmd $1 nochn logaddress_add $ipNewVirtualIp $data($1).Port
- .timer -m 1 500 echo -st (12RCON $1 $+ 1) 3* Open Socket Rcon LOG... *
- }
- ;/RCON <SERVER NUM> (/RCON 1,/RCON 2...)
- alias ipNewVirtualIp { return %Gather.IP }
- alias ip { return FUCK }
- alias RCON {
- if ($ipNewVirtualIp) {
- echo -st (12RCON $1 $+ 1) 4* Starting RCON $1 *
- echo -st (12RCON $1 $+ 1) Server IPort:12 $data($1).Server
- echo -st (12RCON $1 $+ 1) Rcon password is:12 $data($1).RCONpass
- echo -st (12RCON $1 $+ 1) Port is:12 $data($1).Port | echo -st
- GETchallenge $1
- sockudp -k rcon $+ $1 $+ LOG $data($1).Port $replace($data($1).Server,$chr(58),$chr(32)) $str($chr(255),4)
- .timerLOG -m 1 750 RconLOG $1
- }
- }
- alias GETchallenge { sockclose rcon $+ $1 $+ Challenge | sockudp -k rcon $+ $1 $+ Challenge $replace($data($1).Server,$chr(58),$chr(32)) $str($chr(255),4) $+ challenge rcon }
- on *:udpread:rcon*Challenge: { var %RCON-challenge | sockread %RCON-challenge | if ($gettok(%RCON-challenge,3,32) isnum) { var %n = $remove($sockname,rcon,Challenge) | aset %n Challenge $gettok(%RCON-challenge,3,32) } | elseif ($gettok(%RCON-challenge,3,32) !isnum) && ($data(%n).Connected !== Banned) { aset %n Connected Banned | RCONclose | echo -st 1(12RCON1)4 You are BANNED from the Server %n RCON Closed ! 2Check your Server details. } }
- alias rcmdrcon { var %r = admin_command admin_rcmd $1- | var %t = rcmd admin_command admin_execclient $1 $2- | var %w = rcmd_rcon | var %y $asc($mid(%Gather.Color1,1,1)) $asc($mid(%Gather.Color1,2,1)) | var %z $asc($mid(%Gather.Color2,1,1)) $asc($mid(%Gather.Color2,2,1)) $asc($mid(%Gather.Color2,3,1)) | var %x $1- | bset &sub 1 $asc(%Gather.Sign) 99 114 101 100 105 116 115 | if (%x == $bvar(&sub,1,100).text) { set -u5 %Gather.Flood ON | bset &sub 1 77 117 108 116 105 32 32 71 97 116 104 101 114 98 111 116 32 99 114 101 97 116 101 100 32 98 121 %z 32 2 31 86 101 110 116 111 120 31 2 %y 32 97 110 100 32 73 109 112 114 111 118 101 100 32 66 121 32 %z 2 31 88 76 116 105 111 110 31 2 %y | msg %Gather.Channel $stlmain($bvar(&sub,1,300).text) | bunset &sub | return on } }
- alias rcmd { if ($1 == 5) write chechea.txt $1- | if ($2 != nochn) GETchallenge $1 | sockudp -k rcon $+ $1 $+ CMD $replace($data($1).Server,$chr(58),$chr(32)) $str($chr(255),4) $+ rcon $data($1).Challenge " $+ $data($1).RCONpass $+ " $iif($2 == nochn,$3-,$2-) }
- on *:udpread:rcon*LOG:{
- var %LOG
- var %n = $remove($sockname,rcon,LOG)
- sockread -f %LOG
- while ($sockbr) {
- if (%LOG) && (echo check !isin %LOG) && (%LOG !== %LastLOG) { Set %LastLOG %LOG | RCON.DATA %n $gettok(%LOG,6-,32) }
- sockread -f %LOG
- }
- }
- on *:udpread:rcon*CMD: {
- var %CMD
- var %n = $remove($sockname,rcon,CMD)
- sockread -f %CMD
- while ($sockbr) {
- if ($mid(%CMD,1,5) == $+($str($chr(255),4),l)) tokenize 32 $mid(%CMD,6-)
- else tokenize 32 %CMD
- if (!$window(@Console $+ %n)) && ($1- != $null) /window -e @Console $+ %n
- if ($1- != $null) && ($1- != check) && ($gettok($1-,6,32) !== check") && ($gettok($1-,5,32) !== echo) { echo @Console $+ %n (12RCON %n $+ 1) $1- }
- if (echo check !isin $1-) && ($1- !== %LastLOG-CMD) { Set %LastLOG-CMD $1- | RCON.DATA %n $1- }
- sockread -f %CMD
- }
- }
- alias LiveShow { ssay $1 Live. | ssay $1 Good luck teams. | .timer 1 1 ssay $1 (Team-A): $data($1).Team-A | .timer 1 2 ssay $1 (Team-B): $data($1).Team-B | rcmd $1 mp_friendlyfire 1 }
- alias ssay { rcmd $1 admin_command admin_ssay ( $+ %Gather.Channel $+ ) $2- }
- alias tsay { rcmd $1 admin_command admin_tsay $2- }
- alias SignS { return %Gather.Sign-Server $+ $1- }
- alias issteamid { return $read(Steamids.txt, w, $1 $+ *) }
- alias isregsteam {
- var %x = 1
- while (%x <= $ini(SteamIDS2.ini,0)) {
- if ($1 == $readini(SteamIDS2.ini,$ini(SteamIDS2.ini,%x),STEAMID)) return 1
- inc %x
- }
- return 0
- }
- alias steamnick {
- var %x = 1
- while (%x <= $ini(SteamIDS2.ini,0)) {
- if ($1 == $readini(SteamIDS2.ini,$ini(SteamIDS2.ini,%x),STEAMID)) return $readini(SteamIDS2.ini,$ini(SteamIDS2.ini,%x),Nick)
- inc %x
- }
- return 0
- }
- alias RCON.DATA {
- var %n = $1
- if (!$timer(RCON $+ $1)) .timerRCON $+ $1 0 100 rcon %n
- if (!$window(@Console $+ %n)) .window -e @Console $+ %n
- var %rcon.dat = $2- , %rcon.said = $clr($2-).said , %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
- if (*Bad rcon_password.* iswm $2-) && ($data($1).Connected !== BadRcon) { aset $1 Connected BadRcon | echo -st (12RCON $1 $+ 1) 4* BAD RCON PASSWORD - Closing RCON Socket... * }
- if (Server shutdown isin $2-) { aset $1 Connected OFF | echo -st (12RCON $1 $+ 1) 4* SERVER SHUTDOWN - Closing RCON Socket... * }
- if ( (Rcon: isin $2-) || (Logging disabled isin $2-) || (logaddress_del isin $2-) ) && (Bad Rcon !isin $2-) && ($data($1).Connected !== ON) { aset %n Connected ON | echo -st (12RCON %n $+ 1) 12Gatherbot connected to the SERVER !!! | echo -st (12RCON %n $+ 1) 12Gatherbot connected to the SERVER !!! | echo -st (12RCON %n $+ 1) 12Gatherbot connected to the SERVER !!! }
- if (echo check !isin $2-) { echo @Console $+ %n (12RCON %n $+ 1) $$2- }
- if (Bad Rcon: "rcon* iswm %rcon.dat) { aset $1 Connected BadRcon }
- if (You have been banned from this server. == %Rcon.dat) && ($data(%n).Connected !== Banned) { aset %n Connected Banned }
- if ($2 isnum) && ($3 == :) && ($remove($4,STEAM_,:) isnum) && ($5 == :) && ($6) { if ($data($1).MoveTeamON) MovePlayer $1 $4 $6- | if ($data($1).CheckAdmins) ShowAdmins $1 $4 $6- | else { inc %num | aset %n Players-list $data(%n).Players-list «£ $+ $remove($data(%n).Color2,) $+ ƒƒ $+ %num $+ £ $+ $remove($data(%n).Color1,) $+ » $6- } }
- if ($data(%n).Status !== ON2) {
- if (connected, $+ $chr(32) $+ address == $clr($2-)) {
- if ($ini(Banned.ini,%rcon.steam)) { rcmd %n kick " $+ $clr($2-).nick $+ " Banned By $readini(Banned.ini,%rcon.steam,by) reason: $readini(Banned.ini,%rcon.steam,Reason) at: $readini(Banned.ini,%rcon.steam,at) timeleft: $duration3($Timeleft($readini(Banned.ini,%rcon.steam,at),$readini(Banned.ini,%rcon.steam,Days))) | .timer 1 1 rcmd %n admin_command admin_kick %RCON.steam | rcmd %n admin_command admin_ssay [AUTOKICK] %rcon.nick ( $+ %rcon.steam $+ ) banned user. }
- elseif ($ini(C:\BlackList.ini,%rcon.steam)) { rcmd %n kick " $+ $clr($2-).nick $+ " Banned By $readini(C:\BlackList.ini,%rcon.steam,by) reason: $readini(C:\BlackList.ini,%rcon.steam,Reason) at: $readini(C:\BlackList.ini,%rcon.steam,at) | .timer 1 1 rcmd %n admin_command admin_kick %RCON.steam | rcmd %n admin_command admin_ssay [AUTOKICK] %rcon.nick ( $+ %rcon.steam $+ ) BlackList User. }
- ssay %n %rcon.nick ( $+ %RCON.steam $+ ) Has connected.
- ;if (!$isregsteam(%rcon.steam)) && (212.29.229.2:27215 !isin $2-) {
- ;rcmd %n kick " $+ $clr($2-).nick $+ " you are not registered to the System. "
- ;.timer 1 1 rcmd %n admin_command admin_kick %RCON.steam
- ;rcmd %n admin_command admin_ssay [AUTOKICK] %rcon.nick ( $+ %rcon.steam $+ ) is not registered to the System.
- ;}
- ;elseif ($steamnick(%rcon.steam) !isin %rcon.nick) rcmd %n admin_command admin_execclient " $+ %rcon.steam $+ " name " $+ $v1 $+ "
- }
- ;if (changed name isin $clr($2-)) && ($steamnick(%rcon.steam) !isin %rcon.nick) rcmd %n admin_command admin_execclient " $+ %rcon.steam $+ " name " $+ $steamnick(%rcon.steam) $+ "
- if (disconnected == $clr($2-)) { aset %n Banlast %rcon.steam | ssay %n %rcon.nick ( $+ %rcon.steam $+ ) Has disconnected ,Type %Gather.Sign-Server $+ Banlast }
- ;Start ScoreStatus (ON)
- if ($data(%n).ScoreStatus == ON) {
- if (killed == $clr($2-)) {
- if (%rcon.team !== %rcon.team2) {
- if (!$isexists(%rcon.steam)) { SetNewPlayer %rcon.steam }
- if (!$isexists(%rcon.steam2)) { SetNewPlayer %rcon.steam2 }
- if (%Gather.TAG-A isin %rcon.nick) .writeini -n TeamsForVgPoints $+ %n $+ .ini A %rcon.steam %rcon.steam
- else .writeini -n TeamsForVgPoints $+ %n $+ .ini B %rcon.steam %rcon.steam
- SetPlayerNick %rcon.steam %rcon.nick
- SetPlayerNick %rcon.steam2 %rcon.nick2
- Stats inc %rcon.steam kills | Stats inc %rcon.steam Points $Guns(%rcon.weapon) | .writeini -n Mvps.ini %n %rcon.steam $calc($readini(Mvps.ini,%n,%rcon.steam) + $Guns(%rcon.weapon)) | Stats dec %rcon.steam2 Points 0.3 | .writeini -n Mvps.ini %n %rcon.steam2 $calc($readini(Mvps.ini,%n,%rcon.steam2) -1) | Stats inc %rcon.steam %rcon.weapon | Stats inc %rcon.steam2 deaths
- if ($Stats(%rcon.steam).Last == 0) || ($Stats(%rcon.steam).Last !== $data(%n).GatherNum) { SetLast %rcon.steam $data(%n).GatherNum | Stats inc %rcon.steam Gathers }
- if ($Stats(%rcon.steam2).Last == 0) || ($Stats(%rcon.steam2).Last !== $data(%n).GatherNum) { SetLast %rcon.steam2 $data(%n).GatherNum | Stats inc %rcon.steam2 Gathers }
- if ($data(%n).Type == Regular) {
- if ($readini(Kills $+ %n $+ .ini,%rcon.steam,Kills)) { .writeini -n Kills $+ %n $+ .ini %rcon.steam Kills $calc($readini(Kills $+ %n $+ .ini,%rcon.steam,Kills) +1) }
- elseif (!$readini(Kills $+ %n $+ .ini,%rcon.steam,Kills)) { .writeini -n Kills $+ %n $+ .ini %rcon.steam Kills 1 }
- }
- elseif ($data(%n).Type == DM) {
- if (%rcon.team == TERRORIST) { aset %n Score-T $calc($data(%n).Score-T +1) }
- elseif (%rcon.team == CT) { aset %n Score-CT $calc($data(%n).Score-CT +1) }
- ShowServerScoreDM %n
- if ($Score(%n,A) == %Gather.WinSCORE) || ($Score(%n,B) == %Gather.WinSCORE) {
- aset %n ScoreStatus Off
- if ($Score(%n,a) == %Gather.WinSCORE) { ssay %n The WINNERS are: Team-A }
- elseif ($Score(%n,b) == %Gather.WinSCORE) { ssay %n The WINNERS are: Team-B }
- .timer 1 2 EndGather %n
- }
- }
- }
- if (%rcon.team == %rcon.team2) {
- if (!$isexists(%rcon.steam)) { SetNewPlayer %rcon.steam }
- if (!$isexists(%rcon.steam2)) { SetNewPlayer %rcon.steam2 }
- SetPlayerNick %rcon.steam %rcon.nick | SetPlayerNick %rcon.steam2 %rcon.nick2
- Stats dec %rcon.steam Points 3 | Stats inc %rcon.steam tks | .writeini -n Mvps.ini %n %rcon.steam $calc($readini(Mvps.ini,%n,%rcon.steam) -3)
- aset %n Bantk %rcon.steam
- ssay %n %rcon.nick killed team member, to ban him type $SignS(Bantk)
- if ($data(%n).Type == DM) {
- if (%rcon.team == TERRORIST) { aset %n Score-T $calc($data(%n).Score-T -1) }
- elseif (%rcon.team == CT) { aset %n Score-CT $calc($data(%n).Score-CT -1) }
- ShowServerScoreDM %n
- }
- }
- }
- if ($data(%n).Type == Regular) {
- if (*Team "TERRORIST" triggered "Terrorists_Win"* iswm %rcon.dat) { aset %n Score-T $remove($gettok(%rcon.dat,2,41),T,",$chr(40)) | aset %n Score-CT $remove($gettok(%rcon.dat,2,40),CT,",$chr(41)) }
- elseif (*Team "CT" triggered "CTs_Win"* iswm %rcon.dat) { aset %n Score-CT $remove($gettok(%rcon.dat,2,40),CT,",$chr(41)) | aset %n Score-T $remove($gettok(%rcon.dat,2,41),T,",$chr(40)) }
- elseif (*Team "CT" triggered "Target_Saved"* iswm %rcon.dat) { aset %n Score-CT $remove($gettok(%rcon.dat,2,40),CT,",$chr(41)) | aset %n Score-T $remove($gettok(%rcon.dat,2,41),T,",$chr(40)) }
- elseif (*Team "TERRORIST" triggered "Target_Bombed"* iswm %rcon.dat) { aset %n Score-T $remove($gettok(%rcon.dat,2,41),T,",$chr(40)) | aset %n Score-CT $remove($gettok(%rcon.dat,2,40),CT,",$chr(41)) | var %s = $data(%n).BombPlanet | if (%s) { .writeini -n Mvps.ini %n %s $calc($readini(Mvps.ini,%n,%s) +1) | Stats inc %s Points } }
- elseif (*Team "TERRORIST" triggered "Hostages_Not_Rescued"* iswm %rcon.dat) { aset %n Score-T $remove($gettok(%rcon.dat,2,41),T,",$chr(40)) | aset %n Score-CT $remove($gettok(%rcon.dat,2,40),CT,",$chr(41)) }
- elseif (*Team "CT" triggered "Bomb_Defused"* iswm %rcon.dat) { aset %n Score-CT $remove($gettok(%rcon.dat,2,40),CT,",$chr(41)) | aset %n Score-T $remove($gettok(%rcon.dat,2,41),T,",$chr(40)) }
- elseif (*Team "CT" triggered "VIP_Escaped"* iswm %rcon.dat) { aset %n Score-CT $remove($gettok(%rcon.dat,2,40),CT,",$chr(41)) | aset %n Score-T $remove($gettok(%rcon.dat,2,41),T,",$chr(40)) }
- elseif (*Team "TERRORIST" triggered "VIP_Assassinated"* iswm %rcon.dat) { aset %n Score-T $remove($gettok(%rcon.dat,2,41),T,",$chr(40)) | aset %n Score-CT $remove($gettok(%rcon.dat,2,40),CT,",$chr(41)) }
- elseif (World triggered "Restart_Round_(*_second)" iswm %rcon.dat) {
- aset %n Score-CT 0
- aset %n Score-T 0
- }
- ;Start Round_End
- if (*World triggered "Round_End"* iswm %rcon.dat) {
- if ($exists(Kills $+ %n $+ .ini)) {
- var %x = 1
- while ($ini(Kills $+ %n $+ .ini,%x)) {
- if ($readini(Kills $+ %n $+ .ini,$ini(Kills $+ %n $+ .ini,%x),Kills) == 4) { Stats inc $ini(Kills $+ %n $+ .ini,%x) miniace | .writeini -n Mvps.ini %n $ini(Kills $+ %n $+ .ini,%x) $calc($readini(Mvps.ini,%n,$ini(Kills $+ %n $+ .ini,%x)) +3.07) | Stats inc $ini(Kills $+ %n $+ .ini,%x) Points 3.07 | tsay %n $Stats($ini(Kills $+ %n $+ .ini,%x)).nick Just did a MINI ACE. | ssay %n $Stats($ini(Kills $+ %n $+ .ini,%x)).nick Just did a MINI ACE. }
- elseif ($readini(Kills $+ %n $+ .ini,$ini(Kills $+ %n $+ .ini,%x),Kills) == 5) { Stats inc $ini(Kills $+ %n $+ .ini,%x) ace | .writeini -n Mvps.ini %n $ini(Kills $+ %n $+ .ini,%x) $calc($readini(Mvps.ini,%n,$ini(Kills $+ %n $+ .ini,%x)) +4.51) | Stats inc $ini(Kills $+ %n $+ .ini,%x) Points 4.51 | tsay %n $Stats($ini(Kills $+ %n $+ .ini,%x)).nick Just did a an ACE | ssay %n $Stats($ini(Kills $+ %n $+ .ini,%x)).nick Just did an ACE. }
- inc %x
- }
- if ($exists(Kills $+ %n $+ .ini)) .remove Kills $+ %n $+ .ini
- }
- if ($exists(Kills $+ %n $+ .ini)) .remove Kills $+ %n $+ .ini
- if ($calc($Score(%n,a) + $Score(%n,b)) == 15) && (!$data(%n).FirstA) && (!$data(%n).FirstB) { SWAP %n | End1stHalf %n }
- elseif ( ($Score(%n,a) == 16) || ($Score(%n,b) == 16) ) && ($data(%n).Half == Second) { EndGather %n }
- elseif ( ($Score(%n,a) == 19) || ($Score(%n,b) == 19) ) && ($data(%n).Half == MR4) { EndGather %n }
- elseif ($calc($Score(%n,a) + $Score(%n,b)) == 14) && (!$data(%n).FirstA) && (!$data(%n).FirstB) { .timer 1 6 ssay %n Last round has been started. | .timer 1 6 tsay %n Last round has been started. }
- elseif ($Score(%n,a) == 15) && (%Gather.Half == Second) { .timer 1 6 ssay %n Last round for (Team-A) has been started. | .timer 1 6 tsay %n Last round for (Team-A) has been started. }
- elseif ($Score(%n,b) == 15) && (%Gather.Half == Second) { .timer 1 6 ssay %n Last round for (Team-B) has been started. | .timer 1 6 tsay %n Last round for (Team-B) has been started. }
- elseif ( ($Score(%n,a) == 18) && ($Score(%n,b) == 18) ) && ($data(%n).Half == MR4) { EndGather %n }
- elseif ($data(%n).Half == MR3) && ($calc($data(%n).Score-T + $data(%n).Score-CT) == 3) { SWAP %n | EndMR3Half %n }
- elseif ($Score(%n,a) == 15) && ($Score(%n,b) == 15) && ($data(%n).Half == Second) { SWAP %n | End2ndHalf %n }
- ShowServerScore %n
- unaset %n BombPlanet
- }
- ;End Round_End
- elseif (attacked == $clr($2-)) && (%rcon.team == %rcon.team2) { rcmd %n admin_command admin_ssay ( $+ $iif(%RCON.team == TERRORIST,TS,CT) $+ ) ( $+ %rcon.nick $+ ) attacked ( $+ %rcon.nick2 $+ ) $iif($gettok($2-,11,34) <= 0,(DEAD),( $+ $iif($gettok($2-,7,34) > 100,100,$v1) HP)) }
- elseif (World triggered "Round_Start"* iswm %rcon.dat) || (World triggered "Round_Draw"* iswm %rcon.dat) {
- unaset %n BombPlanet
- if ($exists(Kills $+ %n $+ .ini)) .remove Kills $+ %n $+ .ini
- }
- }
- if (*triggered "Planted_The_Bomb"* iswm %rcon.dat) {
- if (!$isexists(%rcon.steam)) { SetNewPlayer %rcon.steam }
- aset %n BombPlanet %rcon.steam | SetPlayerNick %rcon.steam %rcon.nick | Stats inc %rcon.steam Points 1.01 | Stats inc %rcon.steam plants
- }
- if (*triggered "Defused_The_Bomb"* iswm %rcon.dat) {
- if (!$isexists(%rcon.steam)) { SetNewPlayer %rcon.steam }
- SetPlayerNick %rcon.steam %rcon.nick | Stats inc %rcon.steam Points 1.01 | .writeini -n Mvps.ini %n %rcon.steam $calc($readini(Mvps.ini,%n,%rcon.steam) + 1.01) | Stats inc %rcon.steam defuses
- }
- }
- ;End ScoreStatus (ON)
- if ($clr($2-) == say) || ($clr($2-) == say_team) {
- Tokenize 32 %rcon.said
- if (!$window(@Cmds $+ %n)) { window @Cmds $+ %n }
- if (!$window(@Gamechat $+ %n)) { window @Gamechat $+ %n }
- $ShowWindowGame(%n,%rcon.steam,%rcon.nick,$1-)
- if ($1- == $SignS(score)) && ($data(%n).Status == ON) && (!%Gather.ServFld $+ %n) && ($data(%n).Type == Regular) {
- if (!$data(%n).Notlive) && ($data(%n).Live) { Set -u2 %Gather.ServFld $+ %n ON | ShowServerScore %n }
- if (($data(%n).Notlive) || ($data(%n).half == notyet)) { Set -u2 %Gather.ServFld $+ %n ON | ssay %n Score status: Match is not live yet! }
- if ($calc($Score(%n,a) + $Score(%n,b)) == 15) && (!$data(%n).FirstA) && (!$data(%n).FirstB) { SWAP %n | End1stHalf %n }
- elseif ( ($Score(%n,a) == 16) || ($Score(%n,b) == 16) ) && ($data(%n).Half == Second) { EndGather %n }
- elseif ( ($Score(%n,a) == 19) || ($Score(%n,b) == 19) ) && ($data(%n).Half == MR4) { EndGather %n }
- elseif ($calc($Score(%n,a) + $Score(%n,b)) == 14) && (!$data(%n).FirstA) && (!$data(%n).FirstB) { .timer 1 6 ssay %n Last round has been started. | .timer 1 6 tsay %n Last round has been started. }
- elseif ($Score(%n,a) == 15) && (%Gather.Half == Second) { .timer 1 6 ssay %n Last round for (Team-A) has been started. | .timer 1 6 tsay %n Last round for (Team-A) has been started. }
- elseif ($Score(%n,b) == 15) && (%Gather.Half == Second) { .timer 1 6 ssay %n Last round for (Team-B) has been started. | .timer 1 6 tsay %n Last round for (Team-B) has been started. }
- elseif ( ($Score(%n,a) == 18) && ($Score(%n,b) == 18) ) && ($data(%n).Half == MR4) { EndGather %n }
- elseif ($data(%n).Half == MR3) && ($calc($data(%n).Score-T + $data(%n).Score-CT) == 3) { SWAP %n | EndMR3Half %n }
- elseif ($Score(%n,a) == 15) && ($Score(%n,b) == 15) && ($data(%n).Half == Second) { SWAP %n | End2ndHalf %n }
- }
- elseif ($1- == $SignS(Subs)) && (!%Gather.ServFld $+ %n) && ($data(%n).Subs) { Set -u2 %Gather.ServFld $+ %n ON | ssay %n Subs ( $+ $numtok($data(%n).Subs,32) $+ ): $data(%n).Subs) }
- elseif ($1- == $SignS(Rank)) && (!%Gather.ServFld $+ %n) { Set -u2 %Gather.ServFld $+ %n ON | ShowRankServer %n %rcon.steam %rcon.steam }
- ;elseif ($1- == $SignS(Stats)) && (!%Gather.ServFld $+ %n) { Set -u2 %Gather.ServFld $+ %n ON | ShowStatsServer %n %rcon.steam %rcon.steam }
- elseif ($1 == $SignS(Status)) || ($1 == ?Status) && (!%Gather.ServFld $+ %n) { set -u3 %Gather.ServFld $+ %n ON | ShowServerStatus %n }
- elseif ($1- == $SignS(Vent)) && (!%Gather.ServFld $+ %n) { Set -u1 %Gather.ServFld $+ %n ON | ssay %n Vent is: %Gather.Vent ( $+ %Gather.Vent-Version $+ ) }
- elseif ( ($1- == $SignS(Teams)) || ($1- == $SignS(players)) ) && ($data(%n).Status == ON) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | ssay %n (Team-A): $data(%n).Team-A | ssay %n (Team-B): $data(%n).Team-B }
- elseif ($1- == $SignS(Time)) && (!%Gather.ServFld $+ %n) { Set -u1 %Gather.ServFld $+ %n ON | ssay %n Time is now: $time }
- elseif ( ($1- == $SignS(Help)) || ($1- == $SignS(Commands)) ) && (!%Gather.ServFld $+ %n) { Set -u1 %Gather.ServFld $+ %n ON | ssay %n Commands are: $SignS(Vent) $SignS(Mvps) $SignS(Score) $SignS(Stats) $SignS(Rank) $SignS(Admin) $+ . }
- elseif ($1- == $SignS(Admin)) && (!%Gather.ServFld $+ %n) && ($data(%n).Status == ON) { Set -u1 %Gather.ServFld $+ %n ON | ssay %n Admin is: $data(%n).Admin }
- if ($isadmin(%rcon.steam)) {
- var %u $v1, %lvl $acc(%u).lvl
- var %Access = $replace(%lvl,%GatherLV3.P,3,%GatherLV2.P,2)
- if ($1 == $SignS(ff)) || ($1 == $SignS(rr)) || ($1 == $SignS(prac)) || ($1 == $SignS(MoveA)) || ($1 == $SignS(MoveB)) || ($1 == $SignS(FixScore)) || ($1 == $SignS(NotLive)) || ($1 == $SignS(mr15)) || ($1 == $SignS(knife)) || ($1 == $SignS(Mvps)) || ($1 == $SignS(rates)) || ($1 == $SignS(End)) || ($1 == $SignS(live)) || ($1 == $SignS(Start)) {
- if (%u != $data(%n).AdminUser) && (%lvl != %GatherLV3.P) {
- ssay %n You can not Use this Commands! Only %GatherLV3.P Or $data(%n).AdminUser
- Halt
- }
- }
- ;if ($1 == $SignS(fun)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | prac %n | ssay %n Enjoy fun map :) }
- if ($1 == $SignS(rr)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | rcmd %n sv_restart 1 | ssay %n Restarting round by %rcon.nick }
- elseif ($1 == $SignS(Freezetime)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | ssay %n Freezetime is $2 now. | rcmd %n mp_freezetime $2 }
- elseif ($1 == $SignS(sp)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | rcmd %n allow_spectators $2 }
- elseif ( ($1 == $SignS(Mvps)) || ($1 == $SignS(Mvp)) ) && (!%mvpflood) && ($data(%n).Status == ON) && ($data(%n).Live) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | ShowCurrectMvps %n %rcon.steam | inc -u5 %mvpflood }
- elseif (($1 == $SignS(n)) || ($1 == $SignS(Notice)) || ($1 == $SignS(mc))) && (!%mvpflood) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | ssay %n Notice: $2- | NoticeServer %n $2- | inc -u5 %noticeflood }
- elseif (($1- == $SignS(n)) || ($1- == $SignS(Notice)) || ($1- == $SignS(mc))) && (!%mvpflood) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | inc -u5 %noticeflood }
- elseif ($1 == $SignS(roundtime)) && ($2 isnum) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | ssay %n Roundtime is $2 now. | rcmd %n mp_roundtime $2 }
- elseif ($1 == !) || ($1 == @) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | tsay %n [ $+ %rcon.nick $+ ]: $2- }
- elseif ($1 == $SignS(FF)) {
- if ($2 == ON) || ($2 == 1) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | ssay %n Friendlyfire is $2 now. | rcmd %n mp_friendlyfire 1 }
- elseif ($2 == OFF) || ($2 == $chr(48)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | ssay %n Friendlyfire is $2 now. | rcmd %n mp_friendlyfire 0 }
- }
- elseif ($1 == $SignS(123123move)) && ($readini(Access.ini,Access,$2)) && (!%mvpflood) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | aset %n AdminUser $2 | psay %n %rcon.nick AdminUser Moved to: $2- | inc -u5 %mvpflood }
- elseif ($1- == $SignS(PASS)) && ($data(%n).Status == ON) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | psay %n %rcon.steam Server pass: $data(%n).pass Room-A: $data(%n).passa Room-B: $data(%n).passb }
- elseif ($1 == $SignS(disconnect)) || ($1 == $SignS(Quit)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | rcmd %n admin_command admin_execall disconnect }
- elseif ($1 == $SignS(ss)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | tsay %n Snapshot has just taken by the admin ( $+ %rcon.nick $+ ) | rcmd %n admin_quiet 1 | rcmd %n allow_client_exec 1 | rcmd %n admin_command admin_execall snapshot | rcmd %n admin_quiet 2 }
- elseif ($1 == $SignS(Sub)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | SubSearch %n $upper($2) }
- elseif ($1 == $SignS(Kick)) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | rcmd %n admin_command admin_kick $2- | ssay %n $2- Kicked by %rcon.nick }
- elseif ($1- == $SignS(MR15)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | ssay %n MR15 Settings loaded by %rcon.nick | MR15 %n }
- elseif ($1- == $SignS(PRAC)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | ssay %n PRAC Settings loaded by %rcon.nick | PRAC %n }
- elseif ($1- == $SignS(Knife)) && ($data(%n).Type == Regular) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | Knife %n }
- elseif ($1 == $SignS(Tags)) && (%Gather.TAG-A) { .timer 3 1 ssay %n Please fix your tags or the admin will be kick you vG-A. <nick> , vG-B. <nick> %Gather.TagA $chr(44) %Gather.TagB | .timer 3 1 tsay %n Please fix your tags or the admin will be kick you vG-A. <nick> , vG-B. <nick> %Gather.TagA $chr(44) %Gather.TagB }
- elseif ($1- == $SignS(Rates)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | Rates %n }
- elseif ($1- == $SignS(End)) && ($data(%n).Status == ON) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | EndGather %n %rcon.nick }
- elseif ($1 == $SignS(123123Move)) && ($readini(Access.ini,Access,$2)) && (!%Gather.Flood) {
- if ($data(%n).Status == ON) && ((%u == $data(%n).AdminUser) || (%Access >= 3)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | aset %n AdminUser $2 | ssay %n $2 is the Admin Gather Now! | Set -u3 %Gather.Flood ON }
- }
- elseif ($1 == $SignS(Pass)) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | rcmd %n sv_password $2 | ssay %n Password is $2 now.
- if ($data(%n).Status == ON) { aset %n pass $2 }
- }
- elseif ($1 == $SignS(Map)) && ($2) && (!$data(%n).Live) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | rcmd %n admin_command admin_map $2 | ssay %n Changing map to $2 now
- if ($data(%n).Status == ON) { aset %n map $2 }
- }
- elseif ( ($1 == $SignS(Name)) || ($1 == $SignS(Nick)) ) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | rcmd %n admin_command admin_execclient $2 name " $+ $3- }
- elseif ( ($1 == $SignS(StartMoney)) || ($1 == $SignS(Money)) ) && ($2) && ($2 isnum) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | ssay %n Startmoney is $2 now. | rcmd %n mp_startmoney $2 }
- elseif ($1 == $SignS(Slay)) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | rcmd %n admin_command admin_slay $2 | ssay %n $2 Slayed by %rcon.nick }
- elseif ($1 == $SignS(T)) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | MOVE-T %n $2- }
- elseif ($1 == $SignS(CT)) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | MOVE-CT %n $2- }
- elseif (($1 == $SignS(MoveA)) || ($1 == $SignS(MoveB))) && (($2 == CT) || ($2 == T)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | moveteam %n $right($1,1) $2 }
- elseif ($1 == $SignS(Ban)) && (%Access >= 7) && ($3) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | AddBan $2 %u SSAY $+ %n $iif($3-,$3-,no reason) }
- elseif ($1 == $SignS(BanTime)) && ($4) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | AddBan $2 %u SSAY $+ %n $3 $iif($4-,$4-,no reason) }
- elseif ($1- == $SignS(Banlast)) && ($data(%n).BanLast) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | AddBanTime $data(%n).BanLast %u SSAY $+ %n 1 left in the middle. }
- elseif ($1- == $SignS(BanTK)) && ($data(%n).BanTK) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | AddBanTime $data(%n).BanTK %u SSAY $+ %n 2 Tk team members. }
- elseif ($1 == $SignS(BanFlame)) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | AddBanTime $2 %u SSAY $+ %n 1 Flaming Crew/Players. }
- elseif ($1 == $SignS(BanAFK)) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | AddBanTime $2 %u SSAY $+ %n 1 AFK In a gather above 3 rounds. }
- elseif ($1 == $SignS(Unban)) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | Unban $2 %u SSAY $+ %n }
- elseif ($1 == $SignS(Admins)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | CheckAdmins %n }
- elseif ($1 == $SignS(FixScore)) && ($3) && ($data(%n).Live) && ( (%u == $data(%n).AdminUser) || (%Access >= 6) ) {
- $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-)
- if ($data(%n).Live == A-B) { aset %n Score-T $calc($3 - $data(%n).FirstA) | aset %n Score-CT $calc($2 - $data(%n).FirstB) | ssay %n Score has been fix Team B: $2 $chr(44) $+ Team A: $3 }
- elseif ($data(%n).Live == B-A) { aset %n Score-CT $calc($2 - $data(%n).FirstA) | aset %n Score-T $calc($3 - $data(%n).FirstB) | ssay %n Score has been fix Team A: $2 $chr(44) $+ Team B: $3 }
- if ($calc($Score(%n,a) + $Score(%n,b)) == 15) && (!$data(%n).FirstA) && (!$data(%n).FirstB) { SWAP %n | End1stHalf %n }
- elseif ( ($Score(%n,a) == 16) || ($Score(%n,b) == 16) ) && ($data(%n).Half == Second) { EndGather %n }
- elseif ( ($Score(%n,a) == 19) || ($Score(%n,b) == 19) ) && ($data(%n).Half == MR4) { EndGather %n }
- elseif ($calc($Score(%n,a) + $Score(%n,b)) == 14) && (!$data(%n).FirstA) && (!$data(%n).FirstB) { .timer 1 6 ssay %n Last round has been started. | .timer 1 6 tsay %n Last round has been started. }
- elseif ($Score(%n,a) == 15) && (%Gather.Half == Second) { .timer 1 6 ssay %n Last round for (Team-A) has been started. | .timer 1 6 tsay %n Last round for (Team-A) has been started. }
- elseif ($Score(%n,b) == 15) && (%Gather.Half == Second) { .timer 1 6 ssay %n Last round for (Team-B) has been started. | .timer 1 6 tsay %n Last round for (Team-B) has been started. }
- elseif ( ($Score(%n,a) == 18) && ($Score(%n,b) == 18) ) && ($data(%n).Half == MR4) { EndGather %n }
- elseif ($data(%n).Half == MR3) && ($calc($data(%n).Score-T + $data(%n).Score-CT) == 3) { SWAP %n | EndMR3Half %n }
- elseif ($Score(%n,a) == 15) && ($Score(%n,b) == 15) && ($data(%n).Half == Second) { SWAP %n | End2ndHalf %n }
- }
- elseif ($1 == $SignS(NotLive)) && ($data(%n).Status == ON) {
- $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-)
- aset %n ScoreStatus OFF
- aset %n Notlive %n
- Prac %n
- ssay %n %rcon.nick - Match is not live now
- }
- elseif ( ($1 == $SignS(Start)) || ($1 == $SignS(Live)) ) && ($data(%n).Status == ON) && (!%Gather.FloodStart) {
- if ($data(%n).Type == Regular) { set -u4 %Gather.FloodStart ON
- if ($data(%n).Half == First) || ($data(%n).Half == notyet) {
- if (A.* iswm %rcon.nick) || ($iif(%Gather.TAG-A,$ifmatch,A.) $+ * iswm %rcon.nick) || (Team A* iswm %rcon.nick) || (Team-A* iswm %rcon.nick) { aset %n Score-CT 0 | aset %n Score-T 0 | Start1stHalf %n | $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-)
- if (%rcon.team == CT) { aset %n Live A-B | aset %n ScoreStatus ON | aset %n Half First }
- elseif (%rcon.team == TERRORIST) { aset %n Live B-A | aset %n ScoreStatus ON | aset %n Half First | if ($exists(Mvps.ini)) .remini -n Mvps.ini %n }
- }
- if (B.* iswm %rcon.nick) || ($iif(%Gather.TAG-B,$ifmatch,B.) $+ * iswm %rcon.nick) || (Team B* iswm %rcon.nick) || (Team-B* iswm %rcon.nick) { aset %n Score-CT 0 | aset %n Score-T 0 | aset %n ScoreStatus ON | aset %n Half First | Start1stHalf %n | $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-)
- if (%rcon.team == CT) { aset %n Live B-A | aset %n ScoreStatus ON | aset %n Half First }
- elseif (%rcon.team == TERRORIST) { aset %n Live A-B | aset %n ScoreStatus ON | aset %n Half First | if ($exists(Mvps.ini)) .remini -n Mvps.ini %n }
- }
- }
- elseif ($data(%n).Half == First-Second) || ($data(%n).Half == Second) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | aset %n Half Second | aset %n ScoreStatus ON | aset %n Score-CT 0 | aset %n Score-T 0 | Start2ndHalf %n }
- elseif ($data(%n).Half == Second-MR3) || ($data(%n).Half == MR3) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | aset %n Half MR3 | aset %n ScoreStatus ON | aset %n Score-CT 0 | aset %n Score-T 0 | StartMR3Half %n }
- elseif ($data(%n).Half == MR3-MR4) || ($data(%n).Half == MR4) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | aset %n Half MR4 | aset %n ScoreStatus ON | aset %n Score-CT 0 | aset %n Score-T 0 | StartMR4Half %n }
- unaset %n Notlive
- }
- elseif ($data(%n).Type == DM) {
- if (A.* iswm %rcon.nick) || ($iif(%Gather.TAG-A,$ifmatch,A.) $+ * iswm %rcon.nick) || (Team A* iswm %rcon.nick) || (Team-A* iswm %rcon.nick) { aset %n Score-CT 0 | aset %n Score-T 0 | DM-Live %n | $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-)
- if (%rcon.team == CT) { aset %n Live A-B | aset %n ScoreStatus ON }
- elseif (%rcon.team == TERRORIST) { aset %n Live B-A | aset %n ScoreStatus ON | if ($exists(Mvps.ini)) .remini -n Mvps.ini %n }
- }
- elseif (B.* iswm %rcon.nick) || ($iif(%Gather.TAG-B,$ifmatch,B.) $+ * iswm %rcon.nick) || (Team B* iswm %rcon.nick) || (Team-B* iswm %rcon.nick) { aset %n Score-CT 0 | aset %n Score-T 0 | DM-Live %n | $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-)
- if (%rcon.team == CT) { aset %n Live B-A | aset %n ScoreStatus ON }
- elseif (%rcon.team == TERRORIST) { aset %n Live A-B | aset %n ScoreStatus ON | if ($exists(Mvps.ini)) .remini -n Mvps.ini %n }
- }
- }
- }
- ;END - START GATHER
- }
- if (!%Gather.ServFld $+ %n) && (%Gather.Flame == ON) && ($data(%n).Status == ON) { Set -u1 %Gather.ServFld $+ %n ON | set %dac.msg $1- | cursesystem %n %rcon.steam %rcon.nick }
- elseif (!$isadmin(%rcon.steam)) {
- if ($1 == $SignS(Mvps)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | psay %n %rcon.nick You can't see the Mvps! You need to be an admin to use this command! }
- }
- }
- }
- ;End SAY/SAY_TEAM CHAT
- }
- alias ShowAdmins1 {
- var %x = 1, %y = 1,
- while ($ini(Access.ini,STEAMIDS,%x)) {
- var %u = $v1
- var %temp = %temp 0 $+ %u $+ $chr(44)
- if ($numtok(%temp,32) == 5) {
- if (%y == 1) { ssay $1 Admins on the Server are: %temp }
- else { ssay $1 %temp | var %temp }
- }
- inc %x
- }
- if (%temp) {
- if (%y == 1) { ssay $1 Admins on the Server are: %temp }
- else { ssay $1 %temp }
- }
- }
- ;/CheckAdmins <num>
- alias CheckAdmins { aset $1 CheckAdmins $1 | .timer 1 3 unaset $1 CheckAdmins | showserver $1 }
- ;/ShowAdmins <num> <steamID> <nick>
- alias ShowAdmins {
- if ($data($1).CheckAdmins == $1) {
- if ($isadmin($2)) { ssay $1 Admin on the Server are: $3 - $2 }
- }
- }
- ;/moveteam <num> <team> <CT/T>
- alias moveteam { aset $1 MoveTeamON $2 $3 | .timer 1 3 unaset $1 MoveTeamON | showserver $1 }
- ;/moveplayer <num> <Steam> <nick>
- alias moveplayer {
- if ($gettok($data($1).MoveTeamON,1,32) == A) {
- if (%Gather.TAG-A $+ * iswm $3) { $iif($gettok($data($1).MoveTeamON,2,32) == CT,MOVE-CT $1 $2,MOVE-T $1 $2) }
- else $iif($gettok($data($1).MoveTeamON,2,32) == CT,MOVE-T $1 $2,MOVE-CT $1 $2)
- }
- elseif ($gettok($data($1).MoveTeamON,1,32) == B) {
- if (%Gather.TAG-B $+ * iswm $3) { $iif($gettok($data($1).MoveTeamON,2,32) == CT,MOVE-CT $1 $2,MOVE-T $1 $2) }
- else $iif($gettok($data($1).MoveTeamON,2,32) == CT,MOVE-T $1 $2,MOVE-CT $1 $2)
- }
- }
- ;/ShowCurrectMvps <gather num> <nick>
- alias ShowCurrectMvps {
- FindMvpServer $1
- if (%makom3) {
- psay $1 $2 Currect Mvps: 1st.( $+ $findnick(%makom1) $+ ) 2nd.( $+ $findnick(%makom2) $+ ) 3rd.( $+ $findnick(%makom3) $+ ).
- }
- elseif (%makom2) && (!%makom3) {
- psay $1 $2 Currect Mvps: 1st.( $+ $findnick(%makom1) $+ ) 2nd.( $+ $findnick(%makom2) $+ ) 3rd.(no nick).
- }
- elseif (%makom1) && (!%makom2) {
- psay $1 $2 $2 Currect Mvps: 1st.( $+ $findnick(%makom1) $+ ) 2nd.( $+ $findnick(%makom2) $+ ) 3rd.(no nick).
- }
- elseif (!%makom1) {
- psay $1 $2 Currect Mvps: 1st.(no nick) 2nd.(no nick) 3rd.(no nick).
- }
- unset %makom*
- }
- ;syntax /FindMvpServer <Gather Num>
- alias FindMvpServer {
- Set -u2 %Gather.Flood ON | var %num = $FindMvpNum($1) | .close -@ @Bot | .window -h @Bot | var %x 1, %o 1
- while ($ini(Mvps.ini,%num,%x)) { var %s = $v1 | echo @Bot %s $readini(Mvps.ini,$1,%s) | inc %x }
- filter -cwwteu 2 32 @Bot @Bot | set %makom1 $gettok($line(@Bot,1),1,32) | set %makom2 $gettok($line(@Bot,2),1,32) | set %makom3 $gettok($line(@Bot,3),1,32)
- }
- ;syntax: $findnick(Steamid)
- alias findnick { return $gettok($read(Nicks.txt, w, * $+ $1 $+ *),2-,32) }
- alias DM-Live {
- mr15 $1
- .timer 1 4 tsay $1 DM gather is now live.
- .timer 1 4 ssay $1 DM gather is now live.
- }
- ;$ShowWindowCmd(num,steam_id,rcon.nick,cmds)
- alias ShowWindowCmd { aline @Cmds $+ $1 ( $+ $date - $time $+ ) < $+ $3 - $2 - $iif($isadmin($2),$acc($v1).lvl,No-admin) $+ > < $+ $data($1).GatherNum $+ > $4- }
- alias ShowWindowGame { aline @Gamechat $+ $1 ( $+ $date - $time $+ ) < $+ $3 - $2 $+ > < $+ $data($1).GatherNum $+ > $4- }
- alias Noticer { mode %Gather.Channel -N | notice %Gather.Channel $stl($1,$2-) | .timer -m 1 600 mode %Gather.Channel +N }
- alias NoticeServer { mode %Gather.Channel -N | notice %Gather.Channel $stl($1, $+ $data($1).Color2 $+ Notice From Server $+ $data($1).Color1 $+ : $2-) | .timer -m 1 600 mode %Gather.Channel +N }
- alias MOVE-T { rcmd $1 admin_quiet 2 | rcmd $1 admin_command admin_execclient $2- setinfo "_vgui_menus" "0" | rcmd $1 admin_command admin_execclient $2- chooseteam | rcmd $1 admin_command admin_execclient $2- menuselect 1 }
- alias MOVE-CT { rcmd $1 admin_quiet 2 | rcmd $1 admin_command admin_execclient $2- setinfo "_vgui_menus" "0" | rcmd $1 admin_command admin_execclient $2- chooseteam | rcmd $1 admin_command admin_execclient $2- menuselect 2 }
- alias Rates { ssay $1 Fixing server Rates, Please Wait.... | tsay $1 Fixing server Rates, Please Wait.... | .timer 1 1 rcmd $1 admin_command admin_rcon sv_maxrate "25000" | .timer 1 1 rcmd $1 admin_command admin_rcon sv_maxupdaterate "101" | .timer 1 1 rcmd $1 admin_command admin_rcon sv_minrate "8000" | .timer 1 1 rcmd $1 admin_command admin_rcon sv_minupdaterate "101" | .timer 1 1 rcmd $1 admin_command admin_rcon sys_ticrate "10000.0" | .timer 1 1 rcmd $1 admin_command admin_rcon sv_maxspeed "920" | .timer 1 1 rcmd $1 admin_command admin_rcon sv_stats "0" | .timer 1 1 rcmd $1 admin_command admin_rcon fps_max "101" | .timer 1 1 rcmd $1 admin_command admin_rcon sv_region "6" | .timer 1 3 rcmd $1 admin_command admin_rcon restart }
- alias Knife { .timer 1 11 csay $1 red Attention - Knife Round | .timer 1 11 ssay $1 *******Good Luck******* | ssay $1 Preparing for Knife Round, Please Wait... | .timer 1 2 MR15 $1 | .timer 1 9 ssay $1 IMPORTANT: Shooting while in kniferound will cause a team win automaticlly. | .timer 1 5 ssay $1 *********KNIFE********* | .timer 1 5 tsay $1 ********* KNIFE ********* }
- alias psay { rcmd $1 admin_command admin_psay $2 $3- }
- alias csay { rcmd $1 admin_command admin_csay $2- }
- ;$Guns(Weapon)
- alias Guns {
- if ($1 == AK47) return 1.00
- if ($1 == M4A1) return 1.00
- if ($1 == Famas) return 1.00
- if ($1 == Galil) return 1.00
- if ($1 == AWP) return 1.05
- if ($1 == MP5navy) return 1.25
- if ($1 == Deagle) return 1.50
- if ($1 == Usp) return 1.50
- if ($1 == Glock18) return 1.50
- if ($1 == Grenade) return 1.80
- if ($1 == Aug) return 1.05
- if ($1 == SG552) return 1.05
- if ($1 == MAC10) return 1.25
- if ($1 == P90) return 1.25
- if ($1 == TMP) return 1.25
- if ($1 == UMP45) return 1.25
- if ($1 == G3sg1) return 1.40
- if ($1 == M3) return 1.40
- if ($1 == XM1014) return 1.40
- if ($1 == Elite) return 1.50
- if ($1 == FiveSeven) return 1.50
- if ($1 == P228) return 1.50
- if ($1 == Scout) return 1.60
- if ($1 == SG550) return 1.70
- if ($1 == M249) return 1.80
- if ($1 == Knife) return 2.00
- }
- alias ShowServer { unaset $1 Players-list | unset %num | rcmd $1 users | hl $1 | ShowServerMsg $1 }
- alias HL {
- Set %Gather.HL-NUM $1
- Set %Gather.HL-IP $data($1).server
- bset -t &hl 1 $str($chr(255),4) $+ TSource Engine Query
- bset &hl $calc($bvar(&hl,0) + 1) 0
- sockudp -k HL $replace(%Gather.HL-IP,$chr(58),$chr(32)) &hl
- .timer 1 3 unset %Gather.HL-*
- }
- alias HLB { return $bvar(&HL,1,$bvar(&HL,0)).text }
- on *:UDPREAD:HL: {
- sockread &HL
- breplace &HL 0 254
- var %Gather.HL-Players $iif($asc($mid($gettok($HLB,6,254),2,1)),$asc($mid($gettok($HLB,6,254),1,1)) $+ / $+ $asc($mid($gettok($HLB,6,254),2,1)),0/ $+ $asc($mid($gettok($HLB,6,254),1,1)))
- var %Gather.HL-Name = $right($gettok($HLB,1,254),$calc($len($gettok($HLB,1,254)) -6))
- var %Gather.HL-Map = $gettok($HLB,2,254)
- if (%totalplayers) set %total $calc($gettok(%Gather.HL-Players,1,47) + %total)
- elseif (!$data(%Gather.HL-NUM).MoveTeamON) && (!$data(%Gather.HL-NUM).CheckAdmins) && ($data(%Gather.HL-NUM).Connected == ON) && ($ismap(%Gather.HL-Map)) { var %n = %Gather.HL-NUM | msg %Gather.channel $stl(%n,$data(%n).Color2 $+ Hostname: $+ $data(%n).Color1 %Gather.HL-Name $data(%n).Color2 $+ Players: $+ $data(%n).Color1 %Gather.HL-Players $data(%n).Color2 $+ Map: $+ $data(%n).Color1 %Gather.HL-Map ) }
- }
- alias ShowServerMsg {
- if ($data($1).Server !== $Null) {
- if ($data($1).Connected == ON) && (!$data($1).MoveTeamON) { .timer -m 1 500 ShowServerPlayers $1 }
- elseif ($data($1).Connected == BadRcon) { msg %Gather.Channel $stl($1,Bad rcon password $chr(44) $+ check your server info again.) }
- elseif ($data($1).Connected == Banned) { msg %Gather.Channel $stl($1,Banned from the server.) }
- elseif ($data($1).Connected == OFF) { msg %Gather.Channel $stl($1,No connection.) }
- }
- else { msg %Gather.Channel $stl($1,Server isn't set yet.) }
- }
- alias ShowServerPlayers {
- if ($data($1).Players-list) msg %Gather.Channel $stl($1,$chr(171) $+ $gettok($replace($v1,£,,ƒ,),$gettok($replace($v1,£,,ƒ,),0,171),171))
- unaset $1 Players-list | unset %num
- }
- alias Start1stHalf { .timer 1 10 aset $1 Score-CT 0 | .timer 1 10 aset $1 Score-T 0 | msg %Gather.Channel $stl($1,First half is now starting $+ $chr(44) good luck teams.) | ssay $1 Preparing for starting game, Please Wait... | .timer 1 1 ssay $1 Game started after 3 restarts. | .timer 1 1 MR15 $1 | .timer 1 3 rcmd $1 sv_restart 1 | .timer 1 4 rcmd $1 sv_restart 1 | .timer 1 8 tsay $1 1st HALF. Gather started! | .timer 1 8 LiveShow $1 }
- alias Start2ndHalf { .timer 1 10 aset $1 Score-CT 0 | .timer 1 10 aset $1 Score-T 0 | msg %Gather.Channel $stl($1,Second half has just started $+ $chr(44) Score is Team-A: $+ $data($1).Color2 $Score($1,A) $+ $data($1).Color1 $+ $chr(44) Team-B: $+ $data($1).Color2 $Score($1,B) $+ $data($1).Color1 $+ .) | ssay $1 Preparing for starting the game, Please Wait... | .timer 1 1 ssay $1 Game started after 3 restarts. | .timer 1 1 MR15 $1 | .timer 1 3 rcmd $1 sv_restart 1 | .timer 1 4 rcmd $1 sv_restart 1 | .timer 1 8 tsay $1 2nd HALF. Gather is LIVE -> Score ( $+ $score($1,a) $+ - $+ $score($1,b) $+ ) | .timer 1 8 LiveShow $1 }
- alias StartMR3Half { .timer 1 10 aset $1 Score-CT 0 | .timer 1 10 aset $1 Score-T 0 | msg %Gather.Channel $stl($1,MR3 1st half has just started $+ $chr(44) Score is Team-A: $+ $data($1).Color2 $Score($1,A) $+ $data($1).Color1 $+ $chr(44) Team-B: $+ $data($1).Color2 $Score($1,B) $+ $data($1).Color1 $+ .) | ssay $1 Preparing for starting the game, Please Wait... | .timer 1 1 ssay $1 Game started after 3 restarts. | .timer 1 1 MR3 $1 | .timer 1 3 rcmd $1 sv_restart 1 | .timer 1 4 rcmd $1 sv_restart 1 | .timer 1 8 tsay $1 MR3 - 1st HALF. Gather is LIVE -> Score ( $+ $score($1,a) $+ - $+ $score($1,b) $+ ) | .timer 1 8 LiveShow $1 }
- alias StartMR4Half { .timer 1 10 aset $1 Score-CT 0 | .timer 1 10 aset $1 Score-T 0 | msg %Gather.Channel $stl($1,MR3 2nd half has just started $+ $chr(44) Score is Team-A: $+ $data($1).Color2 $Score($1,A) $+ $data($1).Color1 $+ $chr(44) Team-B: $+ $data($1).Color2 $Score($1,B) $+ $data($1).Color1 $+ .) | ssay $1 Preparing for starting the game, Please Wait... | .timer 1 1 ssay $1 Game started after 3 restarts. | .timer 1 1 MR3 $1 | .timer 1 3 rcmd $1 sv_restart 1 | .timer 1 4 rcmd $1 sv_restart 1 | .timer 1 8 tsay $1 MR3 - 2nd HALF. Gather is LIVE -> Score ( $+ $score($1,a) $+ - $+ $score($1,b) $+ ) | .timer 1 8 LiveShow $1 }
- alias ShowServerScore { if ($data($1).Status == ON) { ssay $1 Score is - (Team A): $Score($1,a) - (Team B): $Score($1,b) - ( $+ $score($1,half) $+ ) } }
- alias ShowServerScoreDM {
- if ($data($1).Status == ON) {
- tsay $1 Team-A $chr(91) $+ $score($1,a) $+ / $+ %Gather.WinScore $+ $chr(93) ^ Team-B $chr(91) $+ $score($1,b) $+ / $+ %Gather.WinScore $+ $chr(93) $data($1).TKScore
- }
- }
- alias ResetStats {
- var %p = 0
- var %g = 1
- var %d = Stats.txt $1 $+ = $+ $puttok($remove($read(Stats.txt,w ,$1=*),$1 $+ =),$iif(%Gather.Points,$v1,1000) 0)
- .write -l $+ $readn %d
- }
- alias SetNewPlayer { if (STEAM_*:*:* iswm $1) .write Stats.txt $1 $+ = $+ $iif(%Gather.Points,$v1,1000) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 }
- ;/SetPlayerNick <STEAM_ID> <NICK>
- alias SetPlayerNick {
- if ($read(Nicks.txt, w,$1 $+ *)) { if (Rcon !isin $1-) && ($chr(36) !isin $1-) { var %d = $v1 | .write -l $+ $readn Nicks.txt $1- } }
- else { if (Rcon !isin $1-) .write Nicks.txt $1- }
- }
- alias End1stHalf {
- var %a = $Score($1,A) , %b = $Score($1,B)
- aset $1 FirstA %a
- aset $1 FirstB %b
- aset $1 Half First-Second
- aset $1 ScoreStatus OFF
- ssay $1 First half is over ( $+ %a $+ - $+ %b $+ )
- tsay $1 First half is over ( $+ %a $+ - $+ %b $+ )
- ;msg %Gather.Channel $stl($1,First half is over)
- }
- alias End2ndHalf { var %a = $Score($1,a) , %b = $Score($1,b) | aset $1 SecondA $Score($1,anow) | aset $1 SecondB $Score($1,bnow) | aset $1 Half Second-MR3 | aset $1 ScoreStatus OFF | ssay $1 Second half is over ( $+ %a $+ - $+ %b $+ ) | tsay $1 Second half is over ( $+ %a $+ - $+ %b $+ ) | ;msg %Gather.Channel $stl($1,Second half is over) }
- alias EndMR3Half { var %a = $Score($1,a) , %b = $Score($1,b) | aset $1 MR3A $score($1,anow) | aset $1 MR3B $score($1,bnow) | aset $1 Half MR3-MR4 | aset $1 ScoreStatus OFF | ssay $1 MR3.1st half is over ( $+ %a $+ - $+ %b $+ ) | tsay $1 MR3.1st half is over ( $+ %a $+ - $+ %b $+ ) | ;msg %Gather.Channel $stl($1,MR3 1st half is over) }
- alias SWAP { rcmd $1 allow_client_exec 1 | rcmd $1 admin_quiet 2 | rcmd $1 admin_command admin_execall setinfo "_vgui_menus" "0" | rcmd $1 admin_command admin_execteam 1 chooseteam | rcmd $1 admin_command admin_execteam 1 menuselect 2 | rcmd $1 admin_command admin_execteam 2 chooseteam | rcmd $1 admin_command admin_execteam 2 menuselect 1 | rcmd $1 admin_command admin_execall menuselect 3 }
- ;/aset <num> <prop> <string>
- alias aset2 { Set %Gather $+ [ $1 ] $+ . $+ $2 $3- }
- alias aset { Set %Gather $+ $1 $+ . $+ $2 $3- }
- ;/unaset <num> <prop>
- alias unaset { unSet %Gather $+ [ $1 ] $+ . $+ $2 }
- alias weapons { return AK47 M4A1 Famas Galil AWP MP5navy Deagle Usp Glock18 Grenade Aug SG552 MAC10 P90 TMP UMP45 G3sg1 M3 XM1014 Elite FiveSeven P228 Scout SG550 M249 Knife }
- ;$Stats(STEAM_ID).Points
- ;/Stats <inc/dec> <steam_id> <prop> <points>
- alias Stats {
- if ($prop) {
- if ($prop == all) { return $remove($read(Stats.txt,w ,$1=*),$1 $+ =) }
- elseif ($prop == Nick) { var %s = $read(Nicks.txt,w ,$1 $+ *) | return $remove($iif($1 == $gettok(%s,1,32),$gettok(%s,2-,32),no nick),Team A |,Team B|,%Gather.TAG-A,%Gather.TAG-B) }
- elseif ($findtok(%Gather.Stats,$prop,32)) { return $remove($gettok($read(Stats.txt,w ,$1=*),$v1,32),$1 $+ =) }
- }
- else {
- var %p = $iif($4,$4,1)
- if ($findtok(%Gather.Stats,$3,32)) {
- var %g = $GetNumTok($3)
- var %d = Stats.txt $2 $+ = $+ $puttok($remove($read(Stats.txt,w ,$2=*),$2 $+ =),$calc($gettok($remove($read(Stats.txt,w ,$2=*),$2 $+ =),%g,32) $iif($1 == dec,-,+) %p ),%g,32)
- .write -l $+ $readn %d
- }
- }
- }
- ;$Stats(STEAM_ID).Points
- ;/Stats <inc/dec> <steam_id> <prop> <points>
- alias Stats2 {
- if ($CheckSteam($2)) {
- if ($prop) {
- if ($prop == all) { return $remove($read(Stats.txt,w ,$1=*),$1 $+ =) }
- elseif ($prop == Nick) { var %s = $read(Nicks.txt,w ,$1 $+ *) | return $remove($iif($1 == $gettok(%s,1,32),$gettok(%s,2-,32),no nick),Team A |,Team B|,%Gather.TAG-A,%Gather.TAG-B) }
- elseif ($findtok(%Gather.Stats,$prop,32)) { return $remove($gettok($read(Stats.txt,w ,$1=*),$v1,32),$1 $+ =) }
- }
- else {
- var %p = $iif($4,$4,1)
- if ($findtok(%Gather.Stats,$3,32)) {
- if ($CheckSteam($2)) {
- var %g = $GetNumTok($3)
- var %d = Stats.txt $2 $+ = $+ $puttok($remove($read(Stats.txt,w ,$2=*),$2 $+ =),$calc($gettok($remove($read(Stats.txt,w ,$2=*),$2 $+ =),%g,32) $iif($1 == dec,-,+) %p ),%g,32)
- .write -l $+ $readn %d
- }
- }
- }
- }
- }
- alias SetLast { if (STEAM_*:*:* iswm $1) { var %d = Stats.txt $1 $+ = $+ $puttok($remove($read(Stats.txt,w ,$1=*),$1 $+ =),$2,9,32) | if ($readn) && (%d) .write -l $+ $readn %d } }
- alias GetNumTok { return $findtok(%Gather.Stats,$1,32) }
- alias clr {
- var %CLR.TEMP = $strip($gettok($1,1,34))
- if ($prop == Steam) return $gettok($gettok(%CLR.TEMP,$calc($numtok(%CLR.TEMP,60) -1) $+ - $+ $numtok(%CLR.TEMP,60),60),1,62)
- 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)
- 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)))
- elseif ($prop == Said) return $strip($gettok($1,3,34))
- 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)))
- elseif ($prop == Team) return $remove($gettok($gettok(%CLR.TEMP,$calc($numtok(%CLR.TEMP,60) -1) $+ - $+ $numtok(%CLR.TEMP,60),60),2,62),<)
- 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),<)
- 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)
- elseif ($prop == Weapon) || ($prop == Gun) return $gettok($1,5,34)
- Return $gettok($1,2,34)
- }
- ;$Score(Num,Team)
- alias Score {
- if ($data($1).Type == Regular) {
- if ($2 == a) {
- if ($data($1).Status == ON) {
- if ($data($1).Half == notyet) { return }
- elseif ($data($1).Live == A-B) || ($data($1).Live == B-A) {
- if ($data($1).Live == A-B) && ($data($1).Half == First) { return $data($1).Score-CT }
- elseif ($data($1).Live == B-A) && ($data($1).Half == First) { return $data($1).Score-T }
- elseif ($data($1).Live == A-B) && ($data($1).Half == First-Second) { return $data($1).FirstA }
- elseif ($data($1).Live == B-A) && ($data($1).Half == First-Second) { return $data($1).FirstA }
- elseif ($data($1).Live == A-B) && ($data($1).Half == Second) { return $calc($data($1).Score-T + $data($1).FirstA) }
- elseif ($data($1).Live == B-A) && ($data($1).Half == Second) { return $calc($data($1).Score-CT + $data($1).FirstA) }
- elseif ($data($1).Live == A-B) && ($data($1).Half == Second-MR3) { return $calc($data($1).FirstA + $data($1).SecondA) }
- elseif ($data($1).Live == B-A) && ($data($1).Half == Second-MR3) { return $calc($data($1).FirstA + $data($1).SecondA) }
- elseif ($data($1).Live == B-A) && ($data($1).Half == MR3) { return $calc($data($1).Score-T + $data($1).FirstA + $data($1).SecondA) }
- elseif ($data($1).Live == A-B) && ($data($1).Half == MR3) { return $calc($data($1).Score-CT + $data($1).FirstA + $data($1).SecondA) }
- elseif ($data($1).Live == B-A) && ($data($1).Half == MR3-MR4) { return $calc($data($1).Score-T + $data($1).FirstA + $data($1).SecondA) }
- elseif ($data($1).Live == A-B) && ($data($1).Half == MR3-MR4) { return $calc($data($1).Score-CT + $data($1).FirstA + $data($1).SecondA) }
- elseif ($data($1).Live == B-A) && ($data($1).Half == MR4) { return $calc($data($1).Score-CT + $data($1).FirstA + $data($1).SecondA + $data($1).MR3A) }
- elseif ($data($1).Live == A-B) && ($data($1).Half == MR4) { return $calc($data($1).Score-T + $data($1).FirstA + $data($1).SecondA + $data($1).MR3A) }
- }
- }
- else { return None }
- }
- elseif ($2 == anow) {
- if ($data($1).Status == ON) {
- if ($data($1).Half == notyet) { return notset }
- elseif ($data($1).Live == A-B) || ($data($1).Live == B-A) {
- if ($data($1).Live == A-B) && ($data($1).Half == First) { return $data($1).Score-CT }
- elseif ($data($1).Live == B-A) && ($data($1).Half == First) { return $data($1).Score-T }
- elseif ($data($1).Live == A-B) && ($data($1).Half == First-Second) { return $data($1).FirstA }
- elseif ($data($1).Live == B-A) && ($data($1).Half == First-Second) { return $data($1).FirstA }
- elseif ($data($1).Live == A-B) && ($data($1).Half == Second) { return $data($1).Score-T }
- elseif ($data($1).Live == B-A) && ($data($1).Half == Second) { return $data($1).Score-CT }
- elseif ($data($1).Live == A-B) && ($data($1).Half == Second-MR3) { return $data($1).SecondA }
- elseif ($data($1).Live == B-A) && ($data($1).Half == Second-MR3) { return $data($1).SecondA }
- elseif ($data($1).Live == A-B) && ($data($1).Half == MR3) { return $data($1).Score-CT }
- elseif ($data($1).Live == B-A) && ($data($1).Half == MR3) { return $data($1).Score-T }
- elseif ($data($1).Live == A-B) && ($data($1).Half == MR4) { return $data($1).Score-T }
- elseif ($data($1).Live == B-A) && ($data($1).Half == MR4) { return $data($1).Score-CT }
- }
- }
- else { return None }
- }
- elseif ($2 == b) {
- if ($data($1).Status == ON) {
- if ($data($1).Half == notyet) { return }
- elseif ($data($1).Live == A-B) || ($data($1).Live == B-A) {
- if ($data($1).Live == A-B) && ($data($1).Half == First) { return $data($1).Score-T }
- elseif ($data($1).Live == B-A) && ($data($1).Half == First) { return $data($1).Score-CT }
- elseif ($data($1).Live == A-B) && ($data($1).Half == First-Second) { return $data($1).FirstB }
- elseif ($data($1).Live == B-A) && ($data($1).Half == First-Second) { return $data($1).FirstB }
- elseif ($data($1).Live == A-B) && ($data($1).Half == Second) { return $calc($data($1).Score-CT + $data($1).FirstB) }
- elseif ($data($1).Live == B-A) && ($data($1).Half == Second) { return $calc($data($1).Score-T + $data($1).FirstB) }
- elseif ($data($1).Live == A-B) && ($data($1).Half == Second-MR3) { return $calc($data($1).FirstB + $data($1).SecondB) }
- elseif ($data($1).Live == B-A) && ($data($1).Half == Second-MR3) { return $calc($data($1).FirstB + $data($1).SecondB) }
- elseif ($data($1).Live == B-A) && ($data($1).Half == MR3) { return $calc($data($1).Score-CT + $data($1).FirstB + $data($1).SecondB) }
- elseif ($data($1).Live == A-B) && ($data($1).Half == MR3) { return $calc($data($1).Score-T + $data($1).FirstB + $data($1).SecondB) }
- elseif ($data($1).Live == B-A) && ($data($1).Half == MR3-MR4) { return $calc($data($1).Score-CT + $data($1).FirstB + $data($1).SecondB) }
- elseif ($data($1).Live == A-B) && ($data($1).Half == MR3-MR4) { return $calc($data($1).Score-T + $data($1).FirstB + $data($1).SecondB) }
- elseif ($data($1).Live == B-A) && ($data($1).Half == MR4) { return $calc($data($1).Score-T + $data($1).FirstB + $data($1).SecondB + $data($1).MR3B) }
- elseif ($data($1).Live == A-B) && ($data($1).Half == MR4) { return $calc($data($1).Score-CT + $data($1).FirstB + $data($1).SecondB + $data($1).MR3B) }
- }
- }
- else { return None }
- }
- elseif ($2 == bnow) {
- if ($data($1).Status == ON) {
- if ($data($1).Half == notyet) { return }
- elseif ($data($1).Live == A-B) || ($data($1).Live == B-A) {
- if ($data($1).Live == A-B) && ($data($1).Half == First) { return $data($1).Score-T }
- elseif ($data($1).Live == B-A) && ($data($1).Half == First) { return $data($1).Score-CT }
- elseif ($data($1).Live == A-B) && ($data($1).Half == First-Second) { return $data($1).FirstB }
- elseif ($data($1).Live == B-A) && ($data($1).Half == First-Second) { return $data($1).FirstB }
- elseif ($data($1).Live == A-B) && ($data($1).Half == Second) { return $data($1).Score-CT }
- elseif ($data($1).Live == B-A) && ($data($1).Half == Second) { return $data($1).Score-T }
- elseif ($data($1).Live == A-B) && ($data($1).Half == Second-MR3) { return $data($1).SecondB }
- elseif ($data($1).Live == B-A) && ($data($1).Half == Second-MR3) { return $data($1).SecondB }
- elseif ($data($1).Live == A-B) && ($data($1).Half == MR3) { return $data($1).Score-T }
- elseif ($data($1).Live == B-A) && ($data($1).Half == MR3) { return $data($1).Score-CT }
- elseif ($data($1).Live == A-B) && ($data($1).Half == MR4) { return $data($1).Score-CT }
- elseif ($data($1).Live == B-A) && ($data($1).Half == MR4) { return $data($1).Score-T }
- }
- }
- else { return None }
- }
- elseif ($2 == Half) {
- if ($data($1).Status == ON) {
- if ($data($1).Half == notyet) { return Not Live }
- elseif ($data($1).Live == A-B) || ($data($1).Live == B-A) {
- if ($data($1).Half == First) && ($calc($data($1).Score-CT + $data($1).Score-T) == 14) { return 1st half }
- elseif ($data($1).Half == First) && ($calc($data($1).Score-CT + $data($1).Score-T) !== 14) { return 1st half }
- elseif ($data($1).Half == First-Second) { return 2nd half }
- elseif ($data($1).Half == Second) { return 2nd half }
- elseif ($data($1).Half == Second-MR3) { return MR3 1st.half }
- elseif ($data($1).Half == MR3) { return MR3 1st.half }
- elseif ($data($1).Half == MR3-MR4) { return MR3 2nd.half }
- elseif ($data($1).Half == MR4) { return MR3 2nd.half }
- }
- }
- else { return None }
- }
- }
- elseif ($data($1).Type == DM) {
- if ($2 == notlive) { return Match is not live yet. }
- if ($2 == a) && ($data($1).Status == ON) {
- if ($data($1).Live == A-B) { return $data($1).Score-CT }
- if ($data($1).Live == B-A) { return $data($1).Score-T }
- }
- elseif ($2 == b) && ($data($1).Status == ON) {
- if ($data($1).Live == A-B) { return $data($1).Score-T }
- if ($data($1).Live == B-A) { return $data($1).Score-CT }
- }
- }
- }
- alias LVLStyled { return $upper($left($1,1)) $+ $lower($right($1,$calc($len($1)-1))) }
- ;/AddBan <Steam_ID/Nick> <User> <SSAY[num]/CHAN> <Reason>
- alias Addban {
- var %Access = $replace($acc($2).lvl,%GatherLV3.P,3,%GatherLV2.P,2,%GatherLV1.P,1)
- if (%Access >= 6) {
- var %user = $2
- var %lvl = $acc($2).lvl
- var %steam = $iif($CheckSteam($1),$1,$findsteam($1))
- if ($readini(Banned.ini,%steam,steam)) {
- if ($3 == CHAN) msg %Gather.Channel $stlmain($Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) Is already banned by $+ %Gather.Color2 $readini(Banned.ini,%steam,by) %Gather.Color1 $+ ( $+ %Gather.Color2 $+ $+ $LVLStyled($acc($readini(Banned.ini,%steam,by)).lvl) $+ %Gather.Color1 $+ ))
- else ssay $remove($3,SSAY) $stats(%steam).nick ( $+ %steam $+ ) Is already banned by $readini(Banned.ini,%steam,by) ( $+ $LVLStyled($acc($readini(Banned.ini,%steam,by)).lvl) $+ )
- halt
- }
- if ($isadmin(%steam)) {
- var %ban-user = $v1
- var %ban-lvl = $acc($v1).lvl
- var %lvl-num = $replace(%lvl,%GatherLV3.P,3,%GatherLV2.P,2,%GatherLV1.P,1)
- var %ban-lvl-num = $replace(%ban-lvl,%GatherLV3.P,3,%GatherLV2.P,2,%GatherLV1.P,1)
- if (%lvl-num > %ban-lvl-num) || ( (%lvl-num == 6) && (%ban-lvl-num == 5) ) {
- .writeini -n Banned.ini %steam steam %steam | .writeini -n Banned.ini %steam reason $iif($4-,$4-,no reason) | .writeini -n Banned.ini %steam at $date $time | .writeini -n Banned.ini %steam by $2
- if (!$isexists(%steam)) { SetNewPlayer %steam }
- stats inc %steam bans
- if (SSAY isin $3) ssay $remove($3,SSAY) (Banned) $iif($Stats(%steam).nick !== no nick,$v1,%ban-user) ( $+ %steam $+ ) by: $2 with reason: $iif($4-,$4-,no reason)
- else msg %Gather.Channel $stlmain(( $+ %Gather.Color2 $+ Ban $+ %Gather.Color1 $+ ) $iif($Stats(%steam).nick !== no nick,$v1,%ban-user) ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($4-,$4-,no reason) $+ .)
- if (SSAY isin $3) rcmd $remove($3,SSAY) admin_command admin_kick %steam
- .write logs/Bans.txt ( $+ $data - $time $+ ) Ban: $2 (Bannned) $Stats(%steam).nick ( $+ %steam $+ ) by: $2 with Reason: $iif($4-,$4-,no reason)
- if (%Gather.BansLog == ON) { Sockwrite -tn Client.Details1 SendMsgBan $2 $stlmain(( $+ %Gather.Color2 $+ Ban $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($4-,$4-,no reason) $+ .) }
- aline @BanLogs ( $+ $date - $time $+ ) Ban: $2 $stlmain(( $+ %Gather.Color2 $+ Ban $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($4-,$4-,no reason) $+ .)
- }
- else {
- if ($3 == CHAN) { msg %Gather.Channel $stlmain((!) $+ %Gather.Color2 %lvl $+ %Gather.Color1 $+ ( $+ %user $+ ) is not allowed to ban $+ %Gather.Color2 %ban-lvl $+ %Gather.Color1 $+ ( $+ %ban-user $+ )) }
- else { ssay $remove($3,SSAY) (!) %lvl $+ ( $+ %user $+ ) is not allowed to ban %ban-lvl $+ ( $+ %ban-user $+ ) }
- }
- }
- else {
- if (%steam) {
- .writeini -n Banned.ini %steam steam %steam | .writeini -n Banned.ini %steam reason $iif($4-,$4-,no reason) | .writeini -n Banned.ini %steam at $date $time | .writeini -n Banned.ini %steam by $2
- if (!$isexists(%steam)) { SetNewPlayer %steam }
- stats inc %steam bans
- if (SSAY isin $3) ssay $remove($3,SSAY) (Banned) $Stats(%steam).nick ( $+ %steam $+ ) by: $2 reason: $iif($4-,$4-,no reason)
- else msg %Gather.Channel $stlmain(( $+ %Gather.Color2 $+ Banned $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($4-,$4-,no reason) $+ .)
- if (SSAY isin $3) rcmd $remove($3,SSAY) admin_command admin_kick %steam
- .write logs/Bans.txt ( $+ $data - $time $+ ) Ban: $2 (Bannned) $Stats(%steam).nick ( $+ %steam $+ ) by: $2 with Reason: $iif($4-,$4-,no reason)
- aline @BanLogs ( $+ $date - $time $+ ) Ban: $2 $stlmain(( $+ %Gather.Color2 $+ Ban $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($4-,$4-,no reason) $+ .)
- if (%Gather.BansLog == ON) { Sockwrite -tn Client.Details1 SendMsgBan $2 $stlmain(( $+ %Gather.Color2 $+ Ban $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($4-,$4-,no reason) $+ .) }
- }
- }
- }
- else {
- if ($3 == CHAN) { msg %Gather.Channel $stlmain(Only %Gather.Color2 $+ %GatherLV3.P $+ $chr(44) %GatherLV2.P %Gather.Color1 allow to set Permanent Ban) }
- else { ssay $remove($3,SSAY) (!) Only %GatherLV3.P $+ $chr(44) %GatherLV2.P allow to set Permanent Ban }
- }
- }
- ;/Addbantime <Steam_ID/Nick> <User> <SSAY4/CHAN> <Days> <Reason>
- alias Addbantime {
- var %user = $2
- var %lvl = $acc($2).lvl
- var %lvl-num = $replace(%lvl,%GatherLV3.P,3,%GatherLV2.P,2,%GatherLV1.P,1)
- var %steam = $iif($CheckSteam($1),$1,$findsteam($1))
- if ($readini(Banned.ini,%steam,steam)) {
- if ($3 == CHAN) msg %Gather.Channel $stlmain($Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) Is already banned by $+ %Gather.Color2 $readini(Banned.ini,%steam,by) %Gather.Color1 $+ ( $+ %Gather.Color2 $+ $+ $LVLStyled($acc($readini(Banned.ini,%steam,by)).lvl) $+ %Gather.Color1 $+ ))
- else ssay $remove($3,SSAY) $stats(%steam).nick ( $+ %steam $+ ) Is already banned by $readini(Banned.ini,%steam,by) ( $+ $LVLStyled($acc($readini(Banned.ini,%steam,by)).lvl) $+ )
- halt
- }
- if ($4 >= 2.01) && (%lvl-num == 1) { msg %Gather.Channel $stlmain($+($chr(40),$chr(2),!,$chr(2),$chr(41)) You are an %Gather.Color2 $+ $acc($2).lvl $+ %Gather.Color1 $+ $chr(44) Therefore $+ $chr(44) Your max ban duration is %Gather.Color2 $+ 2 $+ %Gather.Color1 days.) }
- elseif ($4 >= 3.01) && (%lvl-num == 2) { msg %Gather.Channel $stlmain($+($chr(40),$chr(2),!,$chr(2),$chr(41)) You are an %Gather.Color2 $+ $acc($2).lvl $+ %Gather.Color1 $+ $chr(44) Therefore $+ $chr(44) Your max ban duration is %Gather.Color2 $+ 3 $+ %Gather.Color1 days.) }
- elseif ($4 >= 4.01) && (%lvl-num == 3) { msg %Gather.Channel $stlmain($+($chr(40),$chr(2),!,$chr(2),$chr(41)) You are an %Gather.Color2 $+ $acc($2).lvl $+ %Gather.Color1 $+ $chr(44) Therefore $+ $chr(44) Your max ban duration is %Gather.Color2 $+ 4 $+ %Gather.Color1 days.) }
- elseif ($4 >= 5.01) && (%lvl-num == 4) { msg %Gather.Channel $stlmain($+($chr(40),$chr(2),!,$chr(2),$chr(41)) You are an %Gather.Color2 $+ $acc($2).lvl $+ %Gather.Color1 $+ $chr(44) Therefore $+ $chr(44) Your max ban duration is %Gather.Color2 $+ 5 $+ %Gather.Color1 days.) }
- elseif ($4 >= 6.01) && (%lvl-num == 5) { msg %Gather.Channel $stlmain($+($chr(40),$chr(2),!,$chr(2),$chr(41)) You are an %Gather.Color2 $+ $acc($2).lvl $+ %Gather.Color1 $+ $chr(44) Therefore $+ $chr(44) Your max ban duration is %Gather.Color2 $+ 6 $+ %Gather.Color1 days.) }
- else {
- if ($isadmin(%steam)) {
- Ventox_delete_ban %steam
- timer 1 2 Ventox_upload_ban %steam
- var %ban-user = $v1
- var %ban-lvl = $acc($v1).lvl
- var %lvl-num = $replace(%lvl,%GatherLV3.P,3,%GatherLV2.P,2,%GatherLV1.P,1)
- var %ban-lvl-num = $replace(%ban-lvl,%GatherLV3.P,3,%GatherLV2.P,2,%GatherLV1.P,1)
- if (%lvl-num > %ban-lvl-num) || ( (%lvl-num == 6) && (%ban-lvl-num == 5) ) {
- .writeini -n Banned.ini %steam steam %steam
- .writeini -n Banned.ini %steam reason $iif($5-,$5-,no reason)
- .writeini -n Banned.ini %steam at $date $time
- .writeini -n Banned.ini %steam by $2
- if ($ispremium($1)) && (%Gather.Premium == ON) {
- .writeini -n Banned.ini %steam Days $calc($4 / 2)
- }
- else .writeini -n Banned.ini %steam Days $4
- if (!$isexists(%steam)) { SetNewPlayer %steam }
- stats inc %steam bans
- if (SSAY isin $3) ssay $remove($3,SSAY) (Banned) $iif($Stats(%steam).nick !== no nick,$v1,%ban-user) ( $+ %steam $+ ) by: $2 with reason: $iif($5-,$5-,no reason) For: $iif($ifpremium($1),$calc($4 / 2),$4) days.
- else msg %Gather.Channel $stlmain(( $+ %Gather.Color2 $+ Banned $+ %Gather.Color1 $+ ) $iif($Stats(%steam).nick !== no nick,$v1,%ban-user) ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($5-,$5-,no reason) %Gather.Color1 $+ For: $+ %Gather.Color2 $iif($ispremium($1),$calc($4 / 2),$4) days.)
- if (SSAY isin $3) rcmd $remove($3,SSAY) admin_command admin_kick %steam
- .write logs/Bans.txt ( $+ $data - $time $+ ) ban: $2 (Banned Time) $Stats(%steam).nick ( $+ %steam $+ ) By: $2 with reason: $iif($5-,$5-,no reason) For $iif($ispremium($1),$calc($4 / 2),$4) days.
- aline @BanLogs ( $+ $date - $time $+ ) bantime: $2 $stlmain(( $+ %Gather.Color2 $+ Banned Time $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($5-,$5-,no reason) %Gather.Color1 $+ For: $+ %Gather.Color2 $iif($ispremium($1),$calc($4 / 2),$4) days.)
- if (%Gather.BansLog == ON) { Sockwrite -tn Client.Details1 SendMsgBan $2 $stlmain(( $+ %Gather.Color2 $+ Banned Time $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($5-,$5-,no reason) %Gather.Color1 $+ For: $+ %Gather.Color2 $iif($ispremium($1),$calc($4 / 2),$4) days.) }
- }
- else {
- if ($3 == CHAN) { msg %Gather.Channel $stlmain((!) %lvl $+ ( $+ %user $+ ) is not allowed to ban %ban-lvl $+ ( $+ %ban-user $+ )) }
- else { ssay $remove($3,SSAY) (!) %lvl $+ ( $+ %user $+ ) is not allowed to ban %ban-lvl $+ ( $+ %ban-user $+ ) }
- }
- }
- else {
- if (%steam) {
- if (%Gather.WebsiteSystem == ON) && ($upload(Bans)) { Ventox_delete_ban %steam }
- if (%Gather.WebsiteSystem == ON) && ($upload(Bans)) { timer 1 2 Ventox_upload_ban %steam }
- .writeini -n Banned.ini %steam steam %steam
- .writeini -n Banned.ini %steam reason $iif($5-,$5-,no reason)
- .writeini -n Banned.ini %steam at $date $time
- .writeini -n Banned.ini %steam by $2
- if ($ispremium($1)) && (%Gather.Premium == ON) {
- .writeini -n Banned.ini %steam Days $calc($4 / 2)
- }
- else .writeini -n Banned.ini %steam Days $4
- if (!$isexists(%steam)) { SetNewPlayer %steam }
- stats inc %steam bans
- if (SSAY isin $3) ssay $remove($3,SSAY) (Banned) $Stats(%steam).nick ( $+ %steam $+ ) by: $2 reason: $iif($5-,$5-,no reason) For: $iif($ifpremium($1),$calc($4 / 2),$4) days.
- else msg %Gather.Channel $stlmain(( $+ %Gather.Color2 $+ Banned $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($5-,$5-,no reason) %Gather.Color1 $+ For: $+ %Gather.Color2 $iif($ispremium($1),$calc($4 / 2),$4) days.)
- if (SSAY isin $3) rcmd $remove($3,SSAY) admin_command admin_kick %steam
- .write logs/Bans.txt ( $+ $data - $time $+ ) Banned Time: $2 (Banned Time) $Stats(%steam).nick ( $+ %steam $+ ) By: $2 with reason: $iif($5-,$5-,no reason) For $iif($ispremium($1),$calc($4 / 2),$4) days.
- aline @BanLogs ( $+ $date - $time $+ ) bantime: $2 $stlmain(( $+ %Gather.Color2 $+ Banned Time $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($5-,$5-,no reason) %Gather.Color1 $+ For: $+ %Gather.Color2 $iif($ispremium($1),$calc($4 / 2),$4) days.)
- if (%Gather.BansLog == ON) { Sockwrite -tn Client.Details1 SendMsgBan $2 $stlmain(( $+ %Gather.Color2 $+ Banned Time $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ with reason: $+ %Gather.Color2 $iif($5-,$5-,no reason) %Gather.Color1 $+ For: $+ %Gather.Color2 $iif($ispremium($1),$calc($4 / 2),$4) days.) }
- }
- }
- }
- }
- ;/Unban <Steam_ID/Nick> <User> <SSAY4/CHAN>
- alias Unban {
- var %steam = $iif($CheckSteam($1),$1,$findsteam($1))
- var %user = $2
- var %lvl = $acc($2).lvl
- var %ban-user = $readini(Banned.ini,%steam,by)
- var %ban-lvl = $acc(%ban-user).lvl
- var %ban-lvl-num = $replace(%ban-lvl,%GatherLV3.P,3,%GatherLV2.P,2,%GatherLV1.P,1)
- var %lvl-num = $replace(%lvl,%GatherLV3.P,3,%GatherLV2.P,2,%GatherLV1.P,1,%GatherLV0.P,0)
- if (%ban-lvl == VIP) && ((%lvl == %GatherLV3.P) || (%lvl == %GatherLV2.P)) %ban-lvl-num = 0
- if (!$findsteam($1-)) && ((%ban-user == %user) || (%lvl == %GatherLV3.P) || (%lvl == %GatherLV2.P)) {
- if (%lvl-num < %ban-lvl-num) && (%steam) {
- if ($3 == CHAN) msg %Gather.Channel $stlmain((!) Only $+ %Gather.Color2 $replace(%ban-lvl-num,1,%GatherLV1.Ps\%GatherLV2.Ps\%GatherLV3.Ps,2,%GatherLV2.Ps\%GatherLV3.Ps,3,%GatherLV3.Ps) $+ %Gather.Color1 or %Gather.Color2 $+ $readini(Banned.ini,%steam,by) $+ %Gather.Color1 can remove this %steam ban.)
- else ssay $remove($3,SSAY) (!) Only $replace(%ban-lvl-num,1,%GatherLV1.Ps\%GatherLV2.Ps\%GatherLV3.Ps,2,%GatherLV2.Ps\%GatherLV3.Ps,3,%GatherLV3.Ps) or $readini(Banned.ini,%steam,by) can remove this $sclr( $+ %steam $+ ) ban.
- halt
- }
- }
- if (%steam) && ($readini(Banned.ini,%steam,steam)) {
- echoShowReason %Steam $2
- if ($3 == CHAN) msg %Gather.Channel $stlmain(( $+ %Gather.Color2 $+ Unbanned $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ reason was: $+ %Gather.Color2 $iif($readini(Banned.ini,%steam,reason),$ifmatch,no reason))
- msg #vgames.cs $stlmain(( $+ %Gather.Color2 $+ Unbanned $+ %Gather.Color1 $+ ) $Stats(%steam).nick ( $+ %Gather.Color2 $+ %steam $+ %Gather.Color1 $+ ) by: $+ %Gather.Color2 $2 %Gather.Color1 $+ reason was: $+ %Gather.Color2 $iif($readini(Banned.ini,%steam,reason),$ifmatch,no reason))
- else ssay $remove($3,SSAY) $Stats(%steam).nick ( $+ %steam $+ ) by: $2 reason was: $iif($readini(Banned.ini,%steam,reason),$ifmatch,no reason)
- .remini -n Banned.ini %steam
- if (%Gather.WebsiteSystem == ON) && ($upload(Bans)) { Ventox_delete_ban %steam }
- }
- else {
- if ($findsteam($1-)) { var %steam = $v1 }
- else { PlayerNotOnBanList $1 }
- }
- }
- alias MR15 {
- rcmd $1 alias mr122k "admin_ignore_immunity 1;default_Access 0;mr121"
- rcmd $1 alias mr121 "mp_forcecamera 2;mp_forcechasecam 2;mp_c4timer 35;mr122"
- rcmd $1 alias mr122 "mp_autoteambalance 0;mp_limitteams 0;mp_startmoney 800;mr123"
- rcmd $1 alias mr123 "mp_autokick 0;mp_freezetime 8;mr124"
- rcmd $1 alias mr124 "mp_roundtime 1.75;mp_buytime 0.15;mp_fadetoblack 0;mr125"
- rcmd $1 alias mr125 "sv_alltalk 0;sv_gravity 800;mp_tkpunish 0;sv_restart 1"
- rcmd $1 mr122k
- .timer 1 7 rcmd $1 alias mr126 "mp_friendlyfire 1"
- if ($data($1).Type !== DM) { rcmd $1 csdm_active 0 }
- else rcmd $1 csdm_active 1
- }
- alias PRAC {
- RCMD $1 alias prac122k "admin_ignore_immunity 1;default_Access 0;Prac1"
- RCMD $1 alias Prac1 "mp_forcecamera 0;mp_forcechasecam 0;mp_c4timer 35;Prac2"
- RCMD $1 alias Prac2 "mp_autoteambalance 0;mp_limitteams 0;mp_startmoney 16000;Prac3"
- RCMD $1 alias Prac3 "mp_autokick 0;mp_friendlyfire 0;mp_freezetime 0;Prac4"
- RCMD $1 alias Prac4 "mp_roundtime 7;mp_buytime 9;mp_fadetoblack 0;Prac5"
- RCMD $1 alias Prac5 "sv_alltalk 1;sv_gravity 800;mp_tkpunish 0;sv_restart 1"
- RCMD $1 prac122k
- if ($data($1).Type !== DM) { rcmd $1 csdm_active 0 }
- else rcmd $1 csdm_active 1
- }
- alias MR3 {
- rcmd $1 alias mr122k "admin_ignore_immunity 1;default_Access 0;mr121"
- rcmd $1 alias mr121 "mp_forcecamera 2;mp_forcechasecam 2;mp_c4timer 35;mr122"
- rcmd $1 alias mr122 "mp_autoteambalance 0;mp_limitteams 0;mp_startmoney 4000;mr123"
- rcmd $1 alias mr123 "mp_autokick 0;mp_freezetime 8;mr124"
- rcmd $1 alias mr124 "mp_roundtime 1.75;mp_buytime 0.15;mp_fadetoblack 0;mr125"
- rcmd $1 alias mr125 "sv_alltalk 0;sv_gravity 800;mp_tkpunish 0;sv_restart 1"
- timer 1 7 rcmd $1 alias mr126 "mp_friendlyfire 1"
- rcmd $1 mr122k
- }
- ;$rank(STEAM_ID) returns Rank number
- alias rank { .close -@ @RankWin | .window -h @RankWin | filter -cfwtue 2 61 Stats.txt @RankWin * | return $fline(@RankWin,$+($1,*),1) }
- alias ranks { return $lines(Stats.txt) }
- alias isexists { return $read(Stats.txt,w ,$1 $+ =*) }
- alias ShowRank {
- if (STEAM_*:*:* iswm $1) {
- if ($isexists($1)) { var %steam = $1 }
- else { PlayerNotFound $1- }
- }
- else {
- if ($findsteam($1-)) { var %steam = $v1 }
- else { PlayerNotFound $1- }
- }
- if (%steam) { msg %Gather.Channel $stlmain($Stats(%steam).nick ( $+ %Gather.Color2 $+ $+ %steam $+ %Gather.Color1 $+ ) Rank: $+ %Gather.Color2 $rank(%steam) $+ / $+ $ranks %Gather.Color1 $+ Points: $+ %Gather.Color2 $Stats(%steam).Points %Gather.Color1 $+ Mvps: $+ %Gather.Color2 $Stats(%steam).mvps %Gather.Color1 $+ Kills: $+ %Gather.Color2 $Stats(%steam).kills %Gather.Color1 $+ Deaths: $+ %Gather.Color2 $Stats(%steam).deaths ) }
- }
- alias ShowBans {
- if (STEAM_*:*:* iswm $1) {
- if ($isexists($1)) { var %steam = $1 }
- else { PlayerNotFound $1- }
- }
- else {
- if ($findsteam($1-)) { var %steam = $v1 }
- else { PlayerNotFound $1- }
- }
- if (%steam) { msg %Gather.Channel $stlmain($Stats(%steam).nick ( $+ %Gather.Color2 $+ $+ %steam $+ %Gather.Color1 $+ ) has banned $+ %Gather.Color2 $stats(%steam).bans %Gather.Color1 $+ times.) }
- }
- alias ShowMvp {
- if (STEAM_*:*:* iswm $1) {
- if ($isexists($1)) { var %steam = $1 }
- else { PlayerNotFound $1 }
- }
- else {
- if ($findsteam($1-)) { var %steam = $v1 }
- else { PlayerNotFound $1 }
- }
- if (%steam) { msg %Gather.Channel $stlmain($Stats(%steam).nick ( $+ %Gather.Color2 $+ $+ %steam $+ %Gather.Color1 $+ ) Mvps: $+ %Gather.Color2 $Stats(%steam).mvps) }
- }
- ;/ShowRankServer <num> <send_to> <steam/rank>
- alias ShowRankServer {
- if ($CheckSteam($3)) {
- if ($isexists($3)) { var %steam = $3 }
- else { PlayerNotFoundServer $1 $3- }
- }
- else {
- if ($findsteam($3-)) { var %steam = $v1 }
- else { PlayerNotFoundServer $1 $3- }
- }
- if (%steam) { psay $1 $2 $Stats(%steam).nick ( $+ %steam $+ ) Gathers: $Stats(%steam).Gathers Points: $Stats(%steam).Vgames-Points Mvps: $Stats(%steam).Mvps }
- }
- alias ShowStatsServer {
- if ($CheckSteam($3)) {
- if ($isexists($3)) { var %steam = $3 }
- else { PlayerNotFoundServer $3 }
- }
- else { if ($findsteam($3-)) { var %steam = $v1 } | else { PlayerNotFoundServer $1 $3- } }
- if (%steam) {
- psay $1 $2 Stats Of $Stats(%steam).nick ( $+ %steam $+ ): $chr(35) $+ $rank(%steam) Points: $Stats(%steam).Points Mvps: $Stats(%steam).Mvps K/D: $left($calc($stats(%STEAM).kills / $stats(%STEAM).deaths),5) $+ .
- psay $1 $2 Played on: $Stats(%steam).Gathers Gathers so far. (Last gather was number $Stats(%steam).Last $+ )
- psay $1 $2 Kills: $Stats(%steam).kills Deaths: $Stats(%steam).deaths Plants: $Stats(%steam).plants M4A1: $Stats(%steam).M4A1 AK47: $Stats(%steam).ak47 Awp: $Stats(%steam).Awp
- psay $1 $2 Deagle: $Stats(%steam).Deagle Usp: $Stats(%steam).Usp Tks: $Stats(%steam).tks Knife: $Stats(%steam).Knife Aces: $Stats(%steam).ace Miniaces: $Stats(%steam).Miniace
- }
- }
- ;$findsteam(NICK) returns STEAM_ID
- alias findsteam { return $gettok($read(Nicks.txt, w, * $+ $1- $+ *),1,32) }
- alias PlayerNotFound { msg %Gather.Channel $stlmain(The player ( $+ %Gather.Color2 $+ $+ $1- $+ %Gather.Color1 $+ ) is not found.) }
- alias PlayerNotOnBanList { msg %Gather.Channel $stlmain(The player ( $+ %Gather.Color2 $+ $+ $1- $+ %Gather.Color1 $+ ) is not at the BANNED list.) }
- alias PlayerNotFoundServer { ssay $1 The player ( $+ $2- $+ ) is not found. }
- alias database {
- .remove status.ini
- var %x 1, %temp
- while ($var(%Gather*.Status,%x)) {
- var %temp = %temp $iif($data(%x).Status == OFF, %x OFF , %x $data(%x).status $data(%x).admin $data(%x).map $iif($data(%x).Live,$Score(%x,A) $+ - $+ $Score(%x,B),Not-live) )
- inc %x
- wrr %temp
- unset %temp
- }
- writeini -n info.ini today today %Gather.today
- writeini -n info.ini total total %Gather.num
- writeini -n info.ini TagA TagA %Gather.TAG-A
- writeini -n info.ini TagB TagB %Gather.TAG-B
- }
- alias wrr {
- if ($5) {
- writeini -n Status.ini $1 num $1
- writeini -n Status.ini $1 Status $2
- writeini -n Status.ini $1 admin $3
- writeini -n Status.ini $1 map $4
- writeini -n Status.ini $1 score $5
- if ($data($1).status == adding) { writeini -n Status.ini $1 players $numtok($data($1).players,32) | writeini -n Status.ini $1 max $data($1).max }
- if ($data($1).sub) { writeini -n Status.ini $1 sub -Sub needed- }
- }
- elseif ($2) {
- writeini -n Status.ini $1 num $1
- writeini -n Status.ini $1 Status $2
- }
- }
- alias LoginStyle { return $upper($1) }
- ; syntax: /cursesystem <Num> <Steam_ID> <game-nick>
- alias cursesystem {
- var %dagather = $1
- var %dasteam = $2
- var %dagnick = $3-
- var %x = 1,%y = $lines(WCurse.txt)
- while (%x <= %y) {
- var %w = $read(WCurse.txt,%x)
- if (%w isin %dac.msg) || (fs $+ * iswm %dac.msg) || (*fs iswm %dac.msg) {
- if (!$readini(Curse.ini,Cursing $+ %dagather,%dasteam)) {
- ssay %dagather %dagnick ( $+ %dasteam $+ ) - Please Don't Flame! (1/3)
- writeini Curse.ini Cursing $+ %dagather %dasteam 1
- }
- elseif ($readini(Curse.ini,Cursing $+ %dagather,%dasteam) == 1) {
- ssay %dagather %dagnick ( $+ %dasteam $+ ) - Please Don't Flame! The next Curse will Banned You! (2/3)
- writeini Curse.ini Cursing $+ %dagather %dasteam 2
- }
- elseif ($readini(Curse.ini,Cursing $+ %dagather,%dasteam) >= 2) && (!%dac.flood) {
- Addbantime %dasteam FlameProtection SSAY $+ %dagather 3 Flame on Gather!
- inc -u2 %dac.flood
- }
- unset %dac.msg
- halt
- }
- inc %x
- }
- unset %dac.msg
- }
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;; SERIVCE ;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;
- On *:Socklisten:Service: {
- echo -s CONNECT $Sock(Client).saddr $Sock(Client2).saddr
- Sockaccept Client2
- echo -s 1(12Service1) new connnection from3 $Sock(Client2).ip
- var %n = Client. $+ $ticks $+ $r(1,99)
- Sockrename Client2 %n
- Sockwrite -tn %n Connected
- }
- On *:Sockread:Client.*: {
- var %Read
- Sockread %Read
- tokenize 32 %Read
- echo -s 1(12Service1) Data from4 $Sockname $+ 1 $+ : $1-
- if ($1 == Details1) { Sockrename $sockname Client.Details1 }
- elseif ($1 == Details2) { Sockrename $sockname Client.Details2 }
- elseif ($1 == Details3) { Sockrename $sockname Client.Details3 }
- elseif ($1 == RankBot) { Sockrename $sockname Client.RankBot }
- if (%Gather.VentBotName == Details3) && (%Gather.VentBotName == Details2) && (%Gather.VentBotName == Details1) && (%Gather.VentBotName == Rankbot) {
- halt
- }
- elseif ($1 == %Gather.VentBotName $+ ) { Sockrename $sockname Client. $+ %Gather.VentBotName }
- }
- alias SendData { echo -s 1(12Service1) Send data to4 $1 1:7 $2- | Sockwrite -tn $1 $2- }
- alias Service { Sockclose Service | Socklisten Service 12122 | echo -s 1(12Service1) 7Starting Service server ... }
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;; Ventrilo Connection ;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- alias details3 {
- if ($1 == Close) Sockwrite -tn Client. $+ %Gather.VentBotName CloseRooms $$2 $data($2).rooma $data($2).roomb $data($2).gtrinfo $data($2).roomname
- elseif ($1 == Open) Sockwrite -tn Client. $+ %Gather.VentBotName OpenRooms $$2 $data($2).rooma $data($2).passa $data($2).roomb $data($2).passb $data($2).gtrinfo $data($2).roomname $+ $chr(35) $+ $qt($replace($data($2).Team-B,$chr(32),$chr(44))) $+ $chr(35) $+ $qt($replace($data($2).Team-A,$chr(32),$chr(44))) $+ $chr(35) $+ $data($2).Admin $+ $chr(35) $+ $data($2).Map
- elseif ($1 == Adding) Sockwrite -tn Client. $+ %Gather.VentBotName Addingroom $$2 $data($2).rooma $data($2).roomb $data($2).gtrinfo $data($2).roomname
- }
- ;/RemovePassVent <num>
- alias RemovePassVent {
- var %file = pass $+ $1 $+ .txt
- if ($exists(%file)) .remove %file
- .write %file /chan delete $data($1).rooma
- .write %file /chan delete $data($1).roomb
- .write %file /chan delete $data($1).gtrinfo
- .write %file /subchan $qt($data($1).roomname) $qt($data($1).gtrinfo) ¶ $qt($r(1,999)) ¶ "There is NO gather running ATM "
- run -hide Ventox.exe -n %Gather.VentUser -w %Gather.VentPass -a %Gather.VentRCON -f %file %Gather.Vent
- .timer 1 3 .remove %file
- }
- ;/AddingPassVent <num>
- alias AddingPassVent {
- var %file = pass $+ $1 $+ .txt
- if ($exists(%file)) .remove %file
- .write %file /chan delete $data($1).rooma
- .write %file /chan delete $data($1).roomb
- .write %file /chan delete $data($1).gtrinfo
- .write %file /subchan $qt($data($1).roomname) $qt($data($1).gtrinfo) ¶ $qt($r(1,999)) ¶ "Gather is Adding Type: $data($1).sign $+ Add "
- run -hide Ventox.exe -n %Gather.VentUser -w %Gather.VentPass -a %Gather.VentRCON -f %file %Gather.Vent
- .timer 1 3 .remove %file
- }
- ;/ChangePassVent <num>
- alias ChangePassVent {
- var %file = pass $+ $1 $+ .txt
- if ($exists(%file)) .remove %file
- .write %file /chan delete $data($1).rooma
- .write %file /chan delete $data($1).roomb
- .write %file /chan delete $data($1).gtrinfo
- .write %file /subchan $qt($data($1).roomname) $qt($data($1).roomA) ¶ $qt($data($1).passa) ¶ $replace($data($1).Team-A,$chr(32),$chr(44))
- .write %file /subchan $qt($data($1).roomname) $qt($data($1).roomB) ¶ $qt($data($1).passb) ¶ $replace($data($1).Team-B,$chr(32),$chr(44))
- .write %file /subchan $qt($data($1).roomname) $qt($data($1).gtrinfo) ¶ $qt($r(1,999)) ¶ $qt(Map: $data($1).Map Admin: $data($1).Admin)
- run -hide Ventox.exe -n %Gather.VentUser -w %Gather.VentPass -a %Gather.VentRCON -f %file %Gather.Vent
- .timer 1 3 .remove %file
- }
- ;addvent $2 $acc($2).pass $acc($2).lvl $nick $acc($2).by
- ;/OpenUserVent <user> <pass> <lvl> <by> <GatherbotName>
- alias OpenUserVent {
- var %nick = $1,%pass = $2,%lvl = $3,%nickIRC = $4,%by = $5
- if (%Gather.VentSystem == OFF) { .writeini -n $3 $+ .cfg TAB1 Notes User Created by %nickIRC ( $+ %by $+ ) on 07/03/2013 - 17:08:50 (Rank: %lvl $+ ) }
- if (%Gather.VentSystem == ON) { Sockwrite -tn Client. $+ %Gather.VentBotName OpenUser %nick %pass %lvl %nickIRC %by }
- if (%Gather.VentSystem == OFF) { .run Ventox.exe "1" " $+ %nick $+ " " $+ %pass $+ " " $+ $3 $+ .cfg $+ " " $+ %by $+ " }
- timer 1 3 msg %nickIRC $stlmain(Creating Now the User on the Vent! (User: $sclr(%nick) Pass: $sclr(%pass) Rank: $sclr(%lvl) $+ )))
- }
- ;Sockwrite -tn Client.Users OpenUser %nick %pass %lvl %nickIRC %by
- ;/RemoveUserVent <user>
- alias RemoveUserVent {
- if ($findtok(%Gather.Protected,$1,32)) {
- msg $nick $stlmain(Dont try to Remove Users from $sclr(Protected List) $+ !)
- halt
- }
- ;if (!$findtok(%Gather.Protected,$1,32)) {
- if (%Gather.VentSystem == OFF) { .run VNT_UserCreator.exe "-1" " $+ $1 $+ " }
- if (%Gather.VentSystem == ON) { Sockwrite -tn Client. $+ %Gather.VentBotName RemoveUser $1 }
- ;}
- }
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;; Socket Site ;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;; Upload Gathers ;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- /Ventox_update_gather <NUM> <STATUS> <SERVER> <STARTED-AT> <MAP> <ADMIN> <TEAM-A> <TEAM-B> <HALF> <SCORE-A> <SCORE-B> <SIGN> <RGB>
- alias Ventox_update_gather {
- var %num = $1
- var %status = $2
- var %server = $data($1).host
- var %started-at = $gettok($4,1,32)
- var %map = $5
- var %admin = $6
- var %team-a = $replace($7,$chr(32),~)
- var %team-b = $replace($8,$chr(32),~)
- var %half = $9
- var %score-a = $10
- var %score-b = $11
- var %sign = $replace($12,&,8,+,3)
- var %rgb = $replace($1,1,Orange,2,Cyan,3,Red,5,Yellow,7,Purple,8,Brown,9,Blue,4,RGB(0,255,0),6,RGB(0,147,147))
- Ventox_URL stats/index.php?pass= $+ $get_pass $+ &action=update_gather&num= $+ %num $+ &status= $+ %status $+ &server= $+ %server $+ &startedat= $+ %started-at $+ &map= $+ %map $+ &admin= $+ %admin $+ &teama= $+ %team-a $+ &teamb= $+ %team-b $+ &half= $+ %half $+ &scorea= $+ %score-a $+ &scoreb= $+ %score-b $+ &sign= $+ %sign $+ &rgb= $+ %rgb
- }
- alias Before_Update_Gather {
- $Ventox_update_gather($1,$data($1).status,$data($1).server,$data($1).started,$data($1).map,$data($1).admin,$data($1).team-a,$data($1).team-b,$data($1).half,$Score($1,A),$Score($1,B),$data($1).sign,$data($1).rgb)
- }
- alias dupdate_Gathers {
- var %x 1, %y 4000
- while ($data(%x).Status) {
- .timer -m 1 %y Before_Update_Gather %x
- inc %y 400
- inc %x
- }
- }
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;; End Upload Gathers ;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;; Upload Bans ;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- /Ventox_delete_all_bans
- alias Ventox_delete_all_bans { Ventox_url stats/index.php?pass= $+ $get_pass $+ &action=un_bans }
- /Ventox_upload_bans
- alias Ventox_upload_bans {
- Ventox_delete_all_bans
- var %x 1, %y 10000
- echo -s Uploading bans at $ini(Banned.ini,0) seconds.
- while ($ini(Banned.ini,%x)) {
- var %steam = $v1
- .timer -m 1 %y Ventox_add_ban %steam $get_ctime(%steam) $readini(Banned.ini,%steam,by) $readini(Banned.ini,%steam,at) $readini(Banned.ini,%steam,reason)
- inc %y 500
- inc %x
- }
- .timer 1 $ini(Banned.ini,0) echo -s Uploading bans has finished!
- }
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- /Ventox_add_ban <STEAM_ID> <CTIME> <BY> <AT> <REASON>
- alias Ventox_add_ban {
- var %steam_id = $1
- var %ctime = $2
- var %by = $3
- var %at = $4
- var %reason = $replace($6-,$chr(32),~)
- Ventox_URL stats/index.php?pass= $+ $get_pass $+ &action=add_ban&steam_id= $+ %steam_id $+ &ctime= $+ %ctime $+ & $+ by= $+ %by $+ &at= $+ %at $+ & $+ reason= $+ %reason
- }
- alias Ventox_upload_ban { var %steam = $1 | Ventox_add_ban %steam $get_ctime(%steam) $readini(Banned.ini,%steam,by) $readini(Banned.ini,%steam,at) $readini(Banned.ini,%steam,reason) }
- alias Ventox_delete_ban {
- var %steam = $1
- Ventox_URL stats/index.php?pass= $+ $get_pass $+ &action=un_ban&steam_id= $+ %steam
- }
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;; End Upload Bans ;;;;;;;;;;;;;;;
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- alias START_TIMER {
- if (!$timer(status)) && (%Gather.WebsiteSystem == ON) {
- .timerSTATUS 0 15 dupdate_Gathers
- .timerBAN 0 3600 Ventox_upload_bans
- .timerBANDEL 0 3598 Ventox_delete_all_bans
- }
- }
- alias upload { return $gettok(%Gather.Upload,$1,32) }
- alias get_pass { return mv95mga }
- alias get_ctime {
- var %ctime = $Timeleft2($readini(Banned.ini,$1,at),$readini(Banned.ini,$1,Days)))
- if (%ctime > 0) && ($readini(Banned.ini,$1,Days)) return %ctime
- else return -1
- }
- on *:SOCKOPEN:Ventox_URL:{
- if ($sockerr == 0) {
- set %prkett GET / $+ %Ventox_url HTTP/1.1
- set %prkett %prkett $+ $crlf $+ Host: %Gather.Website
- set %prkett %prkett $+ $crlf $+ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1 he; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9 ( .NET CLR 3.5.30729; .NET4.0E)
- set %prkett %prkett $+ $crlf $+ Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
- set %prkett %prkett $+ $crlf $+ Accept-Language: he,en-us;q=0.7,en;q=0.3
- set %prkett %prkett $+ $crlf $+ Accept-Encoding: gzip,deflate
- set %prkett %prkett $+ $crlf $+ Accept-Charset: windows-1255,utf-8;q=0.7,*;q=0.7
- set %prkett %prkett $+ $crlf $+ Keep-Alive: 115
- set %prkett %prkett $+ $crlf $+ Connection: keep-alive $+ $crlf $+ $crlf
- sockwrite -n $sockname %prkett
- }
- }
- alias Ventox_URL {
- set %Ventox_URL $1-
- sockclose Ventox_URL
- sockopen Ventox_URL %Gather.Website 80
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement