From 4fccdd676bfa47f3a7e4ab30726c189fd35f4d26 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Fri, 30 Jul 2004 23:39:39 +0000 Subject: [PATCH] use AMXX_VERSION_STR --- plugins/admin.sma | 4 ++-- plugins/adminchat.sma | 2 +- plugins/admincmd.sma | 2 +- plugins/adminhelp.sma | 2 +- plugins/adminslots.sma | 2 +- plugins/adminvote.sma | 2 +- plugins/antiflood.sma | 2 +- plugins/cmdmenu.sma | 2 +- plugins/imessage.sma | 8 ++++---- plugins/mapchooser.sma | 2 +- plugins/mapsmenu.sma | 2 +- plugins/menufront.sma | 2 +- plugins/miscstats.sma | 2 +- plugins/nextmap.sma | 2 +- plugins/pausecfg.sma | 2 +- plugins/plmenu.sma | 2 +- plugins/restmenu.sma | 11 +---------- plugins/scrollmsg.sma | 2 +- plugins/stats_logging.sma | 2 +- plugins/statscfg.sma | 2 +- plugins/statsx.sma | 2 +- plugins/telemenu.sma | 2 +- plugins/timeleft.sma | 2 +- plugins/welcomemsg.sma | 9 +++------ 24 files changed, 30 insertions(+), 42 deletions(-) diff --git a/plugins/admin.sma b/plugins/admin.sma index 61377465..767d5292 100755 --- a/plugins/admin.sma +++ b/plugins/admin.sma @@ -53,9 +53,9 @@ new g_cmdLoopback[16] public plugin_init() { #if defined USING_SQL - register_plugin("Admin Base (SQL)", "0.20", "AMXX Dev Team") + register_plugin("Admin Base (SQL)",AMXX_VERSION_STR,"AMXX Dev Team") #else - register_plugin("Admin Base","0.20","AMXX Dev Team") + register_plugin("Admin Base",AMXX_VERSION_STR,"AMXX Dev Team") #endif register_cvar("amx_mode","1") register_cvar("amx_password_field","_pw") diff --git a/plugins/adminchat.sma b/plugins/adminchat.sma index a931af61..e6340ece 100755 --- a/plugins/adminchat.sma +++ b/plugins/adminchat.sma @@ -47,7 +47,7 @@ new g_Values[MAX_CLR][] = {{255,255,255},{255,0,0},{0,255,0},{0,0,255},{255,255, new Float:g_Pos[4][] = {{0.0,0.0},{0.05,0.55},{-1.0,0.2},{-1.0,0.7}} public plugin_init(){ - register_plugin("Admin Chat","0.20","AMXX Dev Team") + register_plugin("Admin Chat",AMXX_VERSION_STR,"AMXX Dev Team") register_clcmd("say","cmdSayChat",ADMIN_CHAT,"@[@|@|@][w|r|g|b|y|m|c] - displays hud message") register_clcmd("say_team","cmdSayAdmin",0,"@ - displays message to admins") register_concmd("amx_say","cmdSay",ADMIN_CHAT," - sends message to all players") diff --git a/plugins/admincmd.sma b/plugins/admincmd.sma index 5348cf58..1ca2bdb9 100755 --- a/plugins/admincmd.sma +++ b/plugins/admincmd.sma @@ -44,7 +44,7 @@ new bool:g_Paused new g_addCvar[] = "amx_cvar add %s" public plugin_init() { - register_plugin("Admin Commands","0.20","AMXX Dev Team") + register_plugin("Admin Commands",AMXX_VERSION_STR,"AMXX Dev Team") register_concmd("amx_kick","cmdKick",ADMIN_KICK," [reason]") register_concmd("amx_ban","cmdBan",ADMIN_BAN," [reason]") register_concmd("amx_addban","cmdAddBan",ADMIN_BAN," [reason]") diff --git a/plugins/adminhelp.sma b/plugins/adminhelp.sma index e66ad3f6..b25bfde6 100755 --- a/plugins/adminhelp.sma +++ b/plugins/adminhelp.sma @@ -41,7 +41,7 @@ new g_timeInfo1[] = "Time Left: %d:%02d min. Next Map: %s" new g_timeInfo2[] = "No Time Limit. Next Map: %s" public plugin_init() { - register_plugin("Admin Help","0.20","AMXX Dev Team") + register_plugin("Admin Help",AMXX_VERSION_STR,"AMXX Dev Team") register_concmd("amx_help","cmdHelp",0," [nr of cmds (only for server)] - displays this help") } diff --git a/plugins/adminslots.sma b/plugins/adminslots.sma index ce1208bf..ced80d41 100755 --- a/plugins/adminslots.sma +++ b/plugins/adminslots.sma @@ -42,7 +42,7 @@ new g_cmdLoopback[16] public plugin_init() { - register_plugin("Slots Reservation","0.20","AMXX Dev Team") + register_plugin("Slots Reservation",AMXX_VERSION_STR,"AMXX Dev Team") register_cvar("amx_reservation","1") format( g_cmdLoopback, 15, "amxres%c%c%c%c" , diff --git a/plugins/adminvote.sma b/plugins/adminvote.sma index b1a9c2ef..b81d8576 100755 --- a/plugins/adminvote.sma +++ b/plugins/adminvote.sma @@ -54,7 +54,7 @@ new bool:g_execResult new Float:g_voteRatio public plugin_init() { - register_plugin("Admin Votes","0.20","AMXX Dev Team") + register_plugin("Admin Votes",AMXX_VERSION_STR,"AMXX Dev Team") register_menucmd(register_menuid("Change map to ") ,MENU_KEY_1|MENU_KEY_2,"voteCount") register_menucmd(register_menuid("Choose map: ") ,MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4,"voteCount") register_menucmd(register_menuid("Kick ") ,MENU_KEY_1|MENU_KEY_2,"voteCount") diff --git a/plugins/antiflood.sma b/plugins/antiflood.sma index 6ae4f263..6385765b 100755 --- a/plugins/antiflood.sma +++ b/plugins/antiflood.sma @@ -39,7 +39,7 @@ new g_Flood[33] = {0, ...} public plugin_init() { - register_plugin("Anti Flood","0.20","AMXX Dev Team") + register_plugin("Anti Flood",AMXX_VERSION_STR,"AMXX Dev Team") register_clcmd("say","chkFlood") register_clcmd("say_team","chkFlood") register_cvar("amx_flood_time","0.75") diff --git a/plugins/cmdmenu.sma b/plugins/cmdmenu.sma index fb7000b4..c5579e99 100755 --- a/plugins/cmdmenu.sma +++ b/plugins/cmdmenu.sma @@ -88,7 +88,7 @@ new g_coloredMenus public plugin_init() { - register_plugin("Commands Menu","0.20","AMXX Dev Team") + register_plugin("Commands Menu",AMXX_VERSION_STR,"AMXX Dev Team") new configsDir[64]; get_configsdir(configsDir, 63); diff --git a/plugins/imessage.sma b/plugins/imessage.sma index eba96417..52a12044 100755 --- a/plugins/imessage.sma +++ b/plugins/imessage.sma @@ -36,9 +36,9 @@ #include #define MAX_MESSAGES 6 -#define X_POS -1.0 -#define Y_POS 0.30 -#define HOLD_TIME 12.0 +#define X_POS -1.0 +#define Y_POS 0.30 +#define HOLD_TIME 12.0 new g_Values[MAX_MESSAGES][3] new g_Messages[MAX_MESSAGES][384] @@ -46,7 +46,7 @@ new g_MessagesNum new g_Current public plugin_init(){ - register_plugin("Info. Messages","0.20","AMXX Dev Team") + register_plugin("Info. Messages",AMXX_VERSION_STR,"AMXX Dev Team") register_srvcmd("amx_imessage","setMessage") register_cvar("amx_freq_imessage","10") new lastinfo[8] diff --git a/plugins/mapchooser.sma b/plugins/mapchooser.sma index 087e18aa..7d1a50bc 100755 --- a/plugins/mapchooser.sma +++ b/plugins/mapchooser.sma @@ -52,7 +52,7 @@ new bool:g_selected = false public plugin_init() { - register_plugin("Nextmap Chooser","0.20","AMXX Dev Team") + register_plugin("Nextmap Chooser",AMXX_VERSION_STR,"AMXX Dev Team") register_menucmd(register_menuid("AMX Choose nextmap:"),(-1^(-1<<(SELECTMAPS+2))),"countVote") register_cvar("amx_extendmap_max","90") register_cvar("amx_extendmap_step","15") diff --git a/plugins/mapsmenu.sma b/plugins/mapsmenu.sma index 472f0b38..c917bee2 100755 --- a/plugins/mapsmenu.sma +++ b/plugins/mapsmenu.sma @@ -52,7 +52,7 @@ new g_choosed public plugin_init() { - register_plugin("Maps Menu","0.20","AMXX Dev Team") + register_plugin("Maps Menu",AMXX_VERSION_STR,"AMXX Dev Team") register_clcmd("amx_mapmenu","cmdMapsMenu",ADMIN_MAP,"- displays changelevel menu") register_clcmd("amx_votemapmenu","cmdVoteMapMenu",ADMIN_MAP,"- displays votemap menu") diff --git a/plugins/menufront.sma b/plugins/menufront.sma index 8f785d92..8a2845a2 100755 --- a/plugins/menufront.sma +++ b/plugins/menufront.sma @@ -123,7 +123,7 @@ new g_funModule public plugin_init() { - register_plugin("Menus Front-End","0.20","AMXX Dev Team") + register_plugin("Menus Front-End",AMXX_VERSION_STR,"AMXX Dev Team") register_menucmd(register_menuid("AMX Mod X Menu"),1023,"actionMenu") register_clcmd("amxmodmenu","cmdMenu",ADMIN_MENU,"- displays menus") diff --git a/plugins/miscstats.sma b/plugins/miscstats.sma index 8580a1f9..2726b8ad 100755 --- a/plugins/miscstats.sma +++ b/plugins/miscstats.sma @@ -146,7 +146,7 @@ new g_teamsNames[2][] = { } public plugin_init(){ - register_plugin("CS Misc. Stats","0.20","AMXX Dev Team") + register_plugin("CS Misc. Stats",AMXX_VERSION_STR,"AMXX Dev Team") register_event("DeathMsg","eDeathMsg","a") register_event("TextMsg","eRestart","a","2&#Game_C","2&#Game_w") register_event("SendAudio", "eEndRound", "a", "2&%!MRAD_terwin","2&%!MRAD_ctwin","2&%!MRAD_rounddraw") diff --git a/plugins/nextmap.sma b/plugins/nextmap.sma index 04a842f2..f520dcbb 100755 --- a/plugins/nextmap.sma +++ b/plugins/nextmap.sma @@ -45,7 +45,7 @@ new g_pos public plugin_init() { - register_plugin("NextMap","0.20","AMXX Dev Team") + register_plugin("NextMap",AMXX_VERSION_STR,"AMXX Dev Team") register_event("30","changeMap","a") register_clcmd("say nextmap","sayNextMap",0,"- displays nextmap") register_cvar("amx_nextmap","",FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_SPONLY) diff --git a/plugins/pausecfg.sma b/plugins/pausecfg.sma index fe604e40..a55e3b29 100755 --- a/plugins/pausecfg.sma +++ b/plugins/pausecfg.sma @@ -53,7 +53,7 @@ new g_system[MAX_SYSTEM] new g_systemNum public plugin_init() { - register_plugin("Pause Plugins","0.20","AMXX Dev Team") + register_plugin("Pause Plugins",AMXX_VERSION_STR,"AMXX Dev Team") register_concmd("amx_pausecfg","cmdPlugin",ADMIN_CFG,"- list commands for pause/unpause managment") register_clcmd("amx_pausecfgmenu","cmdMenu",ADMIN_CFG,"- pause/unpause plugins with menu") #if defined DIRECT_ONOFF diff --git a/plugins/plmenu.sma b/plugins/plmenu.sma index d9cc75d8..5a65b0a0 100755 --- a/plugins/plmenu.sma +++ b/plugins/plmenu.sma @@ -55,7 +55,7 @@ new g_coloredMenus public plugin_init() { - register_plugin("Players Menu","0.20","AMXX Dev Team") + register_plugin("Players Menu",AMXX_VERSION_STR,"AMXX Dev Team") register_clcmd("amx_kickmenu","cmdKickMenu",ADMIN_KICK,"- displays kick menu") register_clcmd("amx_banmenu","cmdBanMenu",ADMIN_BAN,"- displays ban menu") register_clcmd("amx_slapmenu","cmdSlapMenu",ADMIN_SLAY,"- displays slap/slay menu") diff --git a/plugins/restmenu.sma b/plugins/restmenu.sma index 47c59bfd..17ba0d00 100755 --- a/plugins/restmenu.sma +++ b/plugins/restmenu.sma @@ -680,21 +680,12 @@ public fn_autobuy(id) { return PLUGIN_HANDLED } -/* -public fn_setrebuy(id) { -} -public fn_rebuy(id) { -} -*/ - public plugin_init() { - register_plugin("Restrict Weapons","0.20","AMXX Dev Team") + register_plugin("Restrict Weapons",AMXX_VERSION_STR,"AMXX Dev Team") register_clcmd("buyammo1","ammoRest1") register_clcmd("buyammo2","ammoRest2") register_clcmd("cl_setautobuy", "fn_setautobuy") register_clcmd("cl_autobuy", "fn_autobuy") - //register_clcmd("cl_setrebuy", "fn_setrebuy") - //register_clcmd("cl_rebuy", "fn_rebuy") register_clcmd("amx_restmenu","cmdMenu",ADMIN_CFG,"- displays weapons restriction menu") register_menucmd(register_menuid("#Buy", 1 ),511,"menuBuy") register_menucmd(register_menuid("\yRestrict Weapons"),1023,"actionMenu") diff --git a/plugins/scrollmsg.sma b/plugins/scrollmsg.sma index 963f3632..11c799df 100755 --- a/plugins/scrollmsg.sma +++ b/plugins/scrollmsg.sma @@ -46,7 +46,7 @@ new g_Length new g_Frequency public plugin_init(){ - register_plugin("Scrolling Message","0.20","AMXX Dev Team") + register_plugin("Scrolling Message",AMXX_VERSION_STR,"AMXX Dev Team") register_srvcmd("amx_scrollmsg","setMessage") } diff --git a/plugins/stats_logging.sma b/plugins/stats_logging.sma index db9560c7..144869d3 100755 --- a/plugins/stats_logging.sma +++ b/plugins/stats_logging.sma @@ -39,7 +39,7 @@ new g_pingSum[33] new g_pingCount[33] public plugin_init() - register_plugin("CS Stats Logging","0.20","AMXX Dev Team") + register_plugin("CS Stats Logging",AMXX_VERSION_STR,"AMXX Dev Team") public client_disconnect(id) { if ( is_user_bot( id ) ) return PLUGIN_CONTINUE diff --git a/plugins/statscfg.sma b/plugins/statscfg.sma index ff1340b7..df566db5 100755 --- a/plugins/statscfg.sma +++ b/plugins/statscfg.sma @@ -51,7 +51,7 @@ public plugin_precache(){ } public plugin_init() { - register_plugin("Stats Configuration","0.20","AMXX Dev Team") + register_plugin("Stats Configuration",AMXX_VERSION_STR,"AMXX Dev Team") register_menucmd(register_menuid("\yStats Configuration"),1023,"actionCfgMenu") get_configsdir(g_fileToSave, 63) format(g_fileToSave, 63, "%s/stats.ini", g_fileToSave) diff --git a/plugins/statsx.sma b/plugins/statsx.sma index 6d06c7d6..0544e7fe 100755 --- a/plugins/statsx.sma +++ b/plugins/statsx.sma @@ -191,7 +191,7 @@ new t_sWpn[MAX_WEAPON_LENGTH+1] = "" public plugin_init() { // Register plugin. - register_plugin( "StatsX", "0.20", "AMXX Dev Team") + register_plugin( "StatsX", AMXX_VERSION_STR, "AMXX Dev Team") // Register events. register_event( "TextMsg", "eventStartGame", "a", diff --git a/plugins/telemenu.sma b/plugins/telemenu.sma index 2d3ef834..057dcc56 100755 --- a/plugins/telemenu.sma +++ b/plugins/telemenu.sma @@ -44,7 +44,7 @@ new g_menuOrgin[33][3] new g_coloredMenus public plugin_init() { - register_plugin("Teleport Menu","0.20","AMXX Dev Team") + register_plugin("Teleport Menu",AMXX_VERSION_STR,"AMXX Dev Team") register_clcmd("amx_teleportmenu","cmdTelMenu",ADMIN_CFG,"- displays teleport menu") register_menucmd(register_menuid("Teleport Menu"),1023,"actionTelMenu") diff --git a/plugins/timeleft.sma b/plugins/timeleft.sma index 92644921..28be587b 100755 --- a/plugins/timeleft.sma +++ b/plugins/timeleft.sma @@ -40,7 +40,7 @@ new g_CountDown new g_Switch public plugin_init() { - register_plugin("TimeLeft","0.20","AMXX Dev Team") + register_plugin("TimeLeft",AMXX_VERSION_STR,"AMXX Dev Team") register_cvar("amx_time_voice","1") register_srvcmd("amx_time_display","setDisplaying") register_cvar("amx_timeleft","00:00",FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY) diff --git a/plugins/welcomemsg.sma b/plugins/welcomemsg.sma index 245b0888..a6ed158d 100755 --- a/plugins/welcomemsg.sma +++ b/plugins/welcomemsg.sma @@ -50,7 +50,7 @@ new g_motdFile[64] public plugin_init() { - register_plugin("Welcome Message","0.20","AMXX Dev Team") + register_plugin("Welcome Message",AMXX_VERSION_STR,"AMXX Dev Team") g_coloredMenus = colored_menus() #if defined READ_FROM_FILE get_configsdir(g_motdFile, 63) @@ -64,13 +64,10 @@ public plugin_cfg() } public client_putinserver(id) { - new param[1] - param[0] = id - set_task(2.5,"alt_motd",0,param,1) + set_task(2.5,"alt_motd",id) } -public alt_motd(param[]) { - new id = param[0] +public alt_motd(id) { new motdBody[MOTD_LENGTH], name[32], hostname[64], nextmap[32], mapname[32] get_cvar_string("hostname",hostname,63)