From e42aef87147d6c344d2dc0f3a57e1e285652e2e9 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Fri, 13 Aug 2004 11:20:12 +0000 Subject: [PATCH] added #define DISPLAY_MSG --- plugins/adminhelp.sma | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/plugins/adminhelp.sma b/plugins/adminhelp.sma index f4d8d169..4ac2bff4 100755 --- a/plugins/adminhelp.sma +++ b/plugins/adminhelp.sma @@ -34,6 +34,7 @@ #include +#define DISPLAY_MSG // Comment to disable message on join #define HELPAMOUNT 10 // Number of commands per page public plugin_init() { @@ -42,8 +43,11 @@ public plugin_init() { register_concmd("amx_help","cmdHelp",0," [nr of cmds (only for server)] - displays this help") } -public client_putinserver(id) - setHelp(id) +#if defined DISPLAY_MSG +public client_putinserver(id) { + set_task(15.0,"dispInfo",id) +} +#endif public cmdHelp(id,level,cid) { new arg1[8], flags = get_user_flags(id) @@ -82,18 +86,17 @@ public cmdHelp(id,level,cid) { return PLUGIN_HANDLED } +#if defined DISPLAY_MSG public dispInfo(id) { client_print(id,print_chat,"%L",id,"TYPE_HELP") new nextmap[32] get_cvar_string("amx_nextmap",nextmap,31) - if (get_cvar_float("mp_timelimit")){ + if (get_cvar_float("mp_timelimit")) { new timeleft = get_timeleft() - if (timeleft > 0){ + if (timeleft > 0) { client_print(id,print_chat, "%L" , id, "TIME_INFO_1", timeleft / 60, timeleft % 60,nextmap) } } client_print(id,print_chat,"%L",id,"TIME_INFO_2",nextmap) } - -setHelp(id) - set_task(15.0,"dispInfo",id) \ No newline at end of file +#endif \ No newline at end of file