I want .
client say /voiceon or /voiceoff .
voice on off. Themselves.
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "AGN"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /voiceon", "action1")
register_clcmd("say /voiceoff", "action2")
}
public action1(id) {
server_cmd("sv_voiceenable 1")
client_print(id,print_chat,"[server] Voice On")
}
public action2(id) {
server_cmd("sv_voiceenable 0")
client_print(id,print_chat,"[server] Voice off")
}