ZombieManager: add plugin. file

This commit is contained in:
Dogan 2019-10-13 21:41:41 +02:00
parent b85d1e9750
commit b3f49f0043

View File

@ -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");
}