AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hide activity and servercmd. (https://forums.alliedmods.net/showthread.php?t=215417)

Decompiler 05-07-2013 15:16

Hide activity and servercmd.
 
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?

jimaway 05-07-2013 15:35

Re: Hide activity and servercmd.
 
server_cmd is for commands, use cvar natives to change cvar values

Decompiler 05-07-2013 15:44

Re: Hide activity and servercmd.
 
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.

ConnorMcLeod 05-07-2013 19:09

Re: Hide activity and servercmd.
 
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.


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

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