Skip to content

Commit

Permalink
effects: move say hook to precache
Browse files Browse the repository at this point in the history
  • Loading branch information
Mistrick committed Nov 7, 2020
1 parent 3acf6e4 commit 72a0872
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions addons/amxmodx/scripting/map_manager_effects.sma
Expand Up @@ -4,7 +4,7 @@
#include <map_manager>

#define PLUGIN "Map Manager: Effects"
#define VERSION "0.0.9"
#define VERSION "0.0.10"
#define AUTHOR "Mistrick"

#pragma semicolon 1
Expand Down Expand Up @@ -62,12 +62,13 @@ public plugin_init()

DisableHamForward(g_hHamSpawn = RegisterHam(Ham_Spawn, "player", "player_spawn_post", 1));
}
public plugin_precache()
{
register_clcmd("say", "clcmd_say");
register_clcmd("say_team", "clcmd_say");
}
public plugin_cfg()
{
if(get_num(BLOCK_CHAT)) {
register_clcmd("say", "clcmd_say");
register_clcmd("say_team", "clcmd_say");
}
if(get_num(FREEZE_IN_VOTE)) {
g_pCvars[FREEZETIME] = get_cvar_pointer("mp_freezetime");
g_pCvars[VOTE_IN_NEW_ROUND] = get_cvar_pointer("mapm_vote_in_new_round");
Expand Down

0 comments on commit 72a0872

Please sign in to comment.