AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved need result from cvarlist (https://forums.alliedmods.net/showthread.php?t=334316)

hamusnotgood 09-15-2021 07:17

need result from cvarlist
 
Code:

#include <amxmodx>
public plugin_init() {
        register_event("DeathMsg", "Event_DeathMsg", "a")
}
public Event_DeathMsg() {
        new id = read_data(2)
        client_cmd(id, "cvarlist")
}

i need after i run cvarlist on client some of result:
cvarlist(not sure if its possible) or total cvars(in numbers) or even something that return if it succeed (that point that cvarlist found results on client side)
im familar with query_client_cvar (in cvarlist its return bad request)

Shadows Adi 09-15-2021 07:55

Re: need result from cvarlist
 
You can use query_client_cvar to get the value of passed cvar.

hamusnotgood 09-15-2021 07:57

Re: need result from cvarlist
 
Quote:

Originally Posted by Shadows Adi (Post 2757820)
You can use query_client_cvar to get the value of passed cvar.

i know this but for cvarlist its not work! bad request

hamusnotgood 09-15-2021 08:05

Re: need result from cvarlist
 
Quote:

Originally Posted by hamusnotgood (Post 2757816)
Code:

#include <amxmodx>
public plugin_init() {
        register_event("DeathMsg", "Event_DeathMsg", "a")
}
public Event_DeathMsg() {
        new id = read_data(2)
        client_cmd(id, "cvarlist")
}

i need after i run cvarlist on client some of result:
cvarlist(not sure if its possible) or total cvars(in numbers) or even something that return if it succeed (that point that cvarlist found results on client side)

im familar with query_client_cvar (in cvarlist its return bad request)

Shadows Adi 09-15-2021 08:26

Re: need result from cvarlist
 
"cvarlist" returns a list in player console, so, I don't think you can retrieve that.


All times are GMT -4. The time now is 00:56.

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