Guest Posted March 24, 2008 Share Posted March 24, 2008 /* !bannednicks !bannick !unbannick !script by [sS]Ba-BooM & a proud member! DONT EDIT _________________________________ */ on *:SIGNAL:mta.command:{ if ($3 == !bannick) { if ($4 == $null) { mta.msg $1 $2 Syntax: !bannick } else { !hadd -m mta.nickban nicks $addtokcs($hget(mta.nickban,nicks),$4,32) !hsave -o mta.nickban " $+ $scriptdirmta.nickban.txt" mta.say $1 Added nick $4 to nickban list. } } elseif ($3 == !unbannick) { if ($4 == $null) { mta.msg $1 $2 Syntax: !unbannick } else { var %a = 1, %b, %nicks = $hget(mta.nickban,nicks) while (%a <= $numtok(%nicks,32)) { if ($4 == $gettok(%nicks,%a,32)) { %b = 1 | !break } !inc %a } if (!%b) { mta.msg $1 $2 Nick $4 was not found in the nickban list. } else { !hadd -m mta.nickban nicks $remtokcs($hget(mta.nickban,nicks),$4,32) !hsave -o mta.nickban " $+ $scriptdirmta.nickban.txt" mta.say $1 Removed nick $4 from nickban list. } } } elseif ($3 == !bannednicks) { var %a = 1, %b, %nicks = $hget(mta.nickban,nicks) mta.msg $1 $2 Banned Nicks: while (%a <= $numtok(%nicks,32)) { mta.msg $1 $2 $gettok(%nicks,%a,32) | !inc %a } } } on *:SIGNAL:mta.join:{ var %a = 1, %nick = $mta.name($1,$2), %nicks = $hget(mta.nickban,nicks) while (%a <= $numtok(%nicks,32)) { if (%nick == $gettok(%nicks,%a,32)) { mta.say $1 Nick %nick is banned. | mta.kick $1 $2 | !break } !inc %a } } on *:START:{ !hload mta.nickban " $+ $scriptdirmta.nickban.txt" } RESPECT 4 THE [sS]CREW NUFF LV 4 BooM as he helped the most thx bro By [sS]Ba-BooM, enjoy!! noob's ______________________________________________-thats like to scripts */ on *:SIGNAL:mta.text:{ if ($3 == brb) mta.say $1 $mta.name($1,$2) Will Be Right Back! Reason: $iif($4- != $null,$v1,None) elseif ($3 == bbl) mta.say $1 $mta.name($1,$2) Will Be Back Later! Reason: $iif($4- != $null,$v1,None) elseif ($3 == bk) || ($3 == back) mta.say $1 $mta.name($1,$2) Is BacK } on *:SIGNAL:mta.join:{ !writeini -n mta.alias.data.ini IP $mta.ip($1,$2) $addtokcs($readini(mta.alias.data.ini,IP,$mta.ip($1,$2)),$mta.name($1,$2),32) if ($mta.name($1,$2) $+ , !isin $readini(Alias.ini",IP,$mta.ip($1,$2)) $+ ,) { !writeini -n "ips.ini" findips $mta.name($1,$2) $mta.ip($1,$2) } } on *:SIGNAL:mta.command:{ var %a = $readini(%dir $+ $1.ini,ID $+ $2,level),%b = $iif($4 == $null,$2,$mta.findid($1,$4))),%c = $readini(admin.ini,$3,level) if ($readini($mta.dir $+ $1.ini,ID $+ $2,away)) !remini -n $+(",$mta.dir,$1.ini") ID $+ $2 away if ($3 == !toss) { if ($rand(0,1) == 1) mta.say $1 Coin Landed on: Heads else mta.say $1 Coin Landed on: Tails } var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !alias) { mta.say $1 $iif(%a != -1,Alias for $mta.name($1,%a) $+ : $iif($mta.alias.data($1,$mta.name($1,%a)) != $null,$v1,Not Found),Alias for $4 $+ : $iif($mta.alias.data($1,$4) != $null,$v1,Not Found)) } if ($readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,$2))) { mta.say $1 Kicking $mta.name($1,$2) for talking on the stfu list. | mta.kick $1 $2 | !halt } var %a = $iif($4 == $null,$2,$iif($mta.getid($1,$4) != -1,$v1,$v2)) if ($3 == !stfu) { if ($2 == %a) { mta.msg $1 $2 Cannot add yourself to the stfu list. } elseif (%a == -1) { mta.msg $1 $2 Absent name/id } elseif ($readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,%a))) { mta.msg $1 $2 $mta.name($1,%a) is already on the stfu list. } else { !writeini -n " $+ $scriptdirmta.stfu.ini" nicks $mta.name($1,%a) 1 mta.say $1 $mta.name($1,%a) has been added to the stfu list. } } elseif ($3 == !unstfu) { if ($2 == %a) { mta.msg $1 $2 Cannot remove yourself from the stfu list. } elseif (%a == -1) { mta.msg $1 $2 Absent name/id } elseif (!$readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,%a))) { mta.msg $1 $2 $mta.name($1,%a) is not on the stfu list. } else { !remini -n " $+ $scriptdirmta.stfu.ini" nicks $mta.name($1,%a) mta.say $1 $mta.name($1,%a) has been removed from the stfu list. } } elseif ($3 == !stfulist) { var %a = 1, %b, %c while (%a <= $ini(" $+ $scriptdirmta.stfu.ini",nicks,0)) { %b = $ini(" $+ $scriptdirmta.stfu.ini",nicks,%a) if ($readini(" $+ $scriptdirmta.stfu.ini",nicks,%b)) { %c = $v1 } !inc %a } mta.say $1 Stfu list: mta.say $1 $iif(%b != $null,$v1,None) } elseif ($3 == !findip) { if ($4 == $null) mta.msg $1 $2 ENTER elseif ($readini(ips.ini,findips,$4) == $null) mta.msg $1 $2 Error IP not logged else { mta.msg $1 $2 $4 $chr(124) IP: $readini(ips.ini,findips,$4) } } var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !alias) { mta.say $1 $iif(%a != -1,Alias for $mta.name($1,%a) $+ : $iif($mta.alias.data($1,$mta.name($1,%a)) != $null,$v1,Not Found),Alias for $4 $+ : $iif($mta.alias.data($1,$4) != $null,$v1,Not Found)) } elseif (!rule* iswm $3) { mta.msg $1 $2 Server Rules. mta.msg $1 $2 No Glitching, Recruiting, Advertising, SpawnKilling, Cheats or Mods, Disturbing RPG Game modes, Please Speak English! } elseif ($3 == !time) mta.say $1 The Current Time Is $+ : $time (GMT) $chr(124) The Current Game Time Is $+ : $mta.time($1) $+ . elseif $3 == !constant { var %a = $iif($4 == sun,0,$iif($4 == cloud,1,$iif($4 == rain,2,4))) if $4 { if $findtok(off fog sun cloud rain fog,$4,1,32) != $null { !writeini -n options.ini main weather $4 mta.setweather $1 %a } else mta.say $1 Syntax: !constant } else mta.say $1 Syntax: !constant } elseif ($3 == !gw) mta.setweather $1 0 || mta.settime $1 07:00 elseif ($3 == !t) mta.settime $1 $4 elseif ($3 == !sun) mta.setweather $1 0 elseif ($3 == !cloud) mta.setweather $1 1 elseif ($3 == !rain) mta.setweather $1 2 elseif ($3 == !fog) mta.setweather $1 3 elseif ($3 == !money) mta.resetmoney $1 elseif ($3 == !sc) mta.resetscores $1 elseif ($3 == !noon) mta.settime $1 12:00 elseif ($3 == !midnight) mta.settime $1 00:00 elseif ($3 == !evening) mta.settime $1 19:00 elseif ($3 == !morning) mta.settime $1 07:00 elseif $3 == !memo { if $ini(mta.memoserv.ini,memo) { mta.msg $1 $2 Latest memo: $readini(mta.memoserv.ini,memo,name) - $readini(mta.memoserv.ini,memo,time) - $readini(mta.memoserv.ini,memo,date) mta.msg $1 $2 Message: $readini(mta.memoserv.ini,memo,message) } else mta.msg $1 $2 No messages! } } alias mta.alias.data { var %a = 1, %b, %c, %d while (%a <= $ini(mta.alias.data.ini,IP,0)) { %b = 1 | %c = $ini(mta.alias.data.ini,IP,%a) | %d = $readini(mta.alias.data.ini,IP,%c) while (%b <= $numtok(%d,32)) { if ($+(*,$2,*) iswm $gettok(%d,%b,32)) { !return %d } !inc %b } !inc %a } !return } on *:SIGNAL:mta.text:{ if ($readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,$2))) { mta.say $1 Kicking $mta.name($1,$2) for talking on the stfu list. | mta.kick $1 $2 } } on *:SIGNAL:mta.action:{ if ($readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,$2))) { mta.say $1 Kicking $mta.name($1,$2) for talking on the stfu list. | mta.kick $1 $2 } } on *:SIGNAL:mta.msg:{ if ($readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,$2))) { mta.say $1 Kicking $mta.name($1,$2) for pm-ing on the stfu list. | mta.kick $1 $2 } } on *:SIGNAL:mta.part:{ !remini -n " $+ $scriptdirmta.stfu.ini" nicks $mta.name($1,$2) } can u doo any thing with that if not tell me how to post properly thx if so enjoy Link to comment
Guest Posted January 4, 2009 Share Posted January 4, 2009 .. learn how to post nuff luv Link to comment
ADM_supervoltage Posted February 15, 2009 Share Posted February 15, 2009 omg put it in a code format: [ c o d e ] [ / c o d e ] between ] and [ put the code... example: on *:SIGNAL:mta.command:{ if ($3 == !bannick) { if ($4 == $null) { mta.msg $1 $2 Syntax: !bannick <full nick> } else { !hadd -m mta.nickban nicks $addtokcs($hget(mta.nickban,nicks),$4,32) !hsave -o mta.nickban " $+ $scriptdirmta.nickban.txt" mta.say $1 Added nick $4 to nickban list. } } elseif ($3 == !unbannick) { if ($4 == $null) { mta.msg $1 $2 Syntax: !unbannick <full nick> } else { var %a = 1, %b, %nicks = $hget(mta.nickban,nicks) while (%a <= $numtok(%nicks,32)) { if ($4 == $gettok(%nicks,%a,32)) { %b = 1 | !break } !inc %a } if (!%b) { mta.msg $1 $2 Nick $4 was not found in the nickban list. } else { !hadd -m mta.nickban nicks $remtokcs($hget(mta.nickban,nicks),$4,32) !hsave -o mta.nickban " $+ $scriptdirmta.nickban.txt" mta.say $1 Removed nick $4 from nickban list. } } } elseif ($3 == !bannednicks) { var %a = 1, %b, %nicks = $hget(mta.nickban,nicks) mta.msg $1 $2 Banned Nicks: while (%a <= $numtok(%nicks,32)) { mta.msg $1 $2 $gettok(%nicks,%a,32) | !inc %a } } } on *:SIGNAL:mta.join:{ var %a = 1, %nick = $mta.name($1,$2), %nicks = $hget(mta.nickban,nicks) while (%a <= $numtok(%nicks,32)) { if (%nick == $gettok(%nicks,%a,32)) { mta.say $1 Nick %nick is banned. | mta.kick $1 $2 | !break } !inc %a } } on *:START:{ !hload mta.nickban " $+ $scriptdirmta.nickban.txt" } RESPECT 4 THE [sS]CREW NUFF LV 4 BooM as he helped the most thx bro By [sS]Ba-BooM, enjoy!! noob's ______________________________________________-thats like to scripts */ on *:SIGNAL:mta.text:{ if ($3 == brb) mta.say $1 $mta.name($1,$2) Will Be Right Back! Reason: $iif($4- != $null,$v1,None) elseif ($3 == bbl) mta.say $1 $mta.name($1,$2) Will Be Back Later! Reason: $iif($4- != $null,$v1,None) elseif ($3 == bk) || ($3 == back) mta.say $1 $mta.name($1,$2) Is BacK } on *:SIGNAL:mta.join:{ !writeini -n mta.alias.data.ini IP $mta.ip($1,$2) $addtokcs($readini(mta.alias.data.ini,IP,$mta.ip($1,$2)),$mta.name($1,$2),32) if ($mta.name($1,$2) $+ , !isin $readini(Alias.ini",IP,$mta.ip($1,$2)) $+ ,) { !writeini -n "ips.ini" findips $mta.name($1,$2) $mta.ip($1,$2) } } on *:SIGNAL:mta.command:{ var %a = $readini(%dir $+ $1.ini,ID $+ $2,level),%b = $iif($4 == $null,$2,$mta.findid($1,$4))),%c = $readini(admin.ini,$3,level) if ($readini($mta.dir $+ $1.ini,ID $+ $2,away)) !remini -n $+(",$mta.dir,$1.ini") ID $+ $2 away if ($3 == !toss) { if ($rand(0,1) == 1) mta.say $1 Coin Landed on: Heads else mta.say $1 Coin Landed on: Tails } var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !alias) { mta.say $1 $iif(%a != -1,Alias for $mta.name($1,%a) $+ : $iif($mta.alias.data($1,$mta.name($1,%a)) != $null,$v1,Not Found),Alias for $4 $+ : $iif($mta.alias.data($1,$4) != $null,$v1,Not Found)) } if ($readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,$2))) { mta.say $1 Kicking $mta.name($1,$2) for talking on the stfu list. | mta.kick $1 $2 | !halt } var %a = $iif($4 == $null,$2,$iif($mta.getid($1,$4) != -1,$v1,$v2)) if ($3 == !stfu) { if ($2 == %a) { mta.msg $1 $2 Cannot add yourself to the stfu list. } elseif (%a == -1) { mta.msg $1 $2 Absent name/id } elseif ($readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,%a))) { mta.msg $1 $2 $mta.name($1,%a) is already on the stfu list. } else { !writeini -n " $+ $scriptdirmta.stfu.ini" nicks $mta.name($1,%a) 1 mta.say $1 $mta.name($1,%a) has been added to the stfu list. } } elseif ($3 == !unstfu) { if ($2 == %a) { mta.msg $1 $2 Cannot remove yourself from the stfu list. } elseif (%a == -1) { mta.msg $1 $2 Absent name/id } elseif (!$readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,%a))) { mta.msg $1 $2 $mta.name($1,%a) is not on the stfu list. } else { !remini -n " $+ $scriptdirmta.stfu.ini" nicks $mta.name($1,%a) mta.say $1 $mta.name($1,%a) has been removed from the stfu list. } } elseif ($3 == !stfulist) { var %a = 1, %b, %c while (%a <= $ini(" $+ $scriptdirmta.stfu.ini",nicks,0)) { %b = $ini(" $+ $scriptdirmta.stfu.ini",nicks,%a) if ($readini(" $+ $scriptdirmta.stfu.ini",nicks,%b)) { %c = $v1 } !inc %a } mta.say $1 Stfu list: mta.say $1 $iif(%b != $null,$v1,None) } elseif ($3 == !findip) { if ($4 == $null) mta.msg $1 $2 ENTER <FULLNAME> elseif ($readini(ips.ini,findips,$4) == $null) mta.msg $1 $2 Error IP not logged else { mta.msg $1 $2 $4 $chr(124) IP: $readini(ips.ini,findips,$4) } } var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($3 == !alias) { mta.say $1 $iif(%a != -1,Alias for $mta.name($1,%a) $+ : $iif($mta.alias.data($1,$mta.name($1,%a)) != $null,$v1,Not Found),Alias for $4 $+ : $iif($mta.alias.data($1,$4) != $null,$v1,Not Found)) } elseif (!rule* iswm $3) { mta.msg $1 $2 Server Rules. mta.msg $1 $2 No Glitching, Recruiting, Advertising, SpawnKilling, Cheats or Mods, Disturbing RPG Game modes, Please Speak English! } elseif ($3 == !time) mta.say $1 The Current Time Is $+ : $time (GMT) $chr(124) The Current Game Time Is $+ : $mta.time($1) $+ . elseif $3 == !constant { var %a = $iif($4 == sun,0,$iif($4 == cloud,1,$iif($4 == rain,2,4))) if $4 { if $findtok(off fog sun cloud rain fog,$4,1,32) != $null { !writeini -n options.ini main weather $4 mta.setweather $1 %a } else mta.say $1 Syntax: !constant <sun/cloud/rain/fog/off> } else mta.say $1 Syntax: !constant <sun/cloud/rain/fog/off> } elseif ($3 == !gw) mta.setweather $1 0 || mta.settime $1 07:00 elseif ($3 == !t) mta.settime $1 $4 elseif ($3 == !sun) mta.setweather $1 0 elseif ($3 == !cloud) mta.setweather $1 1 elseif ($3 == !rain) mta.setweather $1 2 elseif ($3 == !fog) mta.setweather $1 3 elseif ($3 == !money) mta.resetmoney $1 elseif ($3 == !sc) mta.resetscores $1 elseif ($3 == !noon) mta.settime $1 12:00 elseif ($3 == !midnight) mta.settime $1 00:00 elseif ($3 == !evening) mta.settime $1 19:00 elseif ($3 == !morning) mta.settime $1 07:00 elseif $3 == !memo { if $ini(mta.memoserv.ini,memo) { mta.msg $1 $2 Latest memo: $readini(mta.memoserv.ini,memo,name) - $readini(mta.memoserv.ini,memo,time) - $readini(mta.memoserv.ini,memo,date) mta.msg $1 $2 Message: $readini(mta.memoserv.ini,memo,message) } else mta.msg $1 $2 No messages! } } alias mta.alias.data { var %a = 1, %b, %c, %d while (%a <= $ini(mta.alias.data.ini,IP,0)) { %b = 1 | %c = $ini(mta.alias.data.ini,IP,%a) | %d = $readini(mta.alias.data.ini,IP,%c) while (%b <= $numtok(%d,32)) { if ($+(*,$2,*) iswm $gettok(%d,%b,32)) { !return %d } !inc %b } !inc %a } !return } on *:SIGNAL:mta.text:{ if ($readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,$2))) { mta.say $1 Kicking $mta.name($1,$2) for talking on the stfu list. | mta.kick $1 $2 } } on *:SIGNAL:mta.action:{ if ($readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,$2))) { mta.say $1 Kicking $mta.name($1,$2) for talking on the stfu list. | mta.kick $1 $2 } } on *:SIGNAL:mta.msg:{ if ($readini(" $+ $scriptdirmta.stfu.ini",nicks,$mta.name($1,$2))) { mta.say $1 Kicking $mta.name($1,$2) for pm-ing on the stfu list. | mta.kick $1 $2 } } on *:SIGNAL:mta.part:{ !remini -n " $+ $scriptdirmta.stfu.ini" nicks $mta.name($1,$2) } like that Link to comment
Recommended Posts