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

Solved Anti Tag Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
JuanitoAlimana
Senior Member
Join Date: Aug 2021
Old 09-23-2022 , 20:39   Anti Tag Plugin
Reply With Quote #1

This plugins blocks players with certain names from entering the server. The problem is that I can't block certain weird characters in UTF8 such as small letters or signs (ᴹ*ᴶ*ᴶ*ᴸ) (Δ). Is there a way to add these "weird" characters to the language of the plugin? Thanks!

PHP Code:
#include <amxmodx>

#define PLUGIN  "Name Contain"
#define VERSION "1.0"
#define AUTHOR  "Ale"

new const Contenido[][]=
{
    
"CS Player |"
    
"HOL |",
    
"CHIno} |"
}

public 
plugin_init()

    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_putinserver(id)
{
    new 
name[32];
    
get_user_name(idnamecharsmax(name))

    for(new 
0<sizeof Contenidoi++)
    {
        if(
containi(nameContenido[i]) != -1)
        {
            
server_cmd("kick ^"#%d^" 'Anti TAG'", get_user_userid(id))
        
}
    }


Last edited by JuanitoAlimana; 09-25-2022 at 03:36.
JuanitoAlimana is online now
Old 09-23-2022, 21:58
000
This message has been deleted by 000.
JuanitoAlimana
Senior Member
Join Date: Aug 2021
Old 09-23-2022 , 22:54   Re: Anti Tag Plugin
Reply With Quote #2

I have tried them all and none of them work in the same way, third one doesn't work at all.
JuanitoAlimana is online now
Old 09-23-2022, 23:37
000
This message has been deleted by 000.
JuanitoAlimana
Senior Member
Join Date: Aug 2021
Old 09-25-2022 , 03:36   Re: Anti Tag Plugin
Reply With Quote #3

Solved. I edited the code in EmEditor using UTF-8 without BOM and compiled locally. Works wonderfully!
JuanitoAlimana is online now
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 00:42.


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