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(PLUGIN, VERSION, AUTHOR)
register_clcmd("say", "hook")
register_clcmd("say_team", "hook")
}
public hook(id)
{
if(access(id, ADMIN_CHAT))
return PLUGIN_CONTINUE
static cmd[9]
read_argv(0, cmd, 8)
static speech[192]
read_args(speech, 191)
remove_quotes(speech)
speech[191] = '^0'
new i, j
while(speech[i++])
{
if('0' <= speech[i] <= '9')
{
speech[i] = '*'
j++
}
}
if(!j)
return PLUGIN_CONTINUE
engclient_cmd(id, cmd, speech)
return PLUGIN_HANDLED
}