Originally Posted by
voron00
PHP Code:
self setClientCvar("ui_stats_kills", self.kills);
And then use this cvar in your menus, just look how its done in serverinfo menus ( I would have given you an example code but i only will be home tomorrow ).
Originally Posted by
IzNoGoD
Replace the text part of an itemdef with cvar/dvar (not sure which one, try both), with value [the dvar you want to show], like:
PHP Code:
dvar cl_showthisdvarplox
It works!
I set various itemDefs with various dvars and then used those dvars in the setclientcvar func
PHP Code:
itemDef
{
name "stats_headshots"
group ingamebox
visible 1
rect 60 68 0 0
origin ORIGIN_QUICKMESSAGEWINDOW
dvar "ui_stats_headshots"
forecolor 0 1 0 1
textfont UI_FONT_NORMAL
textscale .24
textaligny 8
decoration
}
and in .gsc, as you guys said:
PHP Code:
self setclientcvar("ui_stats_headshots", headshots)
Thanks a lot!!