Raised This Month: $ Target: $400
 0% 

how to edit this chat plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Neon123
Senior Member
Join Date: Jan 2016
Old 03-27-2017 , 18:57   how to edit this chat plugin
Reply With Quote #1

hi , please i need to edit this plugin , I tried but I could not

now this plugin does -> say: 1***

i need to edit the count of numbers alloweds -> say: 1234*****

PHP Code:
#include <amxmodx>
#include <amxmisc>
 
#define PLUGIN    "Block Numbers"
#define AUTHOR    "Jim"
#define VERSION    "1.0"
 
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say""hook")
    
register_clcmd("say_team""hook")
}
 
public 
hook(id)
{
    if(
access(idADMIN_CHAT))
        return 
PLUGIN_CONTINUE
    
    
static cmd[9]
    
read_argv(0cmd8)
    
    static 
speech[192]
    
read_args(speech191)
    
remove_quotes(speech)
    
speech[191] = '^0'
    
    
new ij
    
while(speech[i++])
    {
        if(
'0' <= speech[i] <= '9')
        {
            
speech[i] = '*'
            
j++
        }
    }
    if(!
j)
        return 
PLUGIN_CONTINUE
    
    engclient_cmd
(idcmdspeech)
    return 
PLUGIN_HANDLED

Neon123 is offline
 


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 18:02.


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