This is a mix script i made for a friend, it works perfect, all cmds are above the script, please dont change it, apart from colours :), thx, hf with it, btw it only supports 5 players! :D
;#######Mix Script V.01################
;###Made By Sw1ft @ 9:49PM##############
;###On Monday, Map 09 2005##############
;##Copyright(c) 2005 @ #United-Kingdom######
;###Have Fun With It, Commands Below.#######
;commands
;OPS ONLY
;$start to start it
;$stop to stop it
;!map <map>
;!server <ip>
;msg <bot> password <password>
;
;Normal Users
;!add
;!remove
;!team
on 1:LOAD:{
set %mix.channel $$?="Enter you Mix Channel"
set %mix.Default $$?="Enter Your Defualt Topic"
set %mix.vent $$?="Enter Vent IP:PORT I.E: 234.56.32.34:2345"
unset %team
unset %mix.count
set %mix.map None
set %mix.server None
set %mix.players 5
}
on 1:TEXT:$($!Start):%mix.channel:{
if ($nick isop $chan) {
if (%mix == on) { notice $nick Mix Allready Active $nick $+ .
}
else {
set %mix on
set %mix.admin $nick
topic $chan 1,0[Mix Started ][ Map: %mix.map ][ Server: %mix.server ][ Team: %team ][ Vent: %mix.vent ]
notice $nick You Now Need To Set Map And Server And Server PASSWORD
notice $nick !map <Map Name> To Set Map.
notice $nick !server <Server IP> To Set The Server IP.
notice $nick Use, /msg $me password <password> To set the password to the server.
halt
}
}
}
on 1:TEXT:!map *:%mix.channel:{
if ($nick == %mix.admin) {
set %mix.map $2
topic $chan 1,0[Mix Started ][ Map: %mix.map ][ Server: %mix.server ][ Team: %team ][ Vent: %mix.vent ]
notice $nick Map Is Set To $2
halt
}
}
on 1:TEXT:!Server *:%mix.channel:{
if ($nick == %mix.admin) {
set %mix.server $2
topic $chan 1,0[Mix Started ][ Map: %mix.map ][ Server: %mix.server ][ Team: %team ][ Vent: %mix.vent ]
notice $nick Server Is Set To $2
halt
}
}
on 1:TEXT:$($!stop):%mix.channel:{
if ($nick == %mix.admin) {
topic $chan %mix.default
set %mix.map None
set %mix.server None
unset %mix.count
unset %team
unset %mix.admin
set %mix OFF
notice $nick Mix Has Been Stopped.
halt
}
}
on *:text:!add*:%mix.channel:{
if (%mix != on) { halt
}
else {
inc %mix.count
if ($istok(%team, $nick, 32)) { notice $nick You're already In Th Mix.
return
}
else {
if (%mix.count == %mix.players) {
timer 1 1 mode %mix.channel +m
timer 1 2 topic %mix.channel %mix.default
getip
timer 1 3 msg %mix.channel If you didnt get pass contact the admin: %mix.admin
set %mix off
set %team 0
set %mix.map 0
set %mix.server 0
set %mix.password 0
timer 1 5 mode %mix.channel -m
}
else {
set %team $addtok(%team, $nick, 32)
topic $chan 1,0[Mix Started ][ Map: %mix.map ][ Server: %mix.server ][ Team: %team ][ Vent: %mix.vent ]
halt
}
}
}
}
on 1:TEXT:!remove:%mix.channel:{
if ($istok(%team, $nick, 32)) {
dec %mix.count
set %team $remtok(%team, $nick, 32)
topic $chan 1,0[Mix Started ][ Map: %mix.map ][ Server: %mix.server ][ Team: %team ][ Vent: %mix.vent ]
notice $nick Done.
halt
}
else { notice $nick You Are Not In The Team.
}
}
on 1:TEXT:!team:%mix.channel:{
if (%mix) {
msg $chan Current Mix Team: %team
halt
}
else { halt
}
}
alias getip {
var %d = 1
while (%d <= $numtok(%team,32)) {
msg $gettok(%team, %d, 32) [- Mix Has Now Started ][Server: %mix.server ][IP: password ][ If There Is No Details Here, Please Conatct: %mix.admin ][ Please Join Server Now, Thx ]
inc %d
}
}
on 1:TEXT:password*:?:{
if (%mix.admin == $nick) {
if ($nick isop %mix.channel) {
set %password $2
notice $nick Password Has Been Set.
}
}
}
on 1:PART:%mix.channel:{
if ($nick isin $istok(%team, $nick, 32)) {
set %team $remtok(%team, $nick, 32)
topic $chan 1,0[Mix Started ][ Map: %mix.map ][ Server: %mix.server ][ Team: %team ][ Vent: %mix.vent ]
halt
}
}
on 1:KICK:%mix.channel:{
if ($nick isin $istok(%team, $nick, 32)) {
set %team $remtok(%team, $nick, 32)
topic $chan 1,0[Mix Started ][ Map: %mix.map ][ Server: %mix.server ][ Team: %team ][ Vent: %mix.vent ]
halt
}
}
on 1:BAN:%mix.channel:{
if ($nick isin $istok(%team, $nick, 32)) {
set %team $remtok(%team, $nick, 32)
topic $chan 1,0[Mix Started ][ Map: %mix.map ][ Server: %mix.server ][ Team: %team ][ Vent: %mix.vent ]
halt
}
}
on 1:QUIT:{
if ($nick isin $istok(%team, $nick, 32)) {
set %team $remtok(%team, $nick, 32)
topic $chan 1,0[Mix Started ][ Map: %mix.map ][ Server: %mix.server ][ Team: %team ][ Vent: %mix.vent ]
halt
}
}