View Single Post
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 04-04-2012 , 18:08   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #25

Quote:
Originally Posted by Despirator View Post
but i want to use autobalance but make immunity for certain players
Line 1747
PHP Code:
if (!g_bEnableHnS || !client || !IsClientInGame(client) || GetConVarFloat(g_hCVCTRatio) == 0.0)
{
    return 
Plugin_Continue;

Add this after that line and compile
PHP Code:
if (CheckCommandAccess(client"hns_immunity"ADMFLAG_RESERVATION))
{
    return 
Plugin_Continue;

I'm pretty sure that would work, while still not blocking the "sm_hns_ct_ratio" cvar.

Last edited by minimoney1; 04-04-2012 at 18:10.
minimoney1 is offline