ZombieManager: add plugin. file
This commit is contained in:
parent
b85d1e9750
commit
b3f49f0043
@ -35,10 +35,12 @@ public void OnPluginStart()
|
|||||||
HookEvent("player_team", OnPlayerTeam);
|
HookEvent("player_team", OnPlayerTeam);
|
||||||
|
|
||||||
ConVar cvar;
|
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;
|
g_iAFKTime = cvar.IntValue;
|
||||||
delete cvar;
|
delete cvar;
|
||||||
|
|
||||||
|
AutoExecConfig(true, "plugin.ZombieManager");
|
||||||
|
|
||||||
AddMultiTargetFilter("@mzombie", Filter_Motherzombies, "Mother Zombies", false);
|
AddMultiTargetFilter("@mzombie", Filter_Motherzombies, "Mother Zombies", false);
|
||||||
RegConsoleCmd("sm_mzombie", Command_DisplayMotherzombies, "Current Mother Zombies");
|
RegConsoleCmd("sm_mzombie", Command_DisplayMotherzombies, "Current Mother Zombies");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user