fix rainbow lennies
This commit is contained in:
		
							parent
							
								
									5924862748
								
							
						
					
					
						commit
						c33b9284a3
					
				@ -9,14 +9,14 @@
 | 
			
		||||
 | 
			
		||||
bool g_bHideLennies[MAXPLAYERS + 1] = { false, ... };
 | 
			
		||||
 | 
			
		||||
char g_cLennies[20][] = {"( ͡° ͜ʖ ͡°)", "͜ʖ", "(° ͜ʖ °)", "( ͝͠°͜ل͝͠°)", "( ͡° ͜ ͡°)", "( ͡°╭͜ʖ╮͡° )", "( ͠° ͜ʖ ͡°)", "( ° ͜ʖ °)", "(╯°□°)╯", "_(ツ)_", "_ツ_", "( ̿°̿ ͜ل͜ ̿°̿ )", "( ͡", "( ͠", "( ͝", "( °", "(͡", "ಠ_ಠ", "͡°", "°͡"};
 | 
			
		||||
char g_cLennies[23][] = {"( ͡° ͜ʖ ͡°)", "͜ʖ", "(° ͜ʖ °)", "( ͝͠°͜ل͝͠°)", "( ͡° ͜ ͡°)", "( ͡°╭͜ʖ╮͡° )", "( ͠° ͜ʖ ͡°)", "( ° ͜ʖ °)", "(╯°□°)╯", "_(ツ)_", "_ツ_", "( ̿°̿ ͜ل͜ ̿°̿ )", "( ͡", "( ͠", "( ͝", "( °", "(͡", "ಠ_ಠ", "͡°", "°͡", "ʖ", "͡", "͜"};
 | 
			
		||||
 | 
			
		||||
public Plugin myinfo =
 | 
			
		||||
{
 | 
			
		||||
	name = "AntiLenny",
 | 
			
		||||
	author = "Dogan",
 | 
			
		||||
	description = "Makes it possible to selfmute Lennies",
 | 
			
		||||
	version = "1.1.0",
 | 
			
		||||
	version = "1.2.0",
 | 
			
		||||
	url = ""
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -27,14 +27,14 @@ public void OnPluginStart()
 | 
			
		||||
 | 
			
		||||
public Action CCC_OnChatMessage(int client, int author, const char[] message)
 | 
			
		||||
{
 | 
			
		||||
	char buffer[192];
 | 
			
		||||
	strcopy(buffer, sizeof(buffer), message);
 | 
			
		||||
	char lennies[192];
 | 
			
		||||
	strcopy(lennies, sizeof(lennies), message);
 | 
			
		||||
 | 
			
		||||
	CRemoveTags(buffer, 192);
 | 
			
		||||
	CRemoveTags(lennies, 192);
 | 
			
		||||
 | 
			
		||||
	for(int i = 0; i < 20; i++)
 | 
			
		||||
	for(int i = 0; i < 23; i++)
 | 
			
		||||
	{
 | 
			
		||||
		if(g_bHideLennies[client] && StrContains(buffer, g_cLennies[i], false) != -1)
 | 
			
		||||
		if(g_bHideLennies[client] && StrContains(lennies, g_cLennies[i], false) != -1)
 | 
			
		||||
		{
 | 
			
		||||
			return Plugin_Handled;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user