Quote:
Originally Posted by KyleS
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.", _, true, 1.0, true, 25.0);
And I'll put an "if GetConVarInt(g_delay_death_time) is zero then plugin_handled" widget