View Single Post
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 03-04-2013 , 21:50   Re: [CS:S] Mute/Unmute All Non-Admins
Reply With Quote #2

use checkcommandaccess, don't check flags/flagbits
use replytocommand instead of printtochat for stuff like this, it's going back to 1 person anyways
you don't need to initialize idx outside of the for loop
you don't need autoexecconfig, you have no cvars worth saving/checking, and it would only cause problems.
for version tracking, I think you are supposed to use these flags: FCVAR_REPLICATED|FCVAR_NOTIFY|FCVAR_PLUGIN|FC VAR_SPONLY

also, using this type of thing, you may sometimes target admins that have not fully authenticated, but that's rare, as they usually authenticated quickly/are cached.
friagram is offline