From b3f49f00431534ffa7be77aef133b4a1432f61f1 Mon Sep 17 00:00:00 2001 From: Dogan Date: Sun, 13 Oct 2019 21:41:41 +0200 Subject: [PATCH] ZombieManager: add plugin. file --- ZombieManager/scripting/ZombieManager.sp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ZombieManager/scripting/ZombieManager.sp b/ZombieManager/scripting/ZombieManager.sp index 346a21d4..770db882 100644 --- a/ZombieManager/scripting/ZombieManager.sp +++ b/ZombieManager/scripting/ZombieManager.sp @@ -35,10 +35,12 @@ public void OnPluginStart() HookEvent("player_team", OnPlayerTeam); ConVar cvar; - HookConVarChange((cvar = CreateConVar("sm_player_afk_time", "180", "AFK Time in seconds after which a player won't turn into a motherzombie")), Cvar_AFKTime); + HookConVarChange((cvar = CreateConVar("sm_player_afk_time", "120", "AFK Time in seconds after which a player won't turn into a motherzombie")), Cvar_AFKTime); g_iAFKTime = cvar.IntValue; delete cvar; + AutoExecConfig(true, "plugin.ZombieManager"); + AddMultiTargetFilter("@mzombie", Filter_Motherzombies, "Mother Zombies", false); RegConsoleCmd("sm_mzombie", Command_DisplayMotherzombies, "Current Mother Zombies"); }