Raised This Month: $60 Target: $400
 15% 

Automatic ban racist peoples


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MarcusCardoso
Junior Member
Join Date: Jan 2020
Old 03-06-2020 , 18:20   Automatic ban racist peoples
Reply With Quote #1

I need a plugin that automatically bans someone who is racist by chat
MarcusCardoso is offline
Sajmooooon
Senior Member
Join Date: Nov 2018
Location: Slovakia
Old 03-06-2020 , 18:47   Re: Automatic ban racist peoples
Reply With Quote #2

https://forums.alliedmods.net/showpo...&postcount=180
https://forums.alliedmods.net/showthread.php?t=71867
Sajmooooon is offline
xtance
Junior Member
Join Date: Feb 2018
Old 03-26-2020 , 14:09   Re: Automatic ban racist peoples
Reply With Quote #3

Use OnClientSayCommand forward:
Code:
public Action OnClientSayCommand(int iClient, const char[] command, const char[] sArgs)
{
	if ((StrContains(sArgs,"despite",false) != -1)
	|| (StrContains(sArgs,"being",false) != -1)
	|| (StrContains(sArgs,"only",false) != -1)
	|| (StrContains(sArgs,"13% of",false) != -1)
	|| (StrContains(sArgs,"population",false) != -1)){
		//ban player code depends on ban system..
		return Plugin_Handled;
	}
	else return Plugin_Continue;
}

Last edited by xtance; 03-26-2020 at 14:13.
xtance is offline
Reply


Thread Tools
Display Modes

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 05:47.


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