Es getclientvar
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_xgetclientvar [edit] DescriptionObtains a network-related console variable for the particular userid and stores it in server-variable. [edit] Parameters
[edit] Examplesplayer_activate.cfg es_setinfo checkvar 0 es_getclientvar checkvar event_var(userid) rate es_msg event_var(es_username) has joined and has their "rate" set to server_var(checkvar) other example: in player_activate.cfg es_setinfo checkvar 0 es_getclientvar checkvar event_var(userid) cl_language if (server_var(checkvar) = "french") then es_tell event_var(userid) "Bonjour et bienvenue" if (server_var(checkvar) = "english") then es_tell event_var(userid) "Hello and welcome" Give you the language of the game used by the player (english, french, german, italian...)
[edit] Notes
[edit] See also |
