Raised This Month: $ Target: $400
 0% 

Hide activity and servercmd.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Decompiler
>:)
Join Date: Mar 2013
Old 05-07-2013 , 15:16   Hide activity and servercmd.
Reply With Quote #1

Is it possible to hide activity [cvars] that I'm sending through server_cmd? While still keeping the show activity on for any cvar changes not executed by the plugin?

Last edited by Decompiler; 05-07-2013 at 15:16.
Decompiler is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 05-07-2013 , 15:35   Re: Hide activity and servercmd.
Reply With Quote #2

server_cmd is for commands, use cvar natives to change cvar values

Last edited by jimaway; 05-07-2013 at 15:35.
jimaway is offline
Decompiler
>:)
Join Date: Mar 2013
Old 05-07-2013 , 15:44   Re: Hide activity and servercmd.
Reply With Quote #3

Oh wow, thanks. I just started learning how to code, and using server_cmd seemed like the best way to do it. But now I see that it would be much better using the set_cvar natives. Thanks.
Decompiler is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-07-2013 , 19:09   Re: Hide activity and servercmd.
Reply With Quote #4

Use only [g|s]et_pcvar_*, don't use [g|s]et_cvar_*
The pointer is the return of register_cvar native, or if the cvar already exist (game or other plugins cvars), use get_cvar_pointer native.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode