Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /;TODO\
- Blacklist steamid & username - Cannot add ...
- auto add users in vent
- Remove Gather Number from Status and all...
- kick user from vent by when ban
- !Add - need to be faster
- Ban points
- menu for the settings and all...
- FIX ALL FLOODS [SERVER/CHANNEL/PM]
- CHECK NOTICES TIMER TO NOT SHOW LIKE $me or $Nick... to hack the bot
- /;END TODO\
- menu * {
- Tray { showmirc -t }
- Refresh Gatherbot { RCONclose | .timer 1 2 RCONstart }
- Settings
- .Set Channel { var %x = $input(Type Channel 'With #',e,Type Channel 'With #') | if (%x) && ($chr(35) $+ * iswm %x) { Set %Gather.Channel %x } }
- .Set MainSign { var %x = $input(Enter MainSign,e,Enter MainSign) | if (%x) && ($chr(35) $+ * iswm %x) { Set %Gather.Sign %x } }
- .HideRun (ON/OFF)
- ..ON { unset %Gather.HideRun }
- ..OFF { Set %Gather.HideRun OFF }
- }
- ;$stl(num,msg)
- alias stl { return $data($1).style1 $2- $data($1).style2 }
- on *:disconnect:{ .timercon 0 35 /if ($status == disconnected) { server irc.quakenet.org : 6667 } }
- ON *:CONNECT: { if (!%Gather.Today) { Set %Gather.Today 0 } | join %Gather.Channel | join %Gather.Logchannel | msg Q@CServe.quakenet.org AUTH yeled Jde4dJg3GT | .timer 1 3 mode $me +x | .timerCLOSEPMS 0 120 close -m | .timer 1 1 CheckBanTimes | .timerCheckBanTimes 0 600 CheckBanTimes | .timer 1 3 RCONstart | Fld 10 }
- ON *:TEXT:*:*: {
- if ($gettok(%Gather.LastStarted,3,32) !== $date) && (%Gather.LastReset !== $date) { Reset-Today }
- if ($target ischan) && (%Gather.Channel == $target) {
- if (*GetPass iswm $1-) && ($len($1-) == 8) && ($readini(Subs.ini,Signs,$left($1,1))) && (!%Gather.CantGetPass) { var %n = $v1 | .timer 1 $iif(%Gather.Timer,$v1,0) GetPass %n $nick $address | inc -u4 %Gather.Timer 1 | Fld 3 }
- if (*Sub iswm $1-) && ($len($1-) == 4) && ($readini(Subs.ini,Signs,$left($1,1))) {
- var %n = $v1
- if ($data(%n).sub) && (!$isnick(%n,$nick)) && (!$isaddress(%n,$address)) { SubFound %n $nick $address | Fld 5 }
- ;elseif (!$data(%n).sub) && ($data(%n).Status == ON) && (!$Fld) && (!%Gather.Adding) { msg %Gather.Channel $stl(%n,Sub is not needed) | Fld 5 }
- }
- if (%Gather.Adding) {
- var %n = %Gather.Adding
- if ($1- == $Sign(%n,Add)) && (!$isaddress(%n,$address)) && ($numtok($data(%n).players,32) !== $data(%n).Max) {
- .writeini -n Settings.ini %n Players $data(%n).players $nick | .writeini -n Settings.ini %n Address $data(%n).address $address
- if (!$Fld) && ($numtok($data(%n).players,32) !== $data(%n).Max) { .timerPlayers 1 $iif(%Gather.Timer,$v1,0) ShowPlayers %n | Fld 5 | inc -u3 %Gather.Timer 1 }
- elseif ($numtok($data(%n).players,32) == $data(%n).Max) { unset %Gather.Adding | mode %Gather.Channel +m | EndAdding %n | inc -u3 %Gather.Timer 5 }
- }
- elseif (($1- == $Sign(%n,Del)) || ($1- == $Sign(%n,Remove))) && ($isaddress(%n,$address)) && ($isnick(%n,$nick)) && ($nick !== $data(%n).Admin) { .writeini -n Settings.ini %n Players $remtok($data(%n).players,$nick,32) | .writeini -n Settings.ini %n Address $remtok($data(%n).address,$address,32) | if (!$Fld) { .timerPlayers 1 $iif(%Gather.Timer,$v1,0) ShowPlayers %n | Fld 5 | inc -u3 %Gather.Timer 1 } }
- if (!$Fld) {
- var %n = %Gather.Adding
- if ($1- == $Sign(%n,Status)) { ShowAddingStatus %Gather.Adding | Fld 5 }
- elseif ($1- == $Sign(%n,Players)) { ShowPlayers %Gather.Adding | Fld 5 }
- elseif ($1- == $Sign(%n,Vent)) || ($1- == $Sign(%n,Ventrilo)) { ShowVentrilo | Fld 5 }
- elseif ($1- == $Sign(%n,Map)) { ShowMap %Gather.Adding | Fld 5 }
- elseif ($1- == $Sign(%n,Admin)) { ShowAdmin %Gather.Adding | Fld 5 }
- }
- }
- if ($islogged($address)) {
- var %u $v1, %lvl $acc(%u).lvl
- if (((*Notice iswm $1) && ($2) && ($len($1) == 7)) || ((*N iswm $1-) && ($2) && ($len($1) == 2))) && (!%Gather.FldNotice) && (!$Fld) && ($readini(Subs.ini,Signs,$left($1,1))) { var %n = $v1 | Set -u5 %Gather.FldNotice ON | .timer 1 $iif(%Gather.Timer,$v1,0) Noticer %n $2- | inc -u3 %Gather.Timer 1 | Fld 2 }
- elseif ( ( (*Notice iswm $1-) && (!$Fld) && ($len($1-) == 7)) || ( (*N iswm $1-) && ($len($1-) == 2) ) ) && (!%Gather.FldNotice) && ($readini(Subs.ini,Signs,$left($1,1))) && ($readini(Subs.ini,Signs,$left($1,1)) == %Gather.Adding) { Set -u5 %Gather.FldNotice ON | .timer 1 $iif(%Gather.Timer,$v1,0) NoticeAdd | inc -u3 %Gather.Timer 1 | Fld 3 }
- elseif ( ( (*Stop iswm $1-) && ($len($1) == 5)) || ( (*StopGather iswm $1) && ($len($1) == 11)) ) && ($readini(Subs.ini,Signs,$left($1,1)) == %Gather.Adding) && ($readini(Subs.ini,Signs,$left($1,1))) { var %n = $v1 | StopGather %Gather.Adding $nick $2- }
- elseif (*Map iswm $1) && ($len($1) == 4) && ($2) && ($chr(37) $+ Gather !isin $2) && ($chr(36) !isin $2) && ($chr(124) !isin $2) && ($readini(Subs.ini,Signs,$left($1,1))) { var %n = $v1 | if ( (%Gather.Adding == %n) || ($data(%n).Status == ON) ) { ChangeMap %n $2 } }
- elseif ($1 == $SignMain(Ban)) && ($2) { AddBan $2 %u CHAN $iif($3-,$3-,no reason) }
- elseif ($1 == $SignMain(BanTime)) && ($3) { AddBanTime $2 %u CHAN $3 $iif($4-,$4-,no reason) }
- elseif ($1 == $SignMain(Unban)) && ($2) { Unban $2 %u CHAN }
- elseif ($1 == $Sign(%Gather.Adding,Change)) && ( ($2 == 4) || ($2 == 6) || ($2 == 8) || ($2 == 10) || ($2 == 12) ) && (%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) }
- elseif (*End iswm $1-) && ($len($1) == 4) && ($readini(Subs.ini,Signs,$left($1,1))) {
- var %n = $v1
- if ($data(%n).Status == ON) { EndGather %n $nick }
- }
- }
- if (!%Gather.Adding) && (!$Fld) {
- if ($1- == ?Status) && (!%Gather.AllStatus) { Set -u20 %Gather.AllStatus ON | .timer 1 $iif(%Gather.Timer,$v1,0) ShowALLStatus | Fld 15 | inc -u3 %Gather.Timer 3 }
- elseif ($1- == $SignMain(Vent)) || ($1- == $SignMain(Ventrilo)) { ShowVentrilo | Fld 5 }
- elseif ($1 == $SignMain(Rank)) && ($2) && (!%Gather.CantGetPass) { .timer 1 $iif(%Gather.Timer,$v1,0) ShowRank $2- | Fld 10 | inc -u3 %Gather.Timer 1 }
- elseif ( ($1 == $SignMain(Mvp)) || ($1 == $SignMain(Mvps)) ) && ($2) { ShowMvp $2- | Fld 8 }
- elseif ($1 == $SignMain(Bans)) && ($2) { ShowBans $2- | Fld 7 }
- elseif ($1 == $SignMain(Stats)) && ($2) { .timer 1 $iif(%Gather.Timer,$v1,0) ShowStats $2- | Fld 12 | inc -u3 %Gather.Timer 1 }
- elseif ($1- == $SignMain(Help)) || ($1- == $SignMain(Commands)) { ShowHelp | Fld 5 }
- elseif ($1- == $SignMain(Admins)) { ShowLevel Admin | Fld 10 }
- elseif ( ($1 == $SignMain(Gathers)) || ($1 == $SignMain(Gtrs)) ) && ($2) { ShowUserGathers $2 | Fld 6 }
- elseif ($1- == $SignMain(Today)) { ShowTodayGathers | Fld 5 }
- elseif ($1- == $SignMain(Masters)) { ShowLevel Master | Fld 10 }
- elseif ($1 == $SignMain(dban)) && ($2) { .timer 1 $iif(%Gather.Timer,$v1,0) ShowReason $2- | Fld 7 | inc -u3 %Gather.Timer 1 }
- elseif ($1- == $SignMain(Managers)) { ShowLevel Manager | Fld 10 }
- elseif ($1- == $SignMain(Gathers)) { ShowTotalGathers | Fld 5 }
- elseif ($1 == $SignMain(BanID)) && ($ini(Banned.ini,$2)) { .timer 1 $iif(%Gather.Timer,$v1,0) ShowReason $v1 | Fld 6 | inc -u3 %Gather.Timer 1 }
- elseif ( ($1- == $SignMain(topplayers)) || ($1- == $SignMain(top players)) || ($1- == $SignMain(top-players)) ) && (!%Gather.CantGetPass) { .timer 1 $iif(%Gather.Timer,$v1,0) top players | inc -u3 %Gather.Timer 2 }
- elseif ( ($1- == $SignMain(topadmins)) || ($1- == $SignMain(top admins)) || ($1- == $SignMain(top-admins)) ) && (!%Gather.CantGetPass) { .timer 1 $iif(%Gather.Timer,$v1,0) top admins | inc -u3 %Gather.Timer 2 }
- elseif ( ($1- == $SignMain(topmvps)) || ($1- == $SignMain(top mvps)) || ($1- == $SignMain(top-mvps)) ) && (!%Gather.CantGetPass) { .timer 1 $iif(%Gather.Timer,$v1,0) top mvps | inc -u3 %Gather.Timer 2 }
- elseif ( ($1- == $SignMain(topnoobs)) || ($1- == $SignMain(top noobs)) || ($1- == $SignMain(top-noobs)) ) && (!%Gather.CantGetPass) { .timer 1 $iif(%Gather.Timer,$v1,0) top noobs | inc -u3 %Gather.Timer 2 }
- elseif ( ($1- == $SignMain(topaces)) || ($1- == $SignMain(top aces)) || ($1- == $SignMain(top-aces)) ) && (!%Gather.CantGetPass) { .timer 1 $iif(%Gather.Timer,$v1,0) top aces | inc -u3 %Gather.Timer 2 }
- elseif ( ($1- == $SignMain(topminiaces)) || ($1- == $SignMain(top miniaces)) || ($1- == $SignMain(top-miniaces)) ) && (!%Gather.CantGetPass) { .timer 1 $iif(%Gather.Timer,$v1,0) top miniaces | inc -u3 %Gather.Timer 2 }
- elseif ($1 == $SignMain(Top)) && ($istok($weapons,$2,32)) && (!%Gather.CantGetPass) { .timer 1 $iif(%Gather.Timer,$v1,0) Top Weapon $2 | inc -u3 %Gather.Timer 2 }
- elseif (%Gather.Sign $+ Top-* iswm $1) && ($istok($weapons,$gettok($1,2,$asc(-)),32)) && (!%Gather.CantGetPass) { .timer 1 $iif(%Gather.Timer,$v1,0) Top Weapon $gettok($1,2,$asc(-)) | inc -u3 %Gather.Timer 2 }
- elseif (%Gather.Sign $+ Top* iswm $1) && ($istok($weapons,$remove($1,%Gather.Sign $+ Top),32)) && (!%Gather.CantGetPass) { .timer 1 $iif(%Gather.Timer,$v1,0) Top Weapon $remove($1,%Gather.Sign $+ Top) | inc -u3 %Gather.Timer 2 }
- elseif ($1- == $SignMain(top10)) && (!%Gather.CantGetPass) { .timer 1 $iif(%Gather.Timer,$v1,0) top 10 | inc -u3 %Gather.Timer 2 }
- elseif ($1- == $SignMain(Owners)) { .timer 1 $iif(%Gather.Timer,$v1,0) ShowLevel Owner | Fld 10 | inc -u3 %Gather.Timer 2 }
- elseif (*Admin iswm $1-) && ($len($1) == 6) && ($readini(Subs.ini,Signs,$left($1,1))) { var %n = $v1 | ShowAdmin $v1 | Fld 5 }
- elseif (*Map iswm $1-) && ($len($1) == 4) && ($readini(Subs.ini,Signs,$left($1,1))) { var %n = $v1 | ShowMap $v1 | Fld 5 }
- elseif (*Subs iswm $1-) && ($len($1-) == 5) && ($readini(Subs.ini,Signs,$left($1,1))) { var %n = $v1 | ShowSubs $v1 | Fld 5 }
- elseif ( (*Teams iswm $1-) && ($len($1) == 6) || (*Players iswm $1-) && ($len($1) == 8) ) && ($readini(Subs.ini,Signs,$left($1,1))) { var %n = $v1 | ShowTeams $v1 | Fld 6 }
- elseif (*Server iswm $1-) && ($len($1) == 7) && ($readini(Subs.ini,Signs,$left($1,1))) { var %n = $v1 | ShowServer $v1 | Fld 6 }
- elseif (*Sub iswm $1-) && ($len($1-) == 4) && ($readini(Subs.ini,Signs,$left($1,1))) {
- var %n = $v1
- if ($data(%n).sub) && (!$isnick(%n,$nick)) && (!$isaddress(%n,$address)) { SubFound %n $nick $address | Fld 6 }
- ;elseif (!$data(%n).sub) && ($data(%n).Status == ON) { msg %Gather.Channel $stl(%n,Sub is not needed) | Fld 5 }
- }
- elseif (*Status iswm $1-) && ($len($1-) == 7) && ($readini(Subs.ini,Signs,$left($1,1))) { var %n = $v1 | ShowStatus %n | Fld 6 }
- elseif (*Score iswm $1-) && ($len($1-) == 6) && ($readini(Subs.ini,Signs,$left($1,1))) { var %n = $v1 | ShowScore %n | Fld 6 }
- }
- }
- ;Start PM
- elseif ($target !ischan) {
- if (!$window(@PME)) { window -e @PME }
- aline @PME ( $+ $date - $time $+ ) < $+ $nick - $iif($islogged($address),$acc($v1).lvl,No-admin) $+ > $1-
- if ($1 == $SignMain(Login)) && ($acc($2).pass == $3) && (!$islogged($address)) && ($3) {
- if (%Gather.TAG) && (%Gather.TAG !isin $nick) { msg $nick $stlmain(You must to be with the tag $+ %Gather.Color2 %Gather.TAG %Gather.Color1 $+ for login.) | halt }
- if ($nick !ison %Gather.Channel) { msg $nick $stlmain(You must be on the channel $+ %Gather.Color2 %Gather.Channel %Gather.Color1 $+ for login.) | halt }
- if (%Gather.logchannel) && ($nick !ison %Gather.logchannel) { msg $nick $stlmain(You must be on the channel $+ %Gather.Color2 %Gather.LogChannel %Gather.Color1 $+ for login.) | halt }
- acc $2 address $address | Fld 2 | acc $2 status ON | acc $2 LastLogin $date $+ - $+ $asctime(HH:nn)
- if (%Gather.logchannel) mode %Gather.logchannel +v $nick | inc -u3 %Gather.Timer 1
- mode %Gather.channel +v $nick
- notice $nick $stlmain(You are now Logged in! with ( $+ %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 $Upper($acc($2).lvl) %Gather.Color1 $+ Account ( $+ %Gather.Color2 $+ $+ $2 $+ %Gather.Color1 $+ ) ( $+ %Gather.Color2 $+ *!*@ $+ $gettok($address,2,64) $+ %Gather.Color1 $+ ))
- }
- ;Start Access commands
- if ($islogged($address)) {
- var %u $v1, %lvl $acc(%u).lvl
- 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(logout)) { LogoutUser %u $nick $address Logged out }
- elseif (*Start iswm $1) && ($len($1) == 6) && ($2) && ($readini(Subs.ini,Signs,$left($1,1))) {
- var %n = $v1
- if (%Gather.Adding) { msg $nick $stlmain(Gather is already running adding, please wait until $Sign(%Gather.Adding,add) finished.) }
- elseif (!%Gather.Adding) && ($data(%n).Status == ON) { msg $nick $stl(%n,Gather %n is already running) }
- else { StartGather %n $address %u $nick $2- }
- }
- elseif (*End iswm $1-) && ($len($1) == 4) && ($readini(Subs.ini,Signs,$left($1,1))) {
- var %n = $v1
- if ($data(%n).Status == ON) { EndGather %n $nick }
- else { msg $nick $stl(%n,Gather $+ %Gather.Color2 %n %Gather.Color1 $+ isn't running.) }
- }
- elseif ($1 == $SignMain(Ban)) && ($2) { AddBan $2 %u CHAN $iif($3-,$3-,no reason) }
- elseif ($1 == $SignMain(BanTime)) && ($3) { AddBanTime $2 %u CHAN $3 $iif($4-,$4-,no reason) }
- elseif ($1 == $SignMain(Unban)) && ($2) { Unban $2 %u CHAN }
- elseif ( ($1 == $SignMain(Stop)) || ($1 == $SignMain(stopgather)) ) && (%Gather.Adding) { StopGather %Gather.Adding $nick $2- }
- elseif (*Sub iswm $1) && ($len($1) == 4) && ( ($2 == A) || ($2 == B) || ($2 == OFF) ) && ($readini(Subs.ini,Signs,$left($1,1))) {
- var %n = $v1
- if ($data(%n).Status == ON) { SubSearch %n $2 }
- else { msg $nick $stl(%n,Gather %n isn't running.) }
- }
- ;Masters/Managers/Owners commands
- if (%lvl !== admin) {
- if ($1 == $SignMain(set)) && ($2 == admin) { adduser $3 $4 $5 ADMIN $nick %u }
- elseif ($1 == $SignMain(add-a)) { adduser $2 $3 $4 ADMIN $nick %u }
- elseif ($1 == $SignMain(del-a)) { Unuser $2 ADMIN $nick }
- elseif ($1 == $SignMain(set)) && ($2 == unadmin) { Unuser $3 ADMIN $nick }
- elseif ($1 == $SignMain(Info)) && ($2) && ($ACC($2).lvl == Admin) { ShowUserInfo $2 $nick }
- }
- ;End Of Masters/Managers/Owners commands
- ;Managers/Owners commands
- if (%lvl == Manager) || (%lvl == Owner) {
- if ($1 == $SignMain(set)) && ($2 == master) { adduser $3 $4 $5 MASTER $nick %u }
- elseif ($1 == $SignMain(set)) && ($2 == unmaster) { Unuser $3 MASTER $nick }
- elseif ($1 == $SignMain(add-m)) || ($1 == $SignMain(add-master)) { adduser $2 $3 $4 MASTER $nick %u }
- elseif ($1 == $SignMain(del-m)) || ($1 == $SignMain(del-master)) { Unuser $2 MASTER $nick }
- elseif ($1 == $SignMain(how)) && ($readini(Access.ini,Access,$2)) && ($acc($2).lvl == MASTER) { How $2 $nick }
- elseif ($1 == $SignMain(up-a)) && ($readini(Access.ini,Access,$2)) && ($acc($2).lvl == ADMIN) { ACC $2 lvl MASTER | msg $nick $stlmain(User: $2 Promoted to Master!.) }
- elseif ($1 == $SignMain(down-m)) && ($readini(Access.ini,Access,$2)) && ($acc($2).lvl == MASTER) { ACC $2 lvl ADMIN | msg $nick $stlmain(User: $2 Now Admin!.) }
- elseif ($1 == $SignMain(Info)) && ($2) && ($ACC($2).lvl == Master) { ShowUserInfo $2 $nick }
- }
- ;End Of Managers/Owners commands
- ;Owners commands
- if (%lvl == Owner) {
- if ($1 == $SignMain(set)) && ($2 == Manager) { adduser $3 $4 $5 MANAGER $nick %u }
- elseif ($1 == $SignMain(set)) && ($2 == unManager) { Unuser $3 MANAGER $nick }
- elseif ($1 == $SignMain(set)) && ($2 == Owner) { adduser $3 $4 $5 OWNER $nick %u }
- elseif ($1 == $SignMain(set)) && ($2 == unOwner) { Unuser $3 OWNER $nick }
- elseif ($1 == $SignMain(add-manager)) { adduser $2 $3 $4 MANAGER $nick %u }
- elseif ($1 == $SignMain(del-manager)) { Unuser $2 MANAGER $nick }
- elseif (*Pass iswm $1) && ($len($1) == 5) && ($2) && ($readini(Subs.ini,Signs,$left($1,1))) {
- var %n = $v1
- if ($data(%n).Status !== OFF) { aset %n Pass $2 }
- if (%n) { rcmd %n sv_password $2 | msg $nick $stl(%n,Server password has changed to $+ $data(%n).Color2 $2) }
- Fld 3
- }
- elseif ($1 == $SignMain(Info)) && ($2) && ( ($ACC($2).lvl == Manager) || ($ACC($2).lvl == Owner) ) { ShowUserInfo $2 $nick }
- elseif ($1 == $SignMain(Find)) && ($islogged($remove($address($2,5),$2 $+ !))) { ShowUserInfo $v1 $nick }
- elseif ($1- == $SignMain(retryrcon)) { RCONstart | msg $nick $stlmain(Retryring all rcons ... (/RCONstart)) }
- elseif ($1 == $SignMain(how)) && ($readini(Access.ini,Access,$2)) && ($acc($2).lvl == MANAGER) { How $2 $nick }
- elseif ($1 == $SignMain(whois)) && ($2) { ShowSteamInfo $2 $nick }
- elseif ( ($1 == $SignMain(downmanager)) || ($1 == $SignMain(down-manager)) ) && ($readini(Access.ini,Access,$2)) && ($acc($2).lvl == MANAGER) { ACC $2 lvl MASTER | msg $nick $stlmain(User: $2 Now Master!.) }
- elseif ($1 == $SignMain(join)) && ($2) { join $2- | msg $nick $stlmain(Joining to $2-) }
- elseif ($1 == $SignMain(part)) && ($2) { part $2- | msg $nick $stlmain(Parting from $2-) }
- elseif ($1 == $SignMain(nick)) && ($2) { nick $2 | msg $nick $stlmain(Changing nick to $2) }
- elseif ($1 == $SignMain(upmaster)) && ($readini(Access.ini,Access,$2)) && ($acc($2).lvl == MASTER) { ACC $2 lvl MANAGER | msg $nick $stlmain(User: $2 Now Manager!.) }
- elseif ($1 == $SignMain(set)) && ($2 == port) && ($3 isnum) && ($4 isnum) && ($ini(Settings.ini,$3)) { aset $3 Port $4 | msg $nick $stlmain(Changing gather $3 port to $4 (Type $SignMain(RCON) $3 $+ )) }
- elseif ($1- == $SignMain(refresh)) { Unset %Gather.Flood | .timerRCON* OFF | .timer 1 1 RCONstart | msg $nick $stlmain(Gatherbot refreshed) }
- elseif ($1 == $SignMain(RCON)) && ($2 isnum) && ($ini(Settings.ini,$2)) { RCONclose $2 | .timer 1 2 RCON $2 | msg $nick $stlmain(Gatherbot number $2 refreshed) }
- }
- ;End Of Owners commands
- }
- ;End Access commands
- }
- ;End PM
- }
- ;/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)
- Fld 4
- msg %Gather.Pratim $+ $r(1, $+ %Gather.Pratims $+ ) SendMsg $2 $details($1,%team)
- }
- }
- alias ShowSubs { if ($data($1).Status == ON) { msg %Gather.Channel $stl($1,$data($1).Color2 $+ Subs $+ $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-8,32) | acc $1 Status OFF
- if ($4 !== Quit) notice $nick $stlmain(You are now Logged out! from ( $+ %Gather.Color2 $+ $+ $1 $+ %Gather.Color1 $+ ))
- msg $iif(%Gather.Logchannel,$v1,%Gather.Channel) $stlmain(%Gather.Color2 $+ $+ $2 %Gather.Color1 $+ Has disconnected from $+ %Gather.Color2 $upper($acc($1).lvl) %Gather.Color1 $+ Account ( $+ %Gather.Color2 $+ $+ $1 $+ %Gather.Color1 $+ ) (Reason: $+ %Gather.Color2 $4- $+ %Gather.Color1 $+ ))
- }
- alias ShortNick { return $iif($len($1-) > 20,$left($1-,20) $+ ...,$1-) }
- 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 $2 $stlmain(Details Are » Rage/Access: $+ %Gather.Color2 %lvl %Gather.Color1 $+ Username: $+ %Gather.Color2 $1 %Gather.Color1 $+ Password: $+ %Gather.Color2 $iif(%lvl == Owner,******,$acc($1).pass) %Gather.Color1 $+ STEAM:ID: $+ %Gather.Color2 $acc($1).steam %Gather.Color1 $+ Status: $iif($acc($1).status == ON,3Online $+ %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))) }
- 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 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.) }
- }
- 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)) && (!$readini(Access.ini,$1,User)) { 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 ($CheckSteam($3)) && (!$readini(Access.ini,$1,User)) { msg $5 $stlmain(%Gather.Color2 $+ $4 %Gather.Color1 $+ successfully added $+ $chr(44) for login use: /msg $me $SignMain(login) $1 $2) | SetNewAcc $1 $2 $3 $4 $6 }
- }
- }
- ;/Unuser <User> <Level> <Nick>
- 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) { 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) }
- }
- }
- 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 -n Access.ini Access $1 | .remini -n Access.ini STEAMIDS %steam | if (%addr) .remini -n Access.ini ADDRESS %addr }
- 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)) < 4) { return $false } | return $true }
- ;$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) }
- if ($2 == steam) { .remini -n Access.ini STEAMIDS $gettok($readini(Access.ini,Access,$2),2,32) | .writeini -n Access.ini STEAMIDS $3 $1 }
- if ($2 == address) { .writeini -n Access.ini ADDRESS $3 $1 }
- if ($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 { .writeini -n Access.ini Access $1 $2 $3 $4 0 OFF $date $+ - $+ $time $5 Never | .writeini -n Access.ini STEAMIDS $3 $1 }
- 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 == address) { return 9 }
- }
- 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) == 20) {
- 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 { 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.LastReset $date | echo -ts (12Reset-Today1) Reset Today Gathers... | set %Gather.Today 0 }
- alias FindFreeGather { if (%Gather.Adding) return $false | var %x = 1 | while ($ini(Settings.ini,%x)) { if ($data(%x).Status == OFF) { return %x } | inc %x } }
- alias ShowALLMaps {
- var %x = 1
- while ($ini(Settings.ini,%x)) {
- if ($readini(Settings.ini,%x,Status) == ON) { ShowMap %x }
- inc %x
- }
- }
- alias ShowScore {
- if ($data($1).Status == OFF) { ShowStatus $1 }
- else {
- 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!) }
- }
- }
- alias ShowALLAdmins {
- var %x = 1
- while ($ini(Settings.ini,%x)) {
- if ($readini(Settings.ini,%x,Status) == ON) { ShowAdmin %x }
- inc %x
- }
- }
- alias ShowMap {
- 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 == OFF) { ShowStatus $1 }
- else msg %Gather.Channel $stl($1,Gather $1 $+ : Admin $data($1).Admin $+ .)
- }
- alias ShowHelp { msg %Gather.Channel $stlmain(%Gather.Color2 $+ Commands are $+ %Gather.Color1 $+ : $SignMain(status) %Gather.Color2 $+ • $+ %Gather.Color1 $+ $SignMain(vent) %Gather.Color2 $+ • $+ %Gather.Color1 $+ $SignMain(teams) %Gather.Color2 $+ • $+ %Gather.Color1 $+ $SignMain(map) %Gather.Color2 $+ • $+ %Gather.Color1 $+ $SignMain(admin\s) %Gather.Color2 $+ • $+ %Gather.Color1 $+ $SignMain(top10) %Gather.Color2 $+ • $+ %Gather.Color1 $+ $SignMain(score) %Gather.Color2 $+ • $+ %Gather.Color1 $+ $SignMain(topadmins) %Gather.Color2 $+ • $+ %Gather.Color1 $+ $SignMain(server <num>) %Gather.Color2 $+ • $+ %Gather.Color1 $+ $SignMain(rank <nick>)) }
- alias SubFound {
- var %team = $data($1).Sub
- .remini -n Settings.ini $1 Sub
- .timer 1 $iif(%Gather.Timer,$v1,0) msg %Gather.Channel $stl($1,Sub has been found - $+ $data($1).Color2 $2)
- ;msg $nick $details($1,%team)
- .timer 1 $iif(%Gather.Timer,$v1,0) msg %Gather.Pratim $+ $r(1, $+ %Gather.Pratims $+ ) SendMsg $nick $details($1,%team)
- .timerSub $+ $1 $+ %team Off
- inc -u3 %Gather.Timer 1
- Fld 4
- .writeini -n Settings.ini $1 Subs $data($1).subs $nick
- .writeini -n Settings.ini $1 Address $data($1).address $address
- if (%Gather.Adding) && ($isnick(%Gather.Adding,$nick)) && ($nick !== $data($1).Admin) { .writeini -n Settings.ini %Gather.Adding Players $remtok($data(%Gather.Adding).players,$nick,32) | .writeini -n Settings.ini %Gather.Adding Address $remtok($data(%Gather.Adding).address,$address,32) }
- tsay $1 Sub has been found for Team- $+ $upper(%team) - $2
- ssay $1 Sub has been found for Team- $+ $upper(%team) - $2
- }
- alias details { 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).server $+ $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 $readini(Settings.ini,$1,Pass $+ $2)) }
- ;/SubSearch <Num> <A/B/OFF>
- alias SubSearch {
- if ($2 == A) || ($2 == B) { .timerSub $+ $1 $+ * Off | ssay $1 Searching sub for Team- $+ $2 | tsay $1 Searching sub for Team- $+ $2 | .writeini -n Settings.ini $1 Sub $2 | Sub $1 $2 | .timerSub $+ $1 $+ $2 0 40 Sub $1 $2 }
- elseif ($2 == OFF) { .timerSub $+ $1 $+ * Off | ssay $1 Sub Searching has been canceled. | tsay $1 Sub Searching has been canceled. | .remini -n Settings.ini $1 Sub | Sub $1 OFF }
- }
- alias Sub {
- if ($2 == A) || ($2 == B) { inc -u3 %Gather.Timer 1 | Set -u3 %Gather.CantStart ON | .timer 1 $iif(%Gather.Timer,$v1,0) mode %Gather.Channel -N+m | .timer 1 $iif(%Gather.Timer,$v1,0) .timer -m 1 300 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 $iif($data($1).Live,$Score($1,A) - $Score($1,B),Not live) ) | .timer 1 $iif(%Gather.Timer,$v1,0) .timer 1 1 mode %Gather.Channel +N-m }
- elseif ($2 == OFF) { .timer 1 $iif(%Gather.Timer,$v1,0) msg %Gather.Channel $stl($1,Sub player searching has been canceled.) }
- }
- alias SignSub { return $readini(Settings.ini,$1,Sign) }
- alias Send-details { .msg $replace($data($1).Team-A,$chr(32),$chr(44)) $details($1,A) | .timer 1 2 .msg $replace($data($1).Team-B,$chr(32),$chr(44)) $details($1,B) }
- alias ShowVentrilo { msg %Gather.Channel $stlmain( $+ %Gather.Color2 $+ Ventrilo $+ %Gather.Color1 $+ : %Gather.Vent ( $+ %Gather.Color2 $+ v $+ %Gather.Vent-Version $+ %Gather.Color1 $+ )) }
- alias EndAdding {
- mode %Gather.Channel +m
- unset %Gather.Adding | Set -u30 %Gather.Flood ON | .timerPlayers OFF | Set -u30 %Gather.CantStart ON | Set -u60 %Gather.CantGetPass ON
- .timer 1 $iif(%Gather.Timer,$v1,0) .timer -m 1 200 msg %Gather.Channel $stl($1,Mixing teams, Please wait ...)
- .timer 1 $iif(%Gather.Timer,$calc( $v1 + 10 ) ,10) mode %Gather.Channel -m
- .writeini -n Settings.ini $1 Status ON
- inc -u5 %Gather.Timer 7 | MIX $1 | .timer -m 1 500 ChangePassVent $1
- .timer 1 $iif(%Gather.Timer,$v1,0) .timer 1 1 ShowTeams $1
- .timer 1 10 Send-details $1
- ;.timer 1 $iif(%Gather.Timer,$v1,0) .timer 1 1 SendPratim $1
- }
- alias SendPratim { msg %Gather.Pratim $+ $r(1, $+ %Gather.Pratims $+ ) SendMsg $replace($data($1).Team-A,$chr(32),$chr(44)) $details($1,A) | .timer 1 2 msg %Gather.Pratim $+ $r(1, $+ %Gather.Pratims $+ ) SendMsg $replace($data($1).Team-B,$chr(32),$chr(44)) $details($1,B) }
- alias ShowTeams { if ($data($1).Status == OFF) { ShowStatus $1 } | else { var %a = $replace($data($1).Team-A,%Gather.TAG,$data($1).Color2 $+ %Gather.TAG $+ $data($1).Color1)) | var %b = $replace($data($1).Team-B,%Gather.TAG,$data($1).Color2 $+ %Gather.TAG $+ $data($1).Color1)) | msg %Gather.Channel $stl($1,$data($1).Color2 $+ Team-A $+ $data($1).Color1 $+ : $replace(%a,$data($1).Color2 $+ %Gather.TAG $+ $data($1).Color1 $+ $remove($data($1).Admin,%Gather.TAG),« $+ $data($1).Color2 $+ $+ $data($1).Admin $+ $data($1).Color1 $+ »))) | msg %Gather.Channel $stl($1,$data($1).Color2 $+ Team-B $+ $data($1).Color1 $+ : $replace(%b,$data($1).Color2 $+ %Gather.TAG $+ $data($1).Color1 $+ $remove($data($1).Admin,%Gather.TAG),« $+ $data($1).Color2 $+ $+ $data($1).Admin $+ $data($1).Color1 $+ »))) } }
- 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) }
- .writeini -n Settings.ini $1 Team-A $gettok(%AFTER,1- $calc($numtok($data($1).players,32) /2),32) | .writeini -n Settings.ini $1 Team-B $gettok(%AFTER,$calc($calc($numtok($data($1).players,32) /2) +1) -,32)
- }
- ON *:PART:%Gather.Channel: {
- if (%Gather.Adding) && ($isnick(%Gather.Adding,$nick)) && ($nick !== $data($1).Admin) { .writeini -n Settings.ini %Gather.Adding Players $remtok($data(%Gather.Adding).players,$nick,32) | .writeini -n Settings.ini %Gather.Adding Address $remtok($data(%Gather.Adding).address,$address,32) }
- if ($islogged($address)) { LogoutUser $v1 $nick $address Part }
- }
- ON *:KICK:%Gather.Channel {
- if (%Gather.Adding) && ($isnick(%Gather.Adding,$knick)) && ($knick !== $data(%Gather.Adding).Admin) { .writeini -n Settings.ini %Gather.Adding Players $remtok($data(%Gather.Adding).players,$knick,32) | .writeini -n Settings.ini %Gather.Adding Address $remtok($data(%Gather.Adding).address,$remove($address($knick,5),$knick,!),32) }
- if ($islogged($remove($address($knick,5),$knick $+ !))) { LogoutUser $v1 $knick $remove($address($knick,5),$knick $+ !) Kicked from channel }
- }
- ON *:QUIT: {
- if (%Gather.Adding) && ($isnick(%Gather.Adding,$nick)) && ($nick !== $data($1).Admin) { .writeini -n Settings.ini %Gather.Adding Players $remtok($data(%Gather.Adding).players,$nick,32) | .writeini -n Settings.ini %Gather.Adding Address $remtok($data(%Gather.Adding).address,$address,32) }
- if ($islogged($address)) { LogoutUser $v1 $nick $address Quit }
- }
- ON !*:NICK: { if (%Gather.Adding) && ($isaddress(%Gather.Adding,$address)) && ($isnick(%Gather.Adding,$nick)) { .writeini -n Settings.ini %Gather.Adding Players $reptok($data(%Gather.Adding).players,$nick,$newnick,32) | if ($nick == $data(%Gather.Adding).Admin) { .writeini -n Settings.ini %Gather.Adding Admin $newnick } } }
- alias islogged { return $readini(Access.ini,ADDRESS,$1) }
- alias isadmin { return $readini(Access.ini,STEAMIDS,$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,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 Fld { if ($isid) return %Gather.Flood | else set $+(-u,$1) %Gather.Flood On }
- alias ShowALLStatus2 { var %x = 1 | while ($ini(Settings.ini,%x)) { .timer -m 1 $calc(%x * 500) ShowStatus %x | inc %x } }
- alias ShowALLStatus {
- var %x 1, %temp
- while ($ini(Settings.ini,%x)) {
- var %temp = %temp Gather %x $+ : ( $+ $iif($data(%x).Status == ON,9ON $+ %Gather.Color1 $+ ,4OFF $+ %Gather.Color1 $+ ) $+ )
- inc %x
- }
- if (%temp) msg %Gather.Channel $stlmain(%temp)
- }
- alias ShowStatus {
- if ($data($1).Status == ON) { msg %Gather.Channel $stl($1,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 $iif($data($1).Live,$score($1,A) $data($1).Color1 $+ - $+ $data($1).Color2 $Score($1,B) $data($1).Color1 $+ ( $+ $data($1).Color2 $+ $+ $score($1,Half) $+ $data($1).Color1 $+ ),Not started)) }
- else { msg %Gather.Channel $stl($1,There is no gather running at the moment.) }
- }
- alias data { return $readini(Settings.ini,$1,$prop) }
- alias stlmain { return %Gather.Style1 $1- %Gather.Style2 }
- alias SignMain { return %Gather.Sign $+ $1 }
- alias Sign { return $readini(Settings.ini,$1,Sign) $+ $2 }
- ;/StartGather <Num> <Address> <User> <Nick> <Map> <Server> <A> <B>
- alias StartGather {
- var %file = pass $+ $1 $+ .txt
- if (%Gather.CantStart) halt
- if (%Gather.Adding) { msg $4 $stlmain(Gather is already running, please wait until teams mixed.) | 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 }
- Set %Gather.Adding $1
- .timerSub $+ $1 $+ * Off
- RCON $1
- .remini -n Settings.ini $1 Sub
- .remini -n Settings.ini $1 SecondA
- .remini -n Settings.ini $1 SecondB
- .remini -n Settings.ini $1 MR3A
- .remini -n Settings.ini $1 MR3B
- .remini -n Settings.ini $1 FirstA
- .remini -n Settings.ini $1 FirstB
- inc %Gather.num
- inc %Gather.Today
- ACC $3 Gathers $calc($acc($3).Gathers +1)
- aset $1 AdminUser $3
- aset $1 GatherNum %Gather.num
- aset $1 Status Adding
- aset $1 Max 10
- .remini -n Settings.ini $1 Team-A
- .remini -n Settings.ini $1 Team-B
- .remini -n Settings.ini $1 ScoreStatus
- .remini -n Settings.ini $1 Score-CT
- .remini -n Settings.ini $1 Score-T
- .remini -n Settings.ini $1 Banlast
- .remini -n Settings.ini $1 Live
- .remini -n Settings.ini $1 BombPlanet
- .writeini -n Settings.ini $1 Half notyet
- .writeini -n Settings.ini $1 ScoreStatus OFF
- .writeini -n Settings.ini $1 Map $5
- .writeini -n Settings.ini $1 Admin $4
- .writeini -n Settings.ini $1 Players $4
- .writeini -n Settings.ini $1 Address ~ $+ $2
- .writeini -n Settings.ini $1 Started $time / $date
- .writeini -n Settings.ini $1 PassA $iif($7,$7,$r(1,9) $+ $r(1,9))
- .writeini -n Settings.ini $1 PassB $iif($8,$8,$r(1,9) $+ $r(1,9))
- .writeini -n Settings.ini $1 Pass $iif($6,$6,$r(1,9) $+ $r(1,9) $+ $r(1,9))
- msg $4 $stl($1,Gather details: serv pass: $data($1).pass a: $data($1).passa b: $data($1).passb)
- mode %Gather.Channel +m-N
- .write %file /chan delete $data($1).gtrinfo
- .write %file /subchan $data($1).roomnum $data($1).gtrinfo ¶ $data($1).passa ¶ "Gather is ON addit "
- run -hide Ventox.exe -n %Gather.VentUser -w %Gather.VentPass -a %Gather.VentRCON -f %file %Gather.Vent
- .timer 1 $iif(%Gather.Timer,$v1,0) notice %Gather.Channel $stl($1,Gather is about to START Be ready for -m)
- .timer 1 $iif(%Gather.Timer,$calc($v1 + 1),1) msg %Gather.Channel $stl($1,Starting the $+ $data($1).Color2 $ord($data($1).GatherNum) $data($1).Color1 $+ Gather since the $+ $data($1).Color2 $gettok($data($1).Started,1,32) $data($1).Color1 $+ by $+ $data($1).Color2 $data($1).Admin)
- .timer 1 $iif(%Gather.Timer,$calc($v1 + 2),2) .timer 1 2 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 $iif(%Gather.Timer,$calc($v1 + 3),3) notice %Gather.Channel $stl($1,%Gather.Startnotice)
- inc -u3 %Gather.Timer 3
- .timer 1 7.5 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
- if ($exists(Mvps.ini)) .remini -n Mvps.ini $1
- }
- ;/StopGather <num> <nick> <Reason>
- alias StopGather {
- var %file = pass $+ $1 $+ .txt
- if (!%Gather.Adding) Halt
- unset %Gather.Adding
- .timer 1 $iif(%Gather.Timer,$v1,0) msg %Gather.Channel $stl($1,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-))
- inc -u3 %Gather.Timer 2
- .timerSub $+ $1 $+ * Off
- aset $1 Max 10
- .write %file /chan delete $data($1).gtrinfo
- .write %file /subchan $data($1).roomnum $data($1).gtrinfo ¶ $data($1).passa ¶ "OFF"
- run -hide Ventox.exe -n %Gather.VentUser -w %Gather.VentPass -a %Gather.VentRCON -f %file %Gather.Vent
- .remini -n Settings.ini $1 Sub
- .remini -n Settings.ini $1 Subs
- .remini -n Settings.ini $1 SecondA
- .remini -n Settings.ini $1 SecondB
- .remini -n Settings.ini $1 MR3A
- .remini -n Settings.ini $1 MR3B
- .remini -n Settings.ini $1 FirstA
- .remini -n Settings.ini $1 FirstB
- .remini -n Settings.ini $1 Players
- .remini -n Settings.ini $1 Address
- .remini -n Settings.ini $1 Pass
- .remini -n Settings.ini $1 PassA
- .remini -n Settings.ini $1 PassB
- .remini -n Settings.ini $1 Admin
- .remini -n Settings.ini $1 Team-A
- .remini -n Settings.ini $1 Team-B
- .remini -n Settings.ini $1 ScoreStatus
- .remini -n Settings.ini $1 Score-CT
- .remini -n Settings.ini $1 Score-T
- .remini -n Settings.ini $1 Banlast
- .remini -n Settings.ini $1 Live
- .remini -n Settings.ini $1 BombPlanet
- .remini -n Settings.ini $1 Started
- .remini -n Settings.ini $1 Map
- .remini -n Settings.ini $1 Half
- .writeini -n Settings.ini $1 Status OFF
- aset $1 GatherNum $calc($data($1).GatherNum -1)
- ACC $data($1).AdminUser Gathers $calc($acc($data($1).AdminUser).Gathers -1)
- .remini -n Settings.ini $1 AdminUser
- dec %Gather.num
- 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
- if ($exists(Mvps.ini)) .remini -n Mvps.ini $1
- }
- ;/EndGather <num> <by>
- alias EndGather {
- .timerSub $+ $1 $+ * Off
- Set %Gather.LastStarted $data($1).Started
- if ($calc($Score($1,A) + $Score($1,B)) < 5) || (!$data($1).Live) { dec %Gather.Today | dec %Gather.Num | ACC $data($1).AdminUser Gathers $calc($acc($data($1).AdminUser).Gathers -1) }
- else { setMvps $1 }
- RemovePassVent $1
- rcmd $1 allow_client_exec 1
- .timer 1 $iif(%Gather.Timer,$v1,0) msg %Gather.Channel $stl($1,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 $+ $+ $iif($data($1).Live,$Score($1,A) $+ $data($1).Color1 $+ - $+ $data($1).Color2 $+ $+ $Score($1,B),Not live) $+ $data($1).Color1 $+ ) $+ $chr(44) Ready for the next one.)
- inc -u3 %Gather.Timer 2
- ssay $1 Gather is over! ( $+ $iif($data($1).Live,$Score($1,A) $+ - $Score($1,B)) $+ )
- tsay $1 Gather is over! ( $+ $iif($data($1).Live,$Score($1,A) $+ - $Score($1,B)) $+ )
- .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
- .remini -n Settings.ini $1 Sub
- .remini -n Settings.ini $1 Subs
- .remini -n Settings.ini $1 SecondA
- .remini -n Settings.ini $1 SecondB
- .remini -n Settings.ini $1 MR3A
- .remini -n Settings.ini $1 MR3B
- .remini -n Settings.ini $1 FirstA
- .remini -n Settings.ini $1 FirstB
- .remini -n Settings.ini $1 Players
- .remini -n Settings.ini $1 Address
- .remini -n Settings.ini $1 Pass
- .remini -n Settings.ini $1 PassA
- .remini -n Settings.ini $1 PassB
- .remini -n Settings.ini $1 Admin
- .remini -n Settings.ini $1 Team-A
- .remini -n Settings.ini $1 Team-B
- .remini -n Settings.ini $1 ScoreStatus
- .remini -n Settings.ini $1 Score-CT
- .remini -n Settings.ini $1 Score-T
- .remini -n Settings.ini $1 Banlast
- .remini -n Settings.ini $1 Live
- .remini -n Settings.ini $1 BombPlanet
- .remini -n Settings.ini $1 Started
- .remini -n Settings.ini $1 Map
- .remini -n Settings.ini $1 Half
- .writeini -n Settings.ini $1 Status OFF
- .remini -n Settings.ini $1 AdminUser
- aset $1 Max 10
- if ($exists(Kills $+ $1 $+ .ini)) { .remove Kills $+ $1 $+ .ini }
- }
- alias SetMvps {
- Fld 20 | 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 6 }
- if (%2nd) { Stats inc %2nd mvps 2 | Stats inc %2nd Points 5 }
- if (%3rd) { Stats inc %3rd mvps 1 | Stats inc %3rd Points 4 }
- 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 FindMvpNum { var %x = 1 | while ($ini(Mvps.ini,%x)) { if ($v1 == $1) return %x | inc %x } }
- ;
- ;;;;; CS 1.6 Multi Server Connection ;;;;;
- ;
- alias RCONstart {
- echo -s (12RCON1)3 Starting RCONS ...
- var %x 1, %y 1
- while ($ini(Settings.ini,%x)) { .timer 1 %y RCON %x | inc %x | inc %y 10 }
- }
- alias RCONclose { .timerRCON $+ $1 Off | rcmd $1 logaddress_del $ip $readini(Settings.ini,$1,Port) | .remini -n Settings.ini $1 Challenge | .timerRCON $+ $1 OFF | .writeini -n Settings.ini $1 Connected OFF | sockclose rcon $+ $1 * | echo -s (12RCON $1 $+ 1) 1---4Sockets closed1--- }
- alias RconLOG {
- rcmd $1 nochn logaddress_del $ip $readini(Settings.ini,$1,Port)
- rcmd $1 nochn logaddress_del $ip $readini(Settings.ini,$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 $ip $readini(Settings.ini,$1,Port)
- .timer -m 1 500 echo -s (12RCON $1 $+ 1) 3* Open Socket Rcon LOG... *
- }
- ;/RCON <SERVER NUM> (/RCON 1,/RCON 2...)
- alias RCON { if ($ip) echo -s (12RCON $1 $+ 1) 4* Starting RCON $1 * | echo -s (12RCON $1 $+ 1) Server IPort:12 $readini(Settings.ini,$1,Server) | echo -s (12RCON $1 $+ 1) Rcon password is:12 $readini(Settings.ini,$1,RCONpass) | echo -s (12RCON $1 $+ 1) Port is:12 $readini(Settings.ini,$1,Port) | echo -s (12RCON $1 $+ 1) Your IP is:12 $ip | echo -s | GETchallenge $1 | sockudp -k rcon $+ $1 $+ LOG $readini(Settings.ini,$1,Port) $replace($readini(Settings.ini,$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($readini(Settings.ini,$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) | .writeini -n Settings.ini %n Challenge $gettok(%RCON-challenge,3,32) } | elseif ($gettok(%RCON-challenge,3,32) !isnum) && ($readini(Settings.ini,%n,Connected) !== Banned) { .writeini -n Settings.ini %n Connected Banned | RCONclose | echo -s 1(12RCON1)4 You are BANNED from the Server %n RCON Closed ! 2Check your Server details. } }
- alias rcmd { if ($2 != nochn) GETchallenge $1 | sockudp -k rcon $+ $1 $+ CMD $replace($readini(Settings.ini,$1,Server),$chr(58),$chr(32)) $str($chr(255),4) $+ rcon $readini(Settings.ini,$1,Challenge) " $+ $readini(Settings.ini,$1,RCONpass) $+ " $iif($2 == nochn,$3-,$2-) }
- on *:udpread:rcon*LOG:{
- var %LOG
- sockread -f %LOG
- while ($sockbr) {
- if (%LOG) && (echo check !isin %LOG) RCON.DATA $remove($sockname,rcon,LOG) $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-) RCON.DATA %n $1-
- sockread -f %CMD
- }
- }
- alias LiveShow { ssay $1 Live. | ssay $1 Live.. | ssay $1 Live... | .timer 1 2 ssay $1 Game is ON. }
- 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 RCON.DATA {
- var %n = $1
- if (!$timer(RCON $+ $1)) .timerRCON $+ $1 0 600 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-) && ($readini(Settings.ini,$1,Connected) !== BadRcon) { .writeini -n Settings.ini $1 Connected BadRcon | echo -s (12RCON $1 $+ 1) 4* BAD RCON PASSWORD - Closing RCON Socket... * }
- if (Server shutdown isin $2-) { .writeini -n Settings.ini $1 Connected OFF | echo -s (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-) && ($readini(Settings.ini,$1,Connected) !== ON) { .writeini -n Settings.ini %n Connected ON | echo -s (12RCON %n $+ 1) 12Gatherbot connected to the SERVER !!! | echo -s (12RCON %n $+ 1) 12Gatherbot connected to the SERVER !!! | echo -s (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) { .writeini -n Settings.ini $1 Connected BadRcon }
- if (You have been banned from this server. == %Rcon.dat) && ($readini(Settings.ini,%n,Connected) !== Banned) { .writeini -n Settings.ini %n Connected Banned }
- if ($2 isnum) && ($3 == :) && ($remove($4,STEAM_,:) isnum) && ($5 == :) && ($6) { inc %num | aset %n Players-list $data(%n).Players-list «£ $+ $remove($data(%n).Color2,) $+ ƒƒ $+ %num $+ £ $+ $remove($data(%n).Color1,) $+ » $6- }
- if ($data(%n).Status == ON) {
- if (STEAM USERID validated == $clr($2-)) { ssay %n %rcon.nick ( $+ %RCON.steam $+ ) Has connected. }
- 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 (*Team "TERRORIST" triggered "Terrorists_Win"* iswm %rcon.dat) { aset %n Score-T $remove($gettok(%rcon.dat,2,41),T,",$chr(40)) }
- elseif (*Team "CT" triggered "CTs_Win"* iswm %rcon.dat) { aset %n Score-CT $remove($gettok(%rcon.dat,2,40),CT,",$chr(41)) }
- elseif (*Team "CT" triggered "Target_Saved"* iswm %rcon.dat) { aset %n Score-CT $remove($gettok(%rcon.dat,2,40),CT,",$chr(41)) }
- elseif (*Team "TERRORIST" triggered "Target_Bombed"* iswm %rcon.dat) { aset %n Score-T $remove($gettok(%rcon.dat,2,41),T,",$chr(40)) | var %s = $data(%n).BombPlanet | .writeini -n Mvps.ini %n %s $calc($readini(Mvps.ini,%n,%s) +1) | Stats inc %s Points }
- elseif (*Team "CT" triggered "Bomb_Defused"* iswm %rcon.dat) { 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) miniaces | .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. } | inc %x }
- 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
- .remini -n Settings.ini %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) { .remini -n Settings.ini %n BombPlanet }
- elseif (Killed == $clr($2-)) {
- if (%rcon.team !== %rcon.team2) {
- if (!$ini(Stats.ini,STEAMIDS,%rcon.steam)) { SetNewPlayer %rcon.steam }
- if (!$ini(Stats.ini,STEAMIDS,%rcon.steam2)) { SetNewPlayer %rcon.steam2 }
- .writeini -n Stats.ini NICKS %rcon.steam %rcon.nick
- .writeini -n Stats.ini NICKS %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 | .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) { .writeini -n Stats.ini STEAMIDS %rcon.steam $gettok($stats(%rcon.steam).all,1-8,32) $data(%n).GatherNum $gettok($stats(%rcon.steam).all,10-,32) | Stats inc %rcon.steam Gathers }
- if ($Stats(%rcon.steam2).Last == 0) || ($Stats(%rcon.steam2).Last !== $data(%n).GatherNum) { .writeini -n Stats.ini STEAMIDS %rcon.steam2 $gettok($stats(%rcon.steam2).all,1-8,32) $data(%n).GatherNum $gettok($stats(%rcon.steam2).all,10-,32) | Stats inc %rcon.steam2 Gathers }
- 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 }
- if ($readini(Kills $+ %n $+ .ini,%rcon.steam,Kills) == 5) { Stats inc %rcon.steam aces | Stats inc %rcon.steam Points 4.51 | .writeini -n Mvps.ini %n %rcon.steam $calc($readini(Mvps.ini,%n,%rcon.steam) + 4.51) | tsay %n %rcon.nick Just did an ACE. | ssay %n %rcon.nick Just did an ACE. | .remove Kills $+ %n $+ .ini }
- }
- elseif (%rcon.team == %rcon.team2) {
- if (!$ini(Stats.ini,STEAMIDS,%rcon.steam)) { SetNewPlayer %rcon.steam }
- if (!$ini(Stats.ini,STEAMIDS,%rcon.steam2)) { SetNewPlayer %rcon.steam2 }
- .writeini -n Stats.ini NICKS %rcon.steam %rcon.nick
- .writeini -n Stats.ini NICKS %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)
- }
- }
- elseif (Triggered == $clr($2-)) {
- if (%rcon.said == Planted_The_Bomb) {
- if (!$ini(Stats.ini,STEAMIDS,%rcon.steam)) { SetNewPlayer %rcon.steam }
- aset %n BombPlanet %rcon.steam | .writeini -n Stats.ini NICKS %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 plants
- }
- if (%rcon.said == Defused_The_Bomb) {
- if (!$ini(Stats.ini,STEAMIDS,%rcon.steam)) { SetNewPlayer %rcon.steam }
- .writeini -n Stats.ini NICKS %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 ($1- == $SignS(score)) && ($data(%n).Status == ON) && (!%Gather.ServFld $+ %n) { if ($data(%n).Live) { Set -u2 %Gather.ServFld $+ %n ON | ShowServerScore %n } | else { Set -u2 %Gather.ServFld $+ %n ON | ssay %n Score status: Match is not live yet! } }
- 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(rank)) && (!%Gather.ServFld $+ %n) && ($2) { Set -u2 %Gather.ServFld $+ %n ON | ShowRankServer %n %rcon.steam $2- }
- elseif ($1 == $SignS(stats)) && (!%Gather.ServFld $+ %n) && ($2) { Set -u2 %Gather.ServFld $+ %n ON | ShowStatsServer %n %rcon.steam $2- }
- 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(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(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
- 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(teams)) && ($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(Freezetime)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | ssay %n Freezetime is $2 now. | rcmd %n mp_freezetime $2 }
- 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 == @) { $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(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 rcmd 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)) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | Knife %n }
- 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(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) { $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(Ban)) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | AddBan $2 %u SSAY $+ %n $iif($3-,$3-,no reason) }
- elseif ($1 == $SignS(BanTime)) && ($3) { $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).BanLast) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | AddBanTime $data(%n).BanLast %u SSAY $+ %n 2 Tk team members. }
- elseif ($1 == $SignS(Unban)) && ($2) { $ShowWindowCmd(%n,%rcon.steam,%rcon.nick,$1-) | Unban $2 %u SSAY $+ %n }
- elseif ( ($1 == $SignS(Start)) || ($1 == $SignS(Live)) ) && ($data(%n).Status == ON) && (!%Gather.FloodStart) {
- 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 }
- }
- ;END - START GATHER
- }
- }
- ;End SAY/SAY_TEAM CHAT
- }
- }
- ;/ShowWindowCmd <num> <steam_id> <rcon.nick> <cmds>
- ;$ShowWindowCmd(num,steam_id,rcon.nick,cmds)
- alias ShowWindowCmd { aline @Cmds $+ $1 ( $+ $date - $time $+ ) < $+ $3- - $iif($isadmin($2),$acc($v1).lvl,No-admin) $+ > $4- }
- alias Noticer { mode %Gather.Channel -N | notice %Gather.Channel $stl($1,$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 "10000"
- .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- }
- 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 { .remini -n Settings.ini $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 ($data(%Gather.HL-NUM).Connected == ON) { 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 $data(%n).Color2 $+ IP: $+ $data(%n).Color1 %Gather.HL-IP) }
- }
- alias ShowServerMsg {
- if ($data($1).Server !== $Null) {
- if ($data($1).Connected == ON) { .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,$replace($v1,£,,ƒ,))
- .remini -n Settings.ini $1 Players-list | unset %num
- }
- alias Start1stHalf { .timer 1 10 aset $1 Score-CT 0 | .timer 1 10 aset $1 Score-T 0 | ;.timer 1 $iif(%Gather.Timer,$v1,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 | ;.timer 1 $iif(%Gather.Timer,$v1,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 | ;.timer 1 $iif(%Gather.Timer,$v1,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 | ;.timer 1 $iif(%Gather.Timer,$v1,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 SetNewPlayer { .writeini -n Stats.ini STEAMIDS $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 }
- 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
- ;.timer 1 $iif(%Gather.Timer,$v1,0) msg %Gather.Channel $stl($1,First half is over)
- ssay $1 First half is over ( $+ %a $+ - $+ %b $+ )
- tsay $1 First half is over ( $+ %a $+ - $+ %b $+ )
- }
- 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
- ;.timer 1 $iif(%Gather.Timer,$v1,0) msg %Gather.Channel $stl($1,Second half is over)
- ssay $1 Second half is over ( $+ %a $+ - $+ %b $+ )
- tsay $1 Second half is over ( $+ %a $+ - $+ %b $+ )
- }
- 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
- ;.timer 1 $iif(%Gather.Timer,$v1,0) msg %Gather.Channel $stl($1,MR3 1st half is over)
- ssay $1 MR3.1st half is over ( $+ %a $+ - $+ %b $+ )
- tsay $1 MR3.1st half is over ( $+ %a $+ - $+ %b $+ )
- }
- 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 }
- ;/aset <num> <prop> <string>
- alias aset { .writeini -n Settings.ini $1 $2 $3- }
- ;Stats.ini file
- ;[STEAMIDS]
- ;(37 things) STEAM_ID=Points Mvps kills deaths plants defuses tks Gathers Last 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 Ace MiniAce
- 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 $readini(Stats.ini,STEAMIDS,$1) }
- elseif ($prop == Nick) { return $iif($readini(Stats.ini,NICKS,$1),$v1,no nick) }
- elseif ($prop == Points) { return $gettok($readini(Stats.ini,STEAMIDS,$1),1,32) }
- elseif ($prop == Mvps) { return $gettok($readini(Stats.ini,STEAMIDS,$1),2,32) }
- elseif ($prop == kills) { return $gettok($readini(Stats.ini,STEAMIDS,$1),3,32) }
- elseif ($prop == deaths) { return $gettok($readini(Stats.ini,STEAMIDS,$1),4,32) }
- elseif ($prop == plants) { return $gettok($readini(Stats.ini,STEAMIDS,$1),5,32) }
- elseif ($prop == defuses) { return $gettok($readini(Stats.ini,STEAMIDS,$1),6,32) }
- elseif ($prop == tks) { return $gettok($readini(Stats.ini,STEAMIDS,$1),7,32) }
- elseif ($prop == gathers) { return $gettok($readini(Stats.ini,STEAMIDS,$1),8,32) }
- elseif ($prop == last) { return $gettok($readini(Stats.ini,STEAMIDS,$1),9,32) }
- elseif ($prop == aces) { return $gettok($readini(Stats.ini,STEAMIDS,$1),36,32) }
- elseif ($prop == miniaces) { return $gettok($readini(Stats.ini,STEAMIDS,$1),37,32) }
- elseif ($prop == bans) { return $gettok($readini(Stats.ini,STEAMIDS,$1),38,32) }
- elseif ($istok($weapons,$prop,32)) { var %c = $calc(9 + $findtok($weapons,$prop,32)) | return $gettok($readini(Stats.ini,STEAMIDS,$1),%c,32) }
- }
- else {
- var %p = $iif($4,$4,1)
- if ($3 == Points) { .writeini -n Stats.ini STEAMIDS $2 $calc($gettok($readini(Stats.ini,STEAMIDS,$2),1,32) $iif($1 == inc,+,-) %p) $gettok($readini(Stats.ini,STEAMIDS,$2),2-,32) }
- elseif ($istok(Points Mvps Kills deaths plants defuses tks gathers last aces miniaces bans,$3,32)) { var %c = $GetNumTok($3) | .writeini -n Stats.ini STEAMIDS $2 $gettok($readini(Stats.ini,STEAMIDS,$2),1- $+ $calc(%c - 1),32) $calc($gettok($readini(Stats.ini,STEAMIDS,$2),%c,32) $iif($1 == inc,+,-) %p) $gettok($readini(Stats.ini,STEAMIDS,$2),$calc(%c + 1) $+ -,32) }
- elseif ($istok($weapons,$3,32)) { var %c = $calc(9 + $findtok($weapons,$3,32)) | .writeini -n Stats.ini STEAMIDS $2 $gettok($readini(Stats.ini,STEAMIDS,$2),1- $+ $calc(%c - 1),32) $calc($gettok($readini(Stats.ini,STEAMIDS,$2),%c,32) $iif($1 == inc,+,-) %p) $gettok($readini(Stats.ini,STEAMIDS,$2),$calc(%c + 1) $+ -,32) }
- }
- }
- alias GetNumTok {
- if ($1 == Points) { return 1 }
- elseif ($1 == Mvps) { return 2 }
- elseif ($1 == kills) { return 3 }
- elseif ($1 == deaths) { return 4 }
- elseif ($1 == plants) { return 5 }
- elseif ($1 == defuses) { return 6 }
- elseif ($1 == tks) { return 7 }
- elseif ($1 == gathers) { return 8 }
- elseif ($1 == last) { return 9 }
- elseif ($1 == aces) { return 36 }
- elseif ($1 == miniaces) { return 37 }
- elseif ($1 == bans) { return 38 }
- }
- 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 ($2 == a) {
- 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 }
- if ($data($1).Live == B-A) && ($data($1).Half == First) { return $data($1).Score-T }
- if ($data($1).Live == A-B) && ($data($1).Half == First-Second) { return $data($1).FirstA }
- if ($data($1).Live == B-A) && ($data($1).Half == First-Second) { return $data($1).FirstA }
- if ($data($1).Live == A-B) && ($data($1).Half == Second) { return $calc($data($1).Score-T + $data($1).FirstA) }
- if ($data($1).Live == B-A) && ($data($1).Half == Second) { return $calc($data($1).Score-CT + $data($1).FirstA) }
- if ($data($1).Live == A-B) && ($data($1).Half == Second-MR3) { return $calc($data($1).FirstA + $data($1).SecondA) }
- if ($data($1).Live == B-A) && ($data($1).Half == Second-MR3) { return $calc($data($1).FirstA + $data($1).SecondA) }
- if ($data($1).Live == B-A) && ($data($1).Half == MR3) { return $calc($data($1).Score-T + $data($1).FirstA + $data($1).SecondA) }
- if ($data($1).Live == A-B) && ($data($1).Half == MR3) { return $calc($data($1).Score-CT + $data($1).FirstA + $data($1).SecondA) }
- if ($data($1).Live == B-A) && ($data($1).Half == MR3-MR4) { return $calc($data($1).Score-T + $data($1).FirstA + $data($1).SecondA) }
- if ($data($1).Live == A-B) && ($data($1).Half == MR3-MR4) { return $calc($data($1).Score-CT + $data($1).FirstA + $data($1).SecondA) }
- if ($data($1).Live == B-A) && ($data($1).Half == MR4) { return $calc($data($1).Score-CT + $data($1).FirstA + $data($1).SecondA + $data($1).MR3A) }
- if ($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 }
- if ($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 }
- if ($data($1).Live == B-A) && ($data($1).Half == First) { return $data($1).Score-T }
- if ($data($1).Live == A-B) && ($data($1).Half == First-Second) { return $data($1).FirstA }
- if ($data($1).Live == B-A) && ($data($1).Half == First-Second) { return $data($1).FirstA }
- if ($data($1).Live == A-B) && ($data($1).Half == Second) { return $data($1).Score-T }
- if ($data($1).Live == B-A) && ($data($1).Half == Second) { return $data($1).Score-CT }
- if ($data($1).Live == A-B) && ($data($1).Half == Second-MR3) { return $data($1).SecondA }
- if ($data($1).Live == B-A) && ($data($1).Half == Second-MR3) { return $data($1).SecondA }
- if ($data($1).Live == A-B) && ($data($1).Half == MR3) { return $data($1).Score-CT }
- if ($data($1).Live == B-A) && ($data($1).Half == MR3) { return $data($1).Score-T }
- if ($data($1).Live == A-B) && ($data($1).Half == MR4) { return $data($1).Score-T }
- if ($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 notset }
- if ($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 }
- if ($data($1).Live == B-A) && ($data($1).Half == First) { return $data($1).Score-CT }
- if ($data($1).Live == A-B) && ($data($1).Half == First-Second) { return $data($1).FirstB }
- if ($data($1).Live == B-A) && ($data($1).Half == First-Second) { return $data($1).FirstB }
- if ($data($1).Live == A-B) && ($data($1).Half == Second) { return $calc($data($1).Score-CT + $data($1).FirstB) }
- if ($data($1).Live == B-A) && ($data($1).Half == Second) { return $calc($data($1).Score-T + $data($1).FirstB) }
- if ($data($1).Live == A-B) && ($data($1).Half == Second-MR3) { return $calc($data($1).FirstB + $data($1).SecondB) }
- if ($data($1).Live == B-A) && ($data($1).Half == Second-MR3) { return $calc($data($1).FirstB + $data($1).SecondB) }
- if ($data($1).Live == B-A) && ($data($1).Half == MR3) { return $calc($data($1).Score-CT + $data($1).FirstB + $data($1).SecondB) }
- if ($data($1).Live == A-B) && ($data($1).Half == MR3) { return $calc($data($1).Score-T + $data($1).FirstB + $data($1).SecondB) }
- if ($data($1).Live == B-A) && ($data($1).Half == MR3-MR4) { return $calc($data($1).Score-CT + $data($1).FirstB + $data($1).SecondB) }
- if ($data($1).Live == A-B) && ($data($1).Half == MR3-MR4) { return $calc($data($1).Score-T + $data($1).FirstB + $data($1).SecondB) }
- if ($data($1).Live == B-A) && ($data($1).Half == MR4) { return $calc($data($1).Score-T + $data($1).FirstB + $data($1).SecondB + $data($1).MR3B) }
- if ($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 notset }
- if ($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 }
- if ($data($1).Live == B-A) && ($data($1).Half == First) { return $data($1).Score-CT }
- if ($data($1).Live == A-B) && ($data($1).Half == First-Second) { return $data($1).FirstB }
- if ($data($1).Live == B-A) && ($data($1).Half == First-Second) { return $data($1).FirstB }
- if ($data($1).Live == A-B) && ($data($1).Half == Second) { return $data($1).Score-CT }
- if ($data($1).Live == B-A) && ($data($1).Half == Second) { return $data($1).Score-T }
- if ($data($1).Live == A-B) && ($data($1).Half == Second-MR3) { return $data($1).SecondB }
- if ($data($1).Live == B-A) && ($data($1).Half == Second-MR3) { return $data($1).SecondB }
- if ($data($1).Live == A-B) && ($data($1).Half == MR3) { return $data($1).Score-T }
- if ($data($1).Live == B-A) && ($data($1).Half == MR3) { return $data($1).Score-CT }
- if ($data($1).Live == A-B) && ($data($1).Half == MR4) { return $data($1).Score-CT }
- if ($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 notyet }
- if ($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 }
- if ($data($1).Half == First) && ($calc($data($1).Score-CT + $data($1).Score-T) !== 14) { return 1st half }
- if ($data($1).Half == First-Second) { return 2nd half }
- if ($data($1).Half == Second) { return 2nd half }
- if ($data($1).Half == Second-MR3) { return MR3 1st.half }
- if ($data($1).Half == MR3) { return MR3 1st.half }
- if ($data($1).Half == MR3-MR4) { return MR3 2nd.half }
- if ($data($1).Half == MR4) { return MR3 2nd.half }
- }
- }
- else { return None }
- }
- }
- 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 %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,Owner,4,Manager,3,Master,2,Admin,1)
- var %ban-lvl-num = $replace(%ban-lvl,Owner,4,Manager,3,Master,2,Admin,1)
- if (%lvl-num > %ban-lvl-num) || ( (%lvl-num == 4) && (%ban-lvl-num == 4) ) {
- .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 (!$ini(Stats.ini,STEAMIDS,%steam)) { SetNewPlayer %steam }
- stats inc %steam bans
- if (SSAY isin $3) ssay $remove($3,SSAY) ( $+ $LVLStyled(%ban)-lvl Ban) $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) $+ .)
- var %x = 1 | while ($ini(Settings.ini,%x)) { .timer -m 1 $calc(%x * 100) rcmd %x admin_command admin_ban %steam | inc %x }
- }
- 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 (!$ini(Stats.ini,STEAMIDS,%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) $+ .)
- var %x = 1 | while ($ini(Settings.ini,%x)) { .timer -m 1 $calc(%x * 100) rcmd %x admin_command admin_ban %steam | inc %x }
- }
- }
- }
- ;/Addbantime <Steam_ID/Nick> <User> <SSAY4/CHAN> <Days> <Reason>
- alias Addbantime {
- 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,Owner,4,Manager,3,Master,2,Admin,1)
- var %ban-lvl-num = $replace(%ban-lvl,Owner,4,Manager,3,Master,2,Admin,1)
- if (%lvl-num > %ban-lvl-num) || ( (%lvl-num == 4) && (%ban-lvl-num == 4) ) {
- .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
- .writeini -n Banned.ini %steam Days $4
- if (!$ini(Stats.ini,STEAMIDS,%steam)) { SetNewPlayer %steam }
- stats inc %steam bans
- if (SSAY isin $3) ssay $remove($3,SSAY) ( $+ %ban-lvl ban) $iif($Stats(%steam).nick !== no nick,$v1,%ban-user) ( $+ %steam $+ ) by: $2 with reason: $iif($5-,$5-,no reason) For: $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 $4 days.)
- var %x = 1 | while ($ini(Settings.ini,%x)) { .timer -m 1 $calc(%x * 100) rcmd %x admin_command admin_ban %steam | inc %x }
- }
- 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) {
- .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
- .writeini -n Banned.ini %steam Days $4
- if (!$ini(Stats.ini,STEAMIDS,%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: $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 $4 days.)
- var %x = 1 | while ($ini(Settings.ini,%x)) { .timer -m 1 $calc(%x * 100) rcmd %x admin_command admin_ban %steam | inc %x }
- }
- }
- }
- ;/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,Owner,4,Manager,3,Master,2,Admin,1)
- var %lvl-num = $replace(%lvl,Owner,4,Manager,3,Master,2,Admin,1)
- if (%lvl-num < %ban-lvl-num) && (%steam) {
- if ($3 == CHAN) msg %Gather.Channel $stlmain((!) Only $+ %Gather.Color2 $replace(%ban-lvl-num,1,Admins\Masters\Managers\Owners,2,Masters\Managers\Owners,3,Managers\Owners,4,Owners) %Gather.Color1 $+ can remove this $+ %Gather.Color2 %steam %Gather.Color1 $+ ban.)
- else ssay $remove($3,SSAY) (!) Only $replace(%ban-lvl-num,1,Admins\Masters\Managers\Owners,2,Masters\Managers\Owners,3,Managers\Owners,4,Owners) can remove this %steam ban.
- halt
- }
- if (%steam) {
- if ($3 == CHAN) msg %Gather.Channel $stlmain(( $+ %Gather.Color2 $+ UN-BANNED $+ %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
- var %x = 1 | while ($ini(Settings.ini,%x)) { .timer -m 1 $calc(%x * 100) rcmd %x admin_command admin_unban %steam | inc %x }
- }
- }
- 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_friendlyfire 1;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
- }
- 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
- }
- 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_friendlyfire 1;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
- }
- ;$rank(STEAM_ID) returns Rank number
- alias rank { var %x = 1 | .close -@ @Rank | .window -h @Rank | while ($ini(Stats.ini,STEAMIDS,%x)) { echo @Rank $v1 $Stats($v1).Points | inc %x } | filter -cwwtue 2 32 @Rank @Rank * | var %rank = $fline(@Rank,$+(*,$1,*),1) | .close -@ @Rank | return %rank }
- ;$findsteam(NICK) returns STEAM_ID
- alias findsteam {
- var %x = 1
- while ($ini(Stats.ini,NICKS,%x)) {
- if ($1 isin $readini(Stats.ini,n,NICKS,$ini(Stats.ini,NICKS,%x))) { return $ini(Stats.ini,NICKS,%x) }
- inc %x
- }
- }
- alias ShowRank {
- if (STEAM_*:*:* iswm $1) {
- if ($ini(Stats.ini,STEAMIDS,$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) $+ / $+ $ini(Stats.ini,STEAMIDS,0) %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 ($ini(Stats.ini,STEAMIDS,$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 ($ini(Stats.ini,STEAMIDS,$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) }
- }
- alias ShowRankServer {
- if ($CheckSteam($3)) { if ($ini(Stats.ini,STEAMIDS,$3)) { var %steam = $3 } | else { PlayerNotFoundServer $3- } }
- else { if ($findsteam($3-)) { var %steam = $v1 } | else { PlayerNotFoundServer $3- } }
- if (%steam) { psay $1 $2 $Stats(%steam).nick ( $+ %steam $+ ) Rank: $rank(%steam) Points: $Stats(%steam).Points Mvps: $Stats(%steam).Mvps Kills: $Stats(%steam).Kills Deaths: $Stats(%steam).deaths }
- }
- alias ShowStats {
- if (STEAM_*:*:* iswm $1) { if ($ini(Stats.ini,STEAMIDS,$1)) { var %steam = $1 } | else { PlayerNotFound $1- } }
- else { if ($findsteam($1-)) { var %steam = $v1 } | else { PlayerNotFound $1- } }
- if (%steam) {
- msg %Gather.Channel $stlmain(Statistics for $+ %Gather.Color2 $stats(%STEAM).nick %Gather.Color1 $+ ( $+ %Gather.Color2 $+ %STEAM $+ %Gather.Color1 $+ ) $+ %Gather.Color1 Rank: $+ %Gather.Color2 $rank(%steam) $+ %Gather.Color1 $+ / $+ $ini(Stats.ini,STEAMIDS,0) %Gather.Color1 $+ Points: $+ %Gather.Color2 $stats(%STEAM).points %Gather.Color1 $+ K/D: $+ %Gather.Color2 $left($calc($stats(%STEAM).kills / $stats(%STEAM).deaths),5))
- msg %Gather.Channel $stlmain(Played on: $+ %Gather.Color2 $Stats(%STEAM).Gathers %Gather.Color1 $+ Gathers so far. (Last one was number $+ %Gather.Color2 $Stats(%STEAM).last $+ %Gather.Color1 $+ ))
- .timer -m 1 500 msg %Gather.Channel $stlmain(Kills: $+ %Gather.Color2 $stats(%STEAM).kills %Gather.Color1 $+ Deaths: $+ %Gather.Color2 $stats(%STEAM).deaths %Gather.Color1 $+ Accuracy: $+ %Gather.Color2 $calc($stats(%STEAM).kills / $stats(%STEAM).deaths) %Gather.Color1 $+ Plants: $+ %Gather.Color2 $stats(%STEAM).plants %Gather.Color1 $+ M4A1: $+ %Gather.Color2 $stats(%STEAM).m4a1 %Gather.Color1 $+ AK47: $+ %Gather.Color2 $stats(%STEAM).ak47 %Gather.Color1 $+ AWP: $+ %Gather.Color2 $stats(%STEAM).awp)
- .timer -m 1 500 msg %Gather.Channel $stlmain(Deagle: $+ %Gather.Color2 $stats(%STEAM).DEAGLE %Gather.Color1 $+ Usp: $+ %Gather.Color2 $stats(%STEAM).USP %Gather.Color1 $+ Famas: $+ %Gather.Color2 $stats(%STEAM).famas %Gather.Color1 $+ Galil: $+ %Gather.Color2 $Stats(%STEAM).galil %Gather.Color1 $+ Glock: $+ %Gather.Color2 $stats(%STEAM).glock18 %Gather.Color1 $+ Knife: $+ %Gather.Color2 $stats(%STEAM).Knife %Gather.Color1 $+ Tks: $+ %Gather.Color2 $stats(%STEAM).Tks %Gather.Color1 $+ Aces: $+ %Gather.Color2 $Stats(%STEAM).aces %Gather.Color1 $+ MiniAces: $+ %Gather.Color2 $Stats(%STEAM).miniaces)
- }
- }
- alias ShowStatsServer {
- if ($CheckSteam($3)) {
- if ($ini(Stats.ini,STEAMIDS,$3)) { var %steam = $3 }
- else { PlayerNotFoundServer $3 }
- }
- else { if ($findsteam($3-)) { var %steam = $v1 } | else { PlayerNotFoundServer $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).aces Miniaces: $Stats(%steam).Miniaces
- }
- }
- alias PlayerNotFound { msg %Gather.Channel $stlmain(The player ( $+ %Gather.Color2 $+ $+ $1- $+ %Gather.Color1 $+ ) is not found.) }
- alias PlayerNotFoundServer { ssay $1 The player ( $+ $2- $+ ) is not found. }
- alias Top {
- if ($1 == players) {
- if ($ini(Stats.ini,STEAMIDS,0) == 0) { msg %Gather.Channel $stlmain(There is no current ranking on the gatherbot yet.) | Fld 3 | goto END }
- Fld 20 | .close -@ @Bot | .window -h @Bot | var %x 1, %o 1
- while ($ini(Stats.ini,STEAMIDS,%x)) { var %s = $v1 | echo @Bot %s $stats(%s).Points | inc %x }
- filter -cwwteu 2 32 @Bot @Bot
- if ($ini(Stats.ini,STEAMIDS,0) < %Gather.TopNumber) { var %z = $ini(Stats.ini,STEAMIDS,0) }
- elseif ($ini(Stats.ini,STEAMIDS,0) >= %Gather.TopNumber) { var %z = %Gather.TopNumber }
- msg %Gather.Channel $stlmain(Here are the Top $+ %z %Gather.Color2 $+ Players $+ %Gather.Color1 out of $ini(Stats.ini,STEAMIDS,0) known players:)
- while (%z) { .timer -m 1 $calc(%o * 200) msg %Gather.Channel $stlmain($ord(%o) $+ : $+ %Gather.Color2 $Stats($gettok($line(@Bot,%o),1,32)).nick $+ %Gather.Color1 $chr(44) $+ Score: $+ %Gather.Color2 $gettok($line(@Bot,%o),2,32)) | inc %o | dec %z }
- :END
- }
- elseif ($1 == noobs) {
- if ($ini(Stats.ini,STEAMIDS,0) == 0) { msg %Gather.Channel $stlmain(There is no current ranking on the gatherbot yet.) | Fld 3 | GOTO END }
- Fld 20 | .close -@ @Bot | .window -h @Bot | var %x 1, %o 1
- while ($ini(Stats.ini,STEAMIDS,%x)) { var %s = $v1 | echo @Bot %s $stats(%s).Points | inc %x }
- filter -cwwtu 2 32 @Bot @Bot
- if ($ini(Stats.ini,STEAMIDS,0) < %Gather.TopNumber) { var %z = $ini(Stats.ini,STEAMIDS,0) }
- elseif ($ini(Stats.ini,STEAMIDS,0) >= %Gather.TopNumber) { var %z = %Gather.TopNumber }
- msg %Gather.Channel $stlmain(Here are the Top $+ %z %Gather.Color2 $+ Noobs $+ %Gather.Color1 out of $ini(Stats.ini,STEAMIDS,0) known players:)
- while (%z) { .timer -m 1 $calc(%o * 200) msg %Gather.Channel $stlmain($ord(%o) $+ : $+ %Gather.Color2 $Stats($gettok($line(@Bot,%o),1,32)).nick $+ %Gather.Color1 $chr(44) $+ Score: $+ %Gather.Color2 $gettok($line(@Bot,%o),2,32)) | inc %o | dec %z }
- :END
- }
- elseif ($1 == mvps) {
- if ($ini(Stats.ini,STEAMIDS,0) == 0) { msg %Gather.Channel $stlmain(There is no current ranking on the gatherbot yet.) | Fld 3 | GOTO END }
- Fld 20 | .close -@ @Bot | .window -h @Bot | var %x 1, %o 1
- while ($ini(Stats.ini,STEAMIDS,%x)) { var %s = $v1 | echo @Bot %s $stats(%s).mvps | inc %x }
- filter -cwwteu 2 32 @Bot @Bot
- if ($ini(Stats.ini,STEAMIDS,0) < %Gather.TopNumber) { var %z = $ini(Stats.ini,STEAMIDS,0) }
- elseif ($ini(Stats.ini,STEAMIDS,0) >= %Gather.TopNumber) { var %z = %Gather.TopNumber }
- msg %Gather.Channel $stlmain(Here are the Top $+ %z %Gather.Color2 $+ MVPS $+ %Gather.Color1 out of $ini(Stats.ini,STEAMIDS,0) known players:)
- while (%z) { .timer -m 1 $calc(%o * 200) msg %Gather.Channel $stlmain($ord(%o) $+ : $+ %Gather.Color2 $Stats($gettok($line(@Bot,%o),1,32)).nick $+ %Gather.Color1 $chr(44) $+ MVPS: $+ %Gather.Color2 $gettok($line(@Bot,%o),2,32)) | inc %o | dec %z }
- :END
- }
- elseif ($1 == aces) {
- if ($ini(Stats.ini,STEAMIDS,0) == 0) { msg %Gather.Channel $stlmain(There is no current ranking on the gatherbot yet.) | Fld 3 | GOTO END }
- Fld 20 | .close -@ @Bot | .window -h @Bot | var %x 1, %o 1
- while ($ini(Stats.ini,STEAMIDS,%x)) { var %s = $v1 | echo @Bot %s $stats(%s).aces | inc %x }
- filter -cwwteu 2 32 @Bot @Bot
- if ($ini(Stats.ini,STEAMIDS,0) < %Gather.TopNumber) { var %z = $ini(Stats.ini,STEAMIDS,0) }
- elseif ($ini(Stats.ini,STEAMIDS,0) >= %Gather.TopNumber) { var %z = %Gather.TopNumber }
- msg %Gather.Channel $stlmain(Here are the Top $+ %z %Gather.Color2 $+ Aces $+ %Gather.Color1 out of $ini(Stats.ini,STEAMIDS,0) known players:)
- while (%z) { .timer -m 1 $calc(%o * 200) msg %Gather.Channel $stlmain($ord(%o) $+ : $+ %Gather.Color2 $Stats($gettok($line(@Bot,%o),1,32)).nick $+ %Gather.Color1 $chr(44) $+ Aces: $+ %Gather.Color2 $gettok($line(@Bot,%o),2,32)) | inc %o | dec %z }
- :END
- }
- elseif ($1 == miniaces) {
- if ($ini(Stats.ini,STEAMIDS,0) == 0) { msg %Gather.Channel $stlmain(There is no current ranking on the gatherbot yet.) | Fld 3 | GOTO END }
- Fld 20 | .close -@ @Bot | .window -h @Bot | var %x 1, %o 1
- while ($ini(Stats.ini,STEAMIDS,%x)) { var %s = $v1 | echo @Bot %s $stats(%s).miniaces | inc %x }
- filter -cwwteu 2 32 @Bot @Bot
- if ($ini(Stats.ini,STEAMIDS,0) < %Gather.TopNumber) { var %z = $ini(Stats.ini,STEAMIDS,0) }
- elseif ($ini(Stats.ini,STEAMIDS,0) >= %Gather.TopNumber) { var %z = %Gather.TopNumber }
- msg %Gather.Channel $stlmain(Here are the Top $+ %z %Gather.Color2 $+ MiniAces $+ %Gather.Color1 out of $ini(Stats.ini,STEAMIDS,0) known players:)
- while (%z) { .timer -m 1 $calc(%o * 200) msg %Gather.Channel $stlmain($ord(%o) $+ : $+ %Gather.Color2 $Stats($gettok($line(@Bot,%o),1,32)).nick $+ %Gather.Color1 $chr(44) $+ MiniAces: $+ %Gather.Color2 $gettok($line(@Bot,%o),2,32)) | inc %o | dec %z }
- :END
- }
- elseif ($1 == gathers) {
- if ($ini(Stats.ini,STEAMIDS,0) == 0) { msg %Gather.Channel $stlmain(There is no current ranking on the gatherbot yet.) | Fld 3 | GOTO END }
- Fld 20 | .close -@ @Bot | .window -h @Bot | var %x 1, %o 1
- while ($ini(Stats.ini,STEAMIDS,%x)) { var %s = $v1 | echo @Bot %s $stats(%s).gathers | inc %x }
- filter -cwwteu 2 32 @Bot @Bot
- if ($ini(Stats.ini,STEAMIDS,0) < %Gather.TopNumber) { var %z = $ini(Stats.ini,STEAMIDS,0) }
- elseif ($ini(Stats.ini,STEAMIDS,0) >= %Gather.TopNumber) { var %z = %Gather.TopNumber }
- msg %Gather.Channel $stlmain(Here are the Top $+ %z %Gather.Color2 $+ Gathers $+ %Gather.Color1 out of $ini(Stats.ini,STEAMIDS,0) known players:)
- while (%z) { .timer -m 1 $calc(%o * 200) msg %Gather.Channel $stlmain($ord(%o) $+ : $+ %Gather.Color2 $Stats($gettok($line(@Bot,%o),1,32)).nick $+ %Gather.Color1 $chr(44) $+ Gathers: $+ %Gather.Color2 $gettok($line(@Bot,%o),2,32)) | inc %o | dec %z }
- :END
- }
- elseif ($1 == Weapon) && ($2) {
- if ($ini(Stats.ini,STEAMIDS,0) == 0) { msg %Gather.Channel $stlmain(There is no current ranking on the gatherbot yet.) | Fld 3 | GOTO END }
- if (!$istok($Weapons,$2,32)) { msg %Gather.Channel $stlmain(There is NO Weapon $+ %Gather.Color2 $2) | Fld 3 | GOTO END }
- .close -@ @Bot | .window -h @Bot | var %x 1, %o 1
- while ($ini(Stats.ini,STEAMIDS,%x)) { var %s = $v1 | echo @Bot %s $stats(%s). [ $+ [ $2 ] ] | inc %x }
- filter -cwwteu 2 32 @Bot @Bot
- if ($ini(Stats.ini,STEAMIDS,0) < %Gather.TopNumber) { var %z = $ini(Stats.ini,STEAMIDS,0) }
- elseif ($ini(Stats.ini,STEAMIDS,0) >= %Gather.TopNumber) { var %z = %Gather.TopNumber }
- msg %Gather.Channel $stlmain(Here are the Top $+ %z %Gather.Color2 $+ $2 $+ %Gather.Color1 out of $ini(Stats.ini,STEAMIDS,0) known players:)
- while (%z) { .timer -m 1 $calc(%o * 200) msg %Gather.Channel $stlmain($ord(%o) $+ : $+ %Gather.Color2 $Stats($gettok($line(@Bot,%o),1,32)).nick $+ %Gather.Color1 $chr(44) $+ Frags: $+ %Gather.Color2 $gettok($line(@Bot,%o),2,32) %Gather.Color1 $+ with $+ %Gather.Color2 $2) | inc %o | dec %z }
- }
- elseif ($1 == 10) {
- if ($ini(Stats.ini,STEAMIDS,0) == 0) { msg %Gather.Channel $stlmain(There is no current ranking on the gatherbot yet.) | Fld 3 | GOTO END }
- Fld 20 | .close -@ @Bot | .window -h @Bot | var %x 1, %o 1
- while ($ini(Stats.ini,STEAMIDS,%x)) { var %s = $v1 | echo @Bot %s $stats(%s).Points | inc %x }
- filter -cwwteu 2 32 @Bot @Bot
- if ($ini(Stats.ini,STEAMIDS,0) < 10) { var %z = $ini(Stats.ini,STEAMIDS,0) }
- elseif ($ini(Stats.ini,STEAMIDS,0) >= 10) { var %z = 10 }
- var %temp1, %temp2
- while (%z) {
- var %steam = $gettok($line(@Bot,%o),1,32)
- if (%o <= 5) { var %temp1 = %temp1 ( $+ $chr(35) $+ %o $+ ) $Stats(%steam).nick ( $+ $stats(%STEAM).points $+ ) }
- else { var %temp2 = %temp2 ( $+ $chr(35) $+ %o $+ ) $Stats(%steam).nick ( $+ $stats(%STEAM).points $+ ) }
- inc %o
- dec %z
- }
- if (%temp1) msg %Gather.Channel $stlmain(%temp1)
- if (%temp2) .timer 1 1 msg %Gather.Channel $stlmain(%temp2)
- :END
- }
- elseif ($1 == admins) {
- Fld 20 | .close -@ @Bot | .window -h @Bot | var %x 1, %o 1
- while ($ini(Access.ini,Access,%x)) { var %s = $v1 | echo @Bot %s $acc(%s).gathers | inc %x }
- filter -cwwteu 2 32 @Bot @Bot
- if ($ini(Access.ini,Access,0) < %Gather.TopNumber) { var %z = $ini(Access.ini,Access,0) }
- elseif ($ini(Access.ini,Access,0) >= %Gather.TopNumber) { var %z = %Gather.TopNumber }
- msg %Gather.Channel $stlmain(Here are the Top $+ %z %Gather.Color2 $+ Admins $+ %Gather.Color1 out of $ini(Access.ini,Access,0) known users:)
- while (%z) { .timer -m 1 $calc(%o * 200) msg %Gather.Channel $stlmain($ord(%o) $+ : $+ %Gather.Color2 $gettok($line(@Bot,%o),1,32) %Gather.Color1 $+ ( $+ $LVLStyled($ACC($gettok($line(@Bot,%o),1,32)).lvl) $+ ) $chr(44) $+ Gathers: $+ %Gather.Color2 $gettok($line(@Bot,%o),2,32)) | inc %o | dec %z }
- :END
- }
- }
- ;/ChangePass <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).gtrinfo2
- .write %file /chan delete $date($1).gtrinfo
- .write %file /subchan $data($1).roomnum $data($1).gtrinfo ¶ $data($1).passa ¶ "OFF "
- 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 $data($1).roomnum $data($1).roomA ¶ $data($1).passa ¶ $replace($data($1).Team-A,$chr(32),$chr(44))
- .write %file /subchan $data($1).roomnum $data($1).roomB ¶ $data($1).passb ¶ $replace($data($1).Team-B,$chr(32),$chr(44))
- .write %file /subchan $data($1).roomnum $data($1).gtrinfo2 ¶ " Map: $data($1).Map Admin: $data($1).Admin " ¶ " 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
- }
- alias ShowReason {
- if ($CheckSteam($1)) var %steam = $1
- else var %steam = $findsteam($1-)
- if (%steam) && ($ini(Banned.ini,%steam)) {
- msg %Gather.Channel $stlmain(%Gather.Color2 $+ %steam %Gather.Color1 $+ ( $+ $Stats(%steam).nick $+ ) $+ %Gather.Color2 Banned by: $+ %Gather.Color1 $readini(Banned.ini,%steam,by) at: $+ %Gather.Color2 $readini(Banned.ini,%steam,at) %Gather.Color1 $+ with reason: $+ %Gather.Color2 $readini(Banned.ini,%steam,Reason) $+ $iif($readini(Banned.ini,%steam,days),$chr(32) %Gather.Color1 $+ timeleft: $+ %Gather.Color2 $duration3($Timeleft($readini(Banned.ini,%steam,at),$readini(Banned.ini,%steam,Days))) $+ .,.))
- }
- else { msg %Gather.Channel $stlmain(The player ( $+ %Gather.Color2 $+ $+ $1- $+ %Gather.Color1 $+ ) is not at the BANNED list.) }
- }
- alias Timeleft { return $duration($calc($ctime($1) + $calc(3600 * 24 * $2) - $ctime)) }
- alias duration3 {
- var %x 1, %temp
- while ($gettok($1-,%x,32)) { if ( (day isin $gettok($1-,%x,32)) || (wk isin $gettok($1-,%x,32)) || (hr isin $gettok($1-,%x,32)) || (mins isin $gettok($1-,%x,32)) ) { var %temp = %temp $gettok($1-,%x,32) } | inc %x }
- return $iif(%temp,%temp,less then 10mins)
- }
- alias TimePassed { return $calc($ctime($date $time) - $ctime($1 $2)) }
- alias CheckBanTimes {
- var %x 1, %temp, %y 1
- while ($ini(Banned.ini,%x)) {
- var %steam = $ini(Banned.ini,%x)
- if ($readini(Banned.ini,%steam,Days)) && ($TimePassed($readini(Banned.ini,%steam,at),$readini(Banned.ini,%steam,days)) > $calc(3600 * 24 * $readini(Banned.ini,%steam,days))) { var %temp = %temp %steam | .timer 1 %y Unban2 %steam | inc %y 20 }
- inc %x
- }
- }
- alias Unban2 { .remini -n Banned.ini $1 | var %x = 1 | while ($ini(Settings.ini,%x)) { .timer 1 %x rcmd %x admin_command admin_unban $1 | inc %x } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement