View Single Post
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
Old 08-15-2008 , 18:43   Re: Query cvar from chat
Reply With Quote #7

Use GetConVarInt and a Format. What the code Hamster quoted is using a programming trick; since GetConVarInt(ff) returns 1 when it is on, and since 1 is interpreted as "true", the first console string is printed. When it is off, set to 0, and interpreted as "false", the second string is printed.
__________________
msleeper is offline