Raised This Month: $32 Target: $400
 8% 

block symbols


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 08-08-2020 , 15:49   block symbols
Reply With Quote #1

Hi, how can I block symbols like this: (in chat)
ⓄⒼⒷ
?
is there a plugin that blocks something like this?
thanks!

Last edited by jugule; 08-08-2020 at 18:33.
jugule is offline
SSheriFF
AlliedModders Donor
Join Date: May 2020
Location: Israel
Old 08-08-2020 , 20:58   Re: block symbols
Reply With Quote #2

Quote:
Originally Posted by jugule View Post
Hi, how can I block symbols like this: (in chat)
ⓄⒼⒷ
?
is there a plugin that blocks something like this?
thanks!
Just add every symbol you would like to block like this:
PHP Code:
|| StrContains(sArgs,"YOURSYMBOL",false)!=-
To the if condition below:
PHP Code:
#pragma semicolon 1

#define DEBUG

#define PLUGIN_AUTHOR ""
#define PLUGIN_VERSION "0.00"

#include <sourcemod>
#include <sdktools>

#pragma newdecls required

public Plugin myinfo 
{
    
name "",
    
author PLUGIN_AUTHOR,
    
description "",
    
version PLUGIN_VERSION,
    
url ""
};

public 
Action OnClientSayCommand(int client, const char[] command, const char[] sArgs)
{
    if(
StrContains(sArgs,"Ⓑ",false)!=-|| StrContains(sArgs,"Ⓞ",false)!=-|| StrContains(sArgs,"Ⓖ",false)!=-1)
        return 
Plugin_Handled;
    return 
Plugin_Continue;

__________________
Taking small private requests (Free) and big private requests (Paid).
Contact me via Discord: WilDick#1524

My Plugins:
SSheriFF is offline
jugule
AlliedModders Donor
Join Date: Apr 2020
Old 08-09-2020 , 10:08   Re: block symbols
Reply With Quote #3

For example, if I block all these ascii codes, those symbols should also be blocked automatically, I think?
I mean everything here https://www.ascii-code.com/
genre, all non-printable characters to be stopped.
Symbols such as:
https://i.imgur.com/lZHfiCp.png
jugule is offline
SSheriFF
AlliedModders Donor
Join Date: May 2020
Location: Israel
Old 08-09-2020 , 10:26   Re: block symbols
Reply With Quote #4

Quote:
Originally Posted by jugule View Post
For example, if I block all these ascii codes, those symbols should also be blocked automatically, I think?
I mean everything here https://www.ascii-code.com/
genre, all non-printable characters to be stopped.
Symbols such as:
https://i.imgur.com/lZHfiCp.png
Just give it a try I really don't know
__________________
Taking small private requests (Free) and big private requests (Paid).
Contact me via Discord: WilDick#1524

My Plugins:
SSheriFF is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 08-11-2020 , 08:28   Re: block symbols
Reply With Quote #5

Don't forget if you put to your code pure utf-8 symbols instead of their code representations, the file should be saved in UT8 without BOM
kadet.89 is offline
Send a message via Skype™ to kadet.89
Reply



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 03:12.


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