AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   is there way get count of client cvarlist ? (https://forums.alliedmods.net/showthread.php?t=332879)

nacknic 06-06-2021 03:53

is there way get count of client cvarlist ?
 
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)
}


jimaway 06-06-2021 07:38

Re: is there way get count of client cvarlist ?
 
that's not possible


All times are GMT -4. The time now is 02:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.