Raised This Month: $ Target: $400
 0% 

problem with for() & containi in read chat swears


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
swapped
BANNED
Join Date: Mar 2014
Location: OrpheuRegisterHook
Old 05-27-2014 , 12:02   problem with for() & containi in read chat swears
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (UCSProtection.sma - 661 views - 9.0 KB)

Last edited by swapped; 05-29-2014 at 06:15.
swapped is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode