hi i want to change the amdinlisten plugin so to have a command that turns on the adminlisten
orininal link
http://forums.alliedmods.net/showthread.php?t=12728
my litle try was to create the function to change options from a command and to register the cvars but i thing that it will work for all admins if someone turn its off or on
Code:
public set_adminchat(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
new set_chat[4]
read_argv(1, set_chat, 3)
server_cmd("amx_chat The Admin Spectate chat is ^"%s^"", set_chat)
set_cvar_string("amx_chat_admin", set_chat)
server_exec()
return PLUGIN_CONTINUE
}
public plugin_init(){
register_plugin("AdminListen","2.3x","/dev/ urandom")
register_srvcmd("amx_adminlisten_voice","voice_status")
register_event("SayText","catch_say","b")
register_concmd("pro_chat", "set_adminchat", ADMIN_IMMUNITY, "<1/0>")
register_cvar("amx_chat_admin","0",FCVAR_ARCHIVE|FCVAR_PROTECTED)
return PLUGIN_CONTINUE
}
can i change it as it is in theadmin esp plug in that any admin haves his ownes optios???