I need help
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "cvar Logger"
#define VERSION "1.0"
#define AUTHOR "SweatyBanana"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR).
}
public client_connect(id)
{
if (!is_user_bot(id))
query_client_cvar(id, "mp_timelimit", "resultLog");
}
public resultLog(id, const cvar[], const value[])
{
new name[32];
get_user_name(id, name, 31);
log_amx("Client %d(%s)'s rate is ^"%s^"", id, name, value);
}
EDIT: I thought this would work, but I realized that it wont log who switched a cvar...it will simply check on connect what it is set to..and it doesnt log to an INI lol.