PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "SAY"
#define VERSION "1.0"
#define AUTHOR "ProIcons"
public plugin_init() {
register_plugin(PLUGIN,VERSION,AUTHOR)
register_clcmd("amx_say","amx_say")
register_clcmd("say","halt")
register_cvar("mp_allowsay","1")
}
public say(id)
{
if (get_cvar_num("mp_allowsay") == 0)
{
new message2[192]
read_args(message2, 191)
remove_quotes(message2)
client_print(id, print_chat, "(Say)You May Not speak with command say... Text Imunned: %s", message2);
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}
public amx_say(id,level,cid)
{
if (cmd_access(id, level, cid, 2))
{
if (get_cvar_num("mp_allowsay") == 0)
{
set_cvar_num("mp_allowsay",1);
console_print(id,"(Say) Now all users can speek in the server");
return PLUGIN_HANDLED;
}
else if (get_cvar_num("mp_allowsay") == 1)
{
set_cvar_num("mp_allowsay",0);
console_print(id,"(Say) Now noone can speek in the server");
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
return PLUGIN_HANDLED;
}
CODE IS EDITED PLEASE RE CHECK IT
__________________
function rb return $regsubex($$1-,/(.)/g,$+($chr(2) $+ $chr(3),$r(2,15),$chr(2),\1))