HouseMD Posted May 27, 2007 Posted May 27, 2007 on *:SIGNAL:mta.command: { Check.upper $1- } on *:SIGNAL:mta.text: { check.upper $1- } alias check.upper { if ($isupper($3-) == $true) { if ($left($3-,3) != $3-) { if ($readini(caps.ini,Caps,$2) == $null) { mta.pm $1 $2 You forgot ur caps lock on! !writeini -n caps.ini caps $2 0 } elseif ($readini(caps.ini,caps,$2) == 0) { mta.pm $1 $2 You Forgot ur caps lock on! 1st warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 1) { mta.pm $1 $2 You Forgot ur caps lock on! 2nd warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 2) { mta.pm $1 $2 You Forgot ur caps lock on! 3rd and last warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 3) { mta.pm $1 $2 You will now be muted for 2 minutes! !remini -n caps.ini caps $2 mta.mute $1 $2 .timer 1 120 mta.unmute $1 $2 } } } } on *:SIGNAL:mta.part: { !remini -n caps.ini caps $2 } Always Remember, Everyone Lies and Trust No-one
JB_frozen Posted May 27, 2007 Posted May 27, 2007 there was already a posted script from lil toady : on *:SIGNAL:mta.text:{ if ($len($3-) > 10) && ($calc($len($3-) - $len($removecs($3-,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z))) >= $calc($len($3-) * 0.7)) { !writeini -n $+(",$mta.dir,$1.ini,") $2 warnings $calc($readini($mta.dir $+ $1.ini,$2,warnings) + 1) var %a = $readini($mta.dir $+ $1.ini,$2,warnings) if (%a >= 3) { mta.text $1 $mta.nick($1,$2) reached the warnings limit and will be muted! (Too much caps used) mta.mute $1 $2 } else mta.text $1 $mta.nick($1,$2) has been warned! $calc(3 - %a) more $iif($calc(3 - %a) == 1,warning,warnings) and he will be Muted! (too much caps used) } }
HouseMD Posted May 27, 2007 Author Posted May 27, 2007 That script never worked for me Always Remember, Everyone Lies and Trust No-one
DJScripts Posted June 29, 2007 Posted June 29, 2007 there was already a posted script from lil toady : on *:SIGNAL:mta.text:{ if ($len($3-) > 10) && ($calc($len($3-) - $len($removecs($3-,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z))) >= $calc($len($3-) * 0.7)) { !writeini -n $+(",$mta.dir,$1.ini,") $2 warnings $calc($readini($mta.dir $+ $1.ini,$2,warnings) + 1) var %a = $readini($mta.dir $+ $1.ini,$2,warnings) if (%a >= 3) { mta.text $1 $mta.nick($1,$2) reached the warnings limit and will be muted! (Too much caps used) mta.mute $1 $2 } else mta.text $1 $mta.nick($1,$2) has been warned! $calc(3 - %a) more $iif($calc(3 - %a) == 1,warning,warnings) and he will be Muted! (too much caps used) } } That script is not from lil toady Thats Kesler2005 his script
lil Toady Posted June 29, 2007 Posted June 29, 2007 That script is not from lil toady Thats Kesler2005 his script erm?.. Do not PM me, im not going to read it anyway.
Scooby Posted July 4, 2007 Posted July 4, 2007 well i saw it long before toady knew how to script [UVA]Scooby Founder Of UVA - Ultimate Vice Assassins http://www.uvaclan.com/
PacMaan Posted July 4, 2007 Posted July 4, 2007 WHAT DOES THIS DO?????? Watch or Download My MTASA Movie AiRPoRT DoGFiGHT - click HERE
Scooby Posted July 4, 2007 Posted July 4, 2007 it calculates a percentage of capital letters from the text. this can be changed to what u like (currently 0.7), its also set to a minimum of 10 characters before it works, which can also be changed. [UVA]Scooby Founder Of UVA - Ultimate Vice Assassins http://www.uvaclan.com/
PacMaan Posted July 6, 2007 Posted July 6, 2007 it calculates a percentage of capital letters from the text.this can be changed to what u like (currently 0.7), its also set to a minimum of 10 characters before it works, which can also be changed. Awesome, like the minimum part - so i can still be like OMG and WTF and STFU and stuff. Juicy. Watch or Download My MTASA Movie AiRPoRT DoGFiGHT - click HERE
johankung Posted July 7, 2007 Posted July 7, 2007 on *:SIGNAL:mta.command: { Check.upper $1- } on *:SIGNAL:mta.text: { check.upper $1- } alias check.upper { if ($isupper($3-) == $true) { if ($left($3-,3) != $3-) { if ($readini(caps.ini,Caps,$2) == $null) { mta.pm $1 $2 You forgot ur caps lock on! !writeini -n caps.ini caps $2 0 } elseif ($readini(caps.ini,caps,$2) == 0) { mta.pm $1 $2 You Forgot ur caps lock on! 1st warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 1) { mta.pm $1 $2 You Forgot ur caps lock on! 2nd warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 2) { mta.pm $1 $2 You Forgot ur caps lock on! 3rd and last warning! !writeini -n caps.ini caps $2 $calc($readini(caps.ini,Caps,$2) + 1) } elseif ($readini(caps.ini,caps,$2) == 3) { mta.pm $1 $2 You will now be muted for 2 minutes! !remini -n caps.ini caps $2 mta.mute $1 $2 .timer 1 120 mta.unmute $1 $2 } } } } on *:SIGNAL:mta.part: { !remini -n caps.ini caps $2 } can you make tha if admins talk with caps they dont get warnings plz (i mean that if admins talks th caps lock it is ok so they dont get muted)
Scooby Posted July 7, 2007 Posted July 7, 2007 just change: on *:SIGNAL:mta.command: { Check.upper $1- } on *:SIGNAL:mta.text: { check.upper $1- } to on *:SIGNAL:mta.command: { if ($prs.level($1,$2) < 1) Check.upper $1- } on *:SIGNAL:mta.text: { if ($prs.level($1,$2) < 1) check.upper $1- } if ur using GUS, change the letters 'prs' to 'gus' i think that should do u [UVA]Scooby Founder Of UVA - Ultimate Vice Assassins http://www.uvaclan.com/
johankung Posted July 8, 2007 Posted July 8, 2007 ty it worked (im not good at makin script and that sort of stuff)
Recommended Posts