commands
#2

Under the command assign a bool array for the player to true
pawn Код:
g_bMyBool[ targetid ] = true;
Then check if that bool is set under OnPlayerText, and loop through the string and use https://sampwiki.blast.hk/wiki/Tolower to set each character to lowercase:
pawn Код:
if( g_bMyBool[ playerid ] )
{
    for( new i = 0, j = strlen( text ); i != j; i ++ ) //128 is maximum chat output
    {
        Tolower( text[ i ] );
    }
}
You obviously need to declare and name that bool array all by yourself, but I'm sure you can handle it, as I don't believe you don't have any knowledge at all.
Reply


Messages In This Thread
commands - by pelani - 06.02.2013, 20:16
Re: commands - by LarzI - 06.02.2013, 20:43
Re: commands - by pelani - 06.02.2013, 21:10
Re: commands - by LarzI - 06.02.2013, 21:14
Re: commands - by Jeffry - 06.02.2013, 21:20
Re: commands - by LarzI - 06.02.2013, 21:24
Re: commands - by Jeffry - 06.02.2013, 21:26
Re: commands - by LarzI - 06.02.2013, 21:27
Re: commands - by pelani - 06.02.2013, 22:13
Re: commands - by LarzI - 06.02.2013, 22:23

Forum Jump:


Users browsing this thread: 1 Guest(s)