on *:TEXT:*:#3CROWN: {
if ($mid($1-,1,$len($trig)) == $trig) {
tokenize 32 $mid($1-,$calc($len($trig) + 1) $+ -)
;; Start Admin Commands ;;
if ($1 == adduser && $ulevel == 5) {
guser 5 $2
notice $nick $2 added to the userlist.
}
if ($1 == deluser && $ulevel == 5) {
ruser $address($2,6)
notice $nick $2 removed from the userlist.
}
if ($1 == set) {
if ($ulevel == 5) {
if ($2 == roster) {
set %roster $3-
notice $nick Roster set to: $3-
}
elseif ($2 == website) {
set %website $3-
notice $nick Website set to: $3-
}
elseif ($2 == sponsors) {
set %sponsors $3-
notice $nick Sponsors set to: $3-
}
elseif ($2 == leagues) {
set %leagues $3-
notice $nick Leagues set to: $3-
}
elseif ($2 == promod) {
set %promod $3-
notice $nick Promod set to: $3-
}
}
else {
notice $nick $noaccess
}
}
;; End Admin Commands ;;
;; Start Public Commands ;;
if ($1 == roster) {
notice $nick $iif(%roster,$v1,You need to set the roster.)
}
elseif ($1 == website) {
notice $nick $iif(%website,$v1,You need to set the website.)
}
elseif ($1 == sponsors) {
notice $nick $iif(%sponsors,$v1,You need to set the sponsors.)
}
elseif ($1 == leagues) {
notice $nick $iif(%leagues,$v1,You need to set the leagues.)
}
elseif ($1 == promod) {
notice $nick $iif(%promod,$v1,You need to set the promod.)
}
elseif ($1 == commands) {
notice $nick -roster -website -sponsors -leagues -promod
}
;; End Public Commands ;;
}
;; Start SpamServ Part ;;
if ($nick isreg #3CROWN && $wildtok($1-,$+($chr(35),*),0,32)) {
cs tb #3CROWN $nick 10m No advertising allowed, as it is against the GameSurge AUP. 10 minute ban.
}
;; End SpamServ Part ;;
}
alias noaccess { return You do not have enough access to use that command. }
alias trig { return - }