Im tryng to create an private protection for my comunity , the problem is they work all only one things, this shield containi also an CHAT SCAN for Swear/reclam/etc.
when i type the illegal words in chat, they dont do nothing
only when i type first word they mute me, but the rest of the words not work, i realy dont know why.
the variabile:
Code:
new const g_BlockedWords[ ] [ ] =
{
"first",
"second",
"etc"
};
the code:
Code:
for( new i = 0; i < sizeof( g_BlockedWords ); i++ )
{
if( containi( szSaid, g_BlockedWords[ i ] ) != -1 )
{
CC ( id, TEAM_COLOR, "^1[ ^4UltraCs^1 ] Ai primit mute ^4%i^1 minute pentru ca ai injurat.", num_minute / 60 );
mute[ id ] = true;
set_task( get_pcvar_float( g_pCvars[MUTE_TIME] ), "unmute_sw", id );
return PLUGIN_HANDLED;
}
}
THEY DONT MUTE ME ONLY WHEN I USE THE FIRST WORLD, but rest of the words dont affect me.