Es queryclientvar
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.Variation of this command that doesn't expand variables: es_xqueryclientvar [edit] DescriptionSubmits a query to the userid for the value of the console variable specified. It will return the result of the query in the event es_player_variable. [edit] Parameters
[edit] Examplesevent player_activate { es_queryclientvar event_var(userid) rate es_queryclientvar event_var(userid) cl_updaterate es_queryclientvar event_var(userid) cl_cmdrate } event es_player_variable { if (event_var(status) == "success") do { if (event_var(variable) == "rate") do { if (event_var(value) < 5000) then kickid event_var(userid) } if (event_var(variable) in "cl_updaterate cl_cmdrate") do { if (event_var(value) < 100) then kickid event_var(userid) } } else echo Variable query for event_var(variable) not successful. Status of the var: event_var(status) }
[edit] Notes
[edit] See also |
|
