[QUOTE=OldGoldie;43881317]How can I check if its not 0?[/QUOTE]
print( GetConVarNumber("sv_cheats",0) > 0 )
GetConVar( 'sv_cheats' ):GetBool()
-snip- I was too late...
From the server you'd use player:GetInfoNum("sv_cheats"):GetBool()
edit: actually dont do this
[QUOTE=rejax;43881521]From the server you'd use player:GetInfoNum("sv_cheats"):GetBool()[/QUOTE]
GetInfoNum already returns a number, how do you expect it having metatable with method :GetBool() !?
[QUOTE=ks_uw-the_cat;43881658]GetInfoNum already returns a number, how do you expect it having metatable with method :GetBool() !?[/QUOTE]
because im a dumb person who needs to go find an air conditioner
If you plan to check the values for anti cheat purposes, highly suggest making a timed check to compare your value to the server's, as well as use cvar.addchangecallback so when someone changes it, you'll know.
Sorry, you need to Log In to post a reply to this thread.