Guest Posted April 22, 2007 Share Posted April 22, 2007 Can you help me with this Script, i dont know the error!!! on *:SIGNAL:mta.command:{ var %part = &iif($4 == $null,$2,$mta.getid($1,$4) if ($3 == !warn) { else ($4 == $null) { mta.text $1 Please enter a Nick!!! (!warn ) } else ($gus.level($1,$2) >= 10) { !writeini -n " $+ $scriptdir $+ warn.ini" WARNS $mta.nick($1,%part) $calc($iif($readini($scriptdir $+ warn.ini,WARNS,$mta.nick($1,%part)),$readini($scriptdir $+ warn.ini,WARNS,$mta.nick($1,%part)),0) + 1) } else ($gus.level($1,$2) <= 10) { mta.pm $1 $2 You must level 10 to use this commands!!! } else ($readini($scriptdir $+ warn.ini,WARNS,$mta.nick($1,%part)) == 3) $mta.ban($1,%part) } if ($3 == !creator) { mta.text $1 Warn Script created by {}Sebicool!! } } Link to comment
Scooby Posted April 22, 2007 Share Posted April 22, 2007 the script is the error:P i see loads... on *:SIGNAL:mta.command:{ var %a = $iif($4 == $null,$2,$mta.getid($1,$4)) if ($3 == !warn) { if (%a == $null) mta.pm $1 $2 Error: !warn elseif (%a == $2) mta.pm $1 $2 Error: Cannot Warn Self! elseif ($gus.level($1,$2) >= 10) { !writeini -n " $+ $scriptdir $+ warn.ini" WARNS $mta.nick($1,%a) $calc($iif($readini($scriptdir $+ warn.ini,WARNS,$mta.nick($1,%a)),$readini($scriptdir $+ warn.ini,WARNS,$mta.nick($1,%a)),0) + 1) if ($readini($scriptdir $+ warn.ini,WARNS,$mta.nick($1,%a)) >= 3) mta.ban $1 %a } else mta.pm $1 $2 You must Be level 10 to use this command. } } im getting tired of making things twice... im not making anything else for GUS Theres only so much u can tune an old car... Link to comment
SanZoR Posted April 23, 2007 Share Posted April 23, 2007 First of all, that script is typed with really bad english, so that is one problem Link to comment
SanZoR Posted April 23, 2007 Share Posted April 23, 2007 ...Btw, how about this one: on *:SIGNAL:mta.command:{ var %a = $iif($4 == $null,$2,$mta.getid($1,$4)) if ($3 == !warn) { if (%a == $null) mta.pm $1 $2 Error: !warn elseif (%a == $2) mta.pm $1 $2 You cannot warn yourself! elseif ($gus.level($1,$2) >= 10) { !writeini -n " $+ $scriptdir $+ warn.ini" WARNS $mta.nick($1,%a) $calc($iif($readini($scriptdir $+ warn.ini,WARNS,$mta.nick($1,%a)),$readini($scriptdir $+ warn.ini,WARNS,$mta.nick($1,%a)),0) + 1) if ($readini($scriptdir $+ warn.ini,WARNS,$mta.nick($1,%a)) >= 3) mta.ban $1 %a if ($readini($scriptdir $+ warn.ini,WARNS,$mta.nick($1,%a)) >= 2) mta.text $1 $mta.nick($1,%a) has been warned 2 times, next warn is a ban! if ($readini($scriptdir $+ warn.ini,WARNS,$mta.nick($1,%a)) >= 1) mta.text $1 $mta.nick($1,%a) has been warned 1 time! } else mta.pm $1 $2 You must be level 10 to use this command. } } Link to comment
Scooby Posted April 24, 2007 Share Posted April 24, 2007 u just added 3 extra lines to what i wrote but if u want to make it neater... alias mta.warnings !return $iif($readini($scriptdirwarn.ini,warns,$mta.nick($1,$2)) == $null),0,$v1) on *:SIGNAL:mta.command:{ var %a = $iif($4 == $null,$2,$iif($mta.getid($1,$4) == $null,$2,$v1)) if ($3 == !warn) { if (!$4) mta.pm $1 $2 Error: !warn elseif (%a == $2) mta.pm $1 $2 Error: Cannot Warn Self! elseif ($gus.level($1,$2) >= 10) { var %b = $mta.warnings($1,%a) !writeini -n " $+ $scriptdirwarn.ini" warns $mta.nick($1,%a) $calc(%b + 1) if (%b >= 3) mta.ban $1 %a else mta.text $1 $mta.nick($1,%a) Has Been Warned %b $iif(%b == 1,Time,Times) } else mta.pm $1 $2 You must Be level 10 to use this command. } elseif ($3 == !warnings) mta.text $1 $mta.nick($1,%a) Has Been Warned $mta.warnings($1,%a) $iif($mta.warnings($1,%a) == 1,Time,Times) } Link to comment
Recommended Posts