anti caps lock
#1

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.
Reply
#2

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.
Reply
#3

Thanks,i will try.
Reply
#4

EDIT: Don't work...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)