Raised This Month: $ Target: $400
 0% 

Block Special Symbols In Names.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Akshat
Senior Member
Join Date: Feb 2013
Location: India, Jaipur.
Old 11-05-2014 , 06:45   Block Special Symbols In Names.
Reply With Quote #1

I got this plugin to block some special symbols in chat but i want it to be blocked in Player Names too,
Thanks in advance
PHP Code:
#include <amxmodx>
#include <colorchat>

new const gBlockTexts[][] = {
    
"",
    
"",
    
"",
    
"",
    
"#",
    
"%"
};

public 
plugin_init() 
{
    
register_plugin("Block Special Symbols""1.0""[~]~[N]o.Ob [K]iLl3r~[~]");
    
    
register_clcmd("say""CmdSay");
    
register_clcmd("say_team""CmdSay");
}

public 
CmdSay(id
{
    new 
args[192];
    
read_args(argscharsmax(args));
    
remove_quotes(args);
    
    for(new 
0sizeof(gBlockTexts); i++) {
        if(
containi(argsgBlockTexts[i]) != -) {
        
ColorChat(idprint_chat"Using ^3Special Symbols ^1is not ^4allowed")
            
        }
        
    }
    
    return 
PLUGIN_CONTINUE;

Akshat is offline
Send a message via Skype™ to Akshat
 



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 17:45.


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