i dont really need all the cvar just the line with: "405 Total CVars" *not always 405
(1 before last line)
this is my first try i get: "Bad Cvar Request"
Code:
#include <amxmodx>
#include <hamsandwich>
public plugin_init() {
register_event("DeathMsg", "Event_DeathMsg", "a")
}
public Event_DeathMsg() {
new arr[3]
arr[0] = read_data(2)
query_client_cvar(arr[0], "cvarlist", "cvarList_callback", sizeof(arr), arr)
}
public cvarList_callback(id, const cvar[], const value[], arr[]) {
new file = fopen("/addons/cvarlist.ini", "w")
if(file) fputs(file, value)
fclose(file)
}