Ok, so this is what i've tried to make. Whenever logaddress_del command is called on my server, plugin readds log address. I've never made any amxx plugin so this is my first time trying.
Here's the code:
Code:
public plugin_init(){
register_plugin(PLUGIN, VERSION, AUTHOR);
register_logevent("addlog",5,"3=logaddress_del");
}
public addlog(){
set_cvar_string("logaddress_add","myip myport");
}
First, i've tried adding just sv_restart 1 to addlog, but addlog is never called. I've probably misunderstood register_logevent function. Then i've added logevent from function's example (joining CT) but then only restart worked so i guess set_cvar_string cannot be used for logaddress_add.
By the way, log message looks like this:
Code:
L 02/22/2009 - 20:48:32: Rcon: "rcon 705921411 "rconpass" logaddress_del myip myport" from "sourceip:sourceport"
Anyone willing to help on this ?
Or is this possible to make to be called without using log event ?