View Single Post
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 07-28-2011 , 17:50   Re: [CS:S] Suicide Intercept
Reply With Quote #4

Quote:
Originally Posted by KyleS View Post
Nice plugin. It would be cool if sm_suicideintercept_delaydeathtime was set to 0 that the plugin just blocks the commands.

EDIT: Also, the FindConVar's are kind of wrong since CreateConVar returns a Handle to the ConVar.
have a setting of 0 is a good idea - I'll get that in there.

I'll look at the FindConVar's to see if I can see what you're talking about - I might need a little direction

...:: TnT Edit ::...
Are you talking about this part?:
PHP Code:
    g_pluginEnabled FindConVar("sm_suicideintercept_enabled");
    
g_delay_death_time FindConVar("sm_suicideintercept_delaydeathtime"); 
Should it just be
PHP Code:
g_pluginEnabled CreateConVar("sm_suicideintercept_enabled""1""Is Kill Delay Enabled? 1/0");
g_delay_death_time CreateConVar("sm_suicideintercept_delaydeathtime""7""How many seconds to wait before forcing the suicide on the player who tried to suicide."_true1.0true25.0); 
And I'll put an "if GetConVarInt(g_delay_death_time) is zero then plugin_handled" widget

Last edited by TnTSCS; 07-28-2011 at 17:55.
TnTSCS is offline