diff --git a/plugins/miscstats.sma b/plugins/cstrike/miscstats.sma similarity index 100% rename from plugins/miscstats.sma rename to plugins/cstrike/miscstats.sma diff --git a/plugins/stats_logging.sma b/plugins/cstrike/stats_logging.sma similarity index 100% rename from plugins/stats_logging.sma rename to plugins/cstrike/stats_logging.sma diff --git a/plugins/statsx.sma b/plugins/cstrike/statsx.sma similarity index 100% rename from plugins/statsx.sma rename to plugins/cstrike/statsx.sma diff --git a/plugins/welcomemsg.sma b/plugins/welcomemsg.sma deleted file mode 100755 index a6ed158d..00000000 --- a/plugins/welcomemsg.sma +++ /dev/null @@ -1,159 +0,0 @@ -/* AMX Mod X -* Welcome Message Plugin -* -* by the AMX Mod X Development Team -* originally developed by OLO -* -* This file is part of AMX Mod X. -* -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at -* your option) any later version. -* -* This program is distributed in the hope that it will be useful, but -* WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software Foundation, -* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -* -* In addition, as a special exception, the author gives permission to -* link the code of this program with the Half-Life Game Engine ("HL -* Engine") and Modified Game Libraries ("MODs") developed by Valve, -* L.L.C ("Valve"). You must obey the GNU General Public License in all -* respects for all of the code used other than the HL Engine and MODs -* from Valve. If you modify this file, you may extend this exception -* to your version of the file, but you are not obligated to do so. If -* you do not wish to do so, delete this exception statement from your -* version. -*/ - -#include -#include - -#define MOTD_LENGTH 1024 - -// Settings (comment unwanted options) -#define SHOW_MODS -#define READ_FROM_FILE -//#define SHOW_TIME_AND_IP - -new g_coloredMenus - -#if defined READ_FROM_FILE -new g_motdFile[64] -#endif - -public plugin_init() -{ - register_plugin("Welcome Message",AMXX_VERSION_STR,"AMXX Dev Team") - g_coloredMenus = colored_menus() -#if defined READ_FROM_FILE - get_configsdir(g_motdFile, 63) - format(g_motdFile, 63, "%s/conmotd.txt", g_motdFile) -#endif -} - -public plugin_cfg() -{ - set_cvar_string("motdfile","") -} - -public client_putinserver(id) { - set_task(2.5,"alt_motd",id) -} - -public alt_motd(id) { - new motdBody[MOTD_LENGTH], name[32], hostname[64], nextmap[32], mapname[32] - - get_cvar_string("hostname",hostname,63) - get_user_name(id,name,31) - - get_mapname(mapname,31) - get_cvar_string("amx_nextmap",nextmap,31) - - new len = copy(motdBody,MOTD_LENGTH,"") - len += format(motdBody[len],MOTD_LENGTH-len,"Hello %s, welcome to %s") - - // Server Mods -#if defined SHOW_MODS - new mod_ver[32] - len += copy(motdBody[len],MOTD_LENGTH-len,"
Server mods:") -#endif - - // Info. from custom file -#if defined READ_FROM_FILE - if (file_exists(g_motdFile)) { - new message[192], len2, line = 0 - len += format(motdBody[len],MOTD_LENGTH-len,"
") - while(read_file(g_motdFile,line++,message,191,len2)) - len += copy(motdBody[len],MOTD_LENGTH-len,message) - } -#endif - len += copy(motdBody[len],MOTD_LENGTH-len,"") - show_motd(id,motdBody) -} \ No newline at end of file