anti caps lock - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: anti caps lock (
/showthread.php?tid=214864)
anti caps lock -
Face9000 - 22.01.2011
Hi,it's annoying reading players writing like horny horses: "HI ALL" - "WASSUP!" - "IDIOT TEAMKILL" and etc.
There is a sort of anti caps lock?
So if players write "BLA BLA" the server will say "Disable caps lock and rewrite".
Thanks.
Re: anti caps lock -
JamesC - 22.01.2011
pawn Код:
stock lowercase( text[ ] )
{
for( new i; i < strlen( text ); i++ )
{
if( text[ i ] != 0x20 && ( text[ i ] > 0x40 || text[ i ] < 0x5B ) ) text[ i ] += 0x20;
}
return text;
}
ASCII
This will convert any upper case characters to lower case, Not tested.
Re: anti caps lock -
Face9000 - 22.01.2011
Thanks,i will try.
Re: anti caps lock -
Face9000 - 22.01.2011
EDIT: Don't work...