thomeke Posted March 14, 2007 Share Posted March 14, 2007 HI in my prev. message i asked for a '' !shutdown '' script but that doesn't work so lil can you help me with this please . and the second thing i wanna ask you is a clan tag script . the script that if you have a clan and someone that is not added to the member list and he uses the tag he/she get kicked!? to add members you must typ :: !addmember te delete members you must typ: !delmember help me please lil i need it very hard right now Link to comment
lil Toady Posted March 14, 2007 Share Posted March 14, 2007 Here, you only have to add some levels for the commands and change the CLANTAG to your clan tag P.S: Next time use search. Scripts like that have been posted before. on *:SIGNAL:mta.join:{ if (CLANTAG isin $mta.nick($1,$2)) { var %a = 0 while (%a <= $lines($scriptdir $+ members.txt)) { if ($mta.nick($1,$2) == $read($scriptdir $+ members.txt,%a)) !halt !inc %a } mta.text $1 Kicking: $+(',$mta.nick($1,$2),') - imposter. mta.kick $1 $2 } } on *:SIGNAL:mta.command:{ if ($3 == !shutdown) { mta.text $1 Server is being shut down. mta.shutdown $1 } elseif ($3 == !addmember) { if ($4) { mta.text $1 Member $+(',$4,') added. !write " $+ $scriptdir $+ members.txt" $4 } else mta.pm $1 $2 Error - Member name missing } elseif ($3 == !remmember) { if ($4) { var %a = 0 while (%a <= $lines($scriptdir $+ members.txt)) { if ($4 == $read($scriptdir $+ members.txt,%a)) { mta.text $1 Member $+(',$read($scriptdir $+ members.txt,%a),') removed. !write -dl $+ %a " $+ $scriptdir $+ members.txt" !halt } !inc %a } mta.pm $1 $2 Member $+(',$4,') not found } else mta.pm $1 $2 Error - Member name missing } } Link to comment
thomeke Posted March 15, 2007 Author Share Posted March 15, 2007 i have searched the forum but i never find something Link to comment
Recommended Posts