From 265ef9ab88ff33352761e50505dfb9a903837b4b Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Thu, 29 Jul 2004 10:40:46 +0000 Subject: [PATCH] removed auto-print to server console --- plugins/adminhelp.sma | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/plugins/adminhelp.sma b/plugins/adminhelp.sma index 64051e73..e66ad3f6 100755 --- a/plugins/adminhelp.sma +++ b/plugins/adminhelp.sma @@ -43,7 +43,6 @@ new g_timeInfo2[] = "No Time Limit. Next Map: %s" public plugin_init() { register_plugin("Admin Help","0.20","AMXX Dev Team") register_concmd("amx_help","cmdHelp",0," [nr of cmds (only for server)] - displays this help") - setHelp(0) } public client_putinserver(id) @@ -87,19 +86,16 @@ public cmdHelp(id,level,cid) { } public dispInfo(id){ - if (id) client_print(id,print_chat, g_typeHelp ) - else server_print( g_typeHelp ) + client_print(id,print_chat, g_typeHelp ) new nextmap[32] get_cvar_string("amx_nextmap",nextmap,31) if (get_cvar_float("mp_timelimit")){ new timeleft = get_timeleft() if (timeleft > 0){ - if (id) client_print(id,print_chat, g_timeInfo1 , timeleft / 60, timeleft % 60,nextmap) - else server_print( g_timeInfo1 , timeleft / 60, timeleft % 60,nextmap) + client_print(id,print_chat, g_timeInfo1 , timeleft / 60, timeleft % 60,nextmap) } } - else if (id) client_print(id,print_chat, g_timeInfo2 ,nextmap) - else server_print( g_timeInfo2 ,nextmap) + client_print(id,print_chat, g_timeInfo2 ,nextmap) } setHelp(id)