Guest Posted October 8, 2006 Share Posted October 8, 2006 i need a stfu script for mta:vc Link to comment
lil Toady Posted October 8, 2006 Share Posted October 8, 2006 i need a stfu script for mta:vc bleh, you could maybe say please or something.. So you ask us, uber 1337 scripters, to write you a little newb a !stfu script, here you go.. on *:SIGNAL:mta.command:{ var %a = $iif($4,$iif($mta.name($1,$4) != Unknown,$4,$mta.getid($1,$4)),$2) if ($readini($scriptdir $+ stfu.ini,STFULIST,$mta.name($1,$2))) { mta.say $1 $2 Kicking $mta.name($1,$2) for talking while on stfu list! mta.kick $1 $2 } elseif ($3 == !stfu) { if (%a == -1) mta.msg $1 $2 Error - Absent ID elseif (%a == $2) mta.msg $1 $2 Error - Can't stfu yourself else { mta.say $1 $mta.name($1,%a) has been added to the STFU list! $iif($5,Reason: $5-) mta.msg $1 %a If you talk while on STFU list, you will be kicked! !writeini -n " $+ $scriptdir $+ stfu.ini" STFULIST $mta.name($1,%a) 1 } } elseif ($3 == !unstfu) { if (%a == -1) mta.msg $1 $2 Error - Absent ID elseif (!$readini($scriptdir $+ stfu.ini,STFULIST,$mta.name($1,%a))) mta.msg $1 $2 Error - $mta.name($1,%a) is not on the stfu list. else { mta.say $1 $mta.name($1,%a) has been removed from the stfu list! !remini " $+ $scriptdir $+ stfu.ini" STFULIST $mta.name($1,%a) } } } on *:SIGNAL:mta.action:{ if ($readini($scriptdir $+ stfu.ini,STFULIST,$mta.name($1,$2))) { mta.say $1 $2 Kicking $mta.name($1,$2) for talking while on stfu list! mta.kick $1 $2 } } on *:SIGNAL:mta.text:{ if ($readini($scriptdir $+ stfu.ini,STFULIST,$mta.name($1,$2))) { mta.say $1 $2 Kicking $mta.name($1,$2) for talking while on stfu list! mta.kick $1 $2 } } on *:SIGNAL:mta.pm:{ if ($readini($scriptdir $+ stfu.ini,STFULIST,$mta.name($1,$2))) { mta.say $1 $2 Kicking $mta.name($1,$2) for talking while on stfu list! mta.kick $1 $2 } } Link to comment
Recommended Posts