Thread
:
Query cvar from chat
View Single Post
msleeper
Veteran Member
Join Date: May 2008
Location: Atlanta, Jawjuh
08-15-2008 , 18:43 Re: Query cvar from chat
#
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.
__________________
[ Generic ]
Ping Kicker
•
Player Tracker
•
Spawn Kill Retribution
[ TF2 ]
The Hunted Mod
[ L4D ]
Left 4 Dead Coop Stats
msleeper
View Public Profile
Send a private message to msleeper
Visit msleeper's homepage!
Find More Posts by msleeper