From 8f96e95d0795e0e2f5b01d93bda24079eae8437c Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Tue, 20 Apr 2004 17:47:05 +0000 Subject: [PATCH] *** empty log message *** --- plugins/welcomemsg.sma | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/welcomemsg.sma b/plugins/welcomemsg.sma index 220e5adf..f7eb16cc 100755 --- a/plugins/welcomemsg.sma +++ b/plugins/welcomemsg.sma @@ -52,8 +52,10 @@ public plugin_init() { register_plugin("Welcome Message","0.16","AMXX Dev Team") g_cstrikeRunning = is_running("cstrike") - get_configsdir(g_motdFile, 63); - format(g_motdFile, 63, "%s/conmotd.txt", g_motdFile); +#if defined READ_FROM_FILE + get_configsdir(g_motdFile, 63) + format(g_motdFile, 63, "%s/conmotd.txt", g_motdFile) +#endif } public plugin_cfg() @@ -78,7 +80,7 @@ public alt_motd(param[]) { get_cvar_string("amx_nextmap",nextmap,31) new len = copy(motdBody,MOTD_LENGTH,"") + len += copy(motdBody[len],MOTD_LENGTH-len,"hr{color:#FFB000;border:0px;}ul{margin-top:2px;margin-bottom:2px;}hr{margin-top:8px;margin-bottom:8px;}") len += format(motdBody[len],MOTD_LENGTH-len,"Hello %s, welcome to %s