use AMXX_VERSION_STR

This commit is contained in:
Felix Geyer 2004-07-30 23:39:39 +00:00
parent ac910f9e56
commit 4fccdd676b
24 changed files with 30 additions and 42 deletions

View File

@ -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")

View File

@ -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]<text> - displays hud message")
register_clcmd("say_team","cmdSayAdmin",0,"@<text> - displays message to admins")
register_concmd("amx_say","cmdSay",ADMIN_CHAT,"<message> - sends message to all players")

View File

@ -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,"<name or #userid> [reason]")
register_concmd("amx_ban","cmdBan",ADMIN_BAN,"<name or #userid> <id/ip> <minutes> [reason]")
register_concmd("amx_addban","cmdAddBan",ADMIN_BAN,"<authid or ip> <minutes> [reason]")

View File

@ -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,"<page> [nr of cmds (only for server)] - displays this help")
}

View File

@ -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" ,

View File

@ -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")

View File

@ -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")

View File

@ -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);

View File

@ -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]

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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")

View File

@ -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)

View File

@ -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

View File

@ -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")

View File

@ -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")

View File

@ -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")
}

View File

@ -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

View File

@ -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)

View File

@ -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",

View File

@ -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")

View File

@ -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)

View File

@ -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)