- Ошибка
-
Не отображает срок Админки
- ОС
- Linux
- Amx Mod X
-
v1.9.0.5294
- Билд
-
ReHLDS version: 3.12.0.780-dev
- ReGamedll
-
ReGameDLL version: 5.21.0.575-dev
- Версия Metamod
-
Metamod-r v1.3.0.131, API (5:13)
- Список метамодулей
-
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.92d ini Start Never
[ 2] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 3] Rechecker RUN - rechecker_mm_i386.so v2.7 ini Chlvl ANY
[ 4] Revoice RUN - revoice_mm_i386.so v0.1.0.34 ini Start Never
[ 5] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 6] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 7] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 8] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5294 ini Start ANY
[ 9] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl8 ANY Never
[10] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
[11] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
[12] MySQL RUN - mysql_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
[13] ReAPI RUN - reapi_amxx_i386.so v5.22.0.254-dev pl8 ANY Never
[14] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
[16] CSX RUN - csx_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
[17] Fun RUN - fun_amxx_i386.so v1.9.0.5294 pl8 ANY ANY
- Список плагинов
-
[ 1] [190] AMXBans RBS 20.06.06 SKAJIbnEJIb & La amxbans_rbs.amx running
[ 2] GameCMS_API 5.6.3 zhorzh78 gamecms_api_5.6 running
[ 3] Maps Menu 20.06.06 SKAJIbnEJIb & AM mapsmenu_rbs.am running
[ 4] [182] Ultimate Gag 17.12.22BE SKAJIbnEJIb ultimate_gag.am running
[ 5] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 6] Slots Reservation 1.9.0.5294 AMXX Dev Team adminslots.amxx running
[ 7] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.9.0.5294 AMXX Dev Team plmenu.amxx running
[ 9] Plugin Menu 1.9.0.5294 AMXX Dev Team pluginmenu.amxx running
[ 10] Anti Flood 1.9.0.5294 AMXX Dev Team antiflood.amxx running
[ 11] Scrolling Message 1.9.0.5294 AMXX Dev Team scrollmsg.amxx running
[ 12] Info. Messages 1.9.0.5294 AMXX Dev Team imessage.amxx running
[ 13] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 14] Pause Plugins 1.9.0.5294 AMXX Dev Team pausecfg.amxx running
[ 15] Restrict Weapons 1.9.0.5294 Leo_[BH] restmenu.amxx running
[ 16] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 17] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 18] Admin_Check 0.1 p1Mp / S1n[L]Ss admin_check.amx running
[ 19] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 20] AFK Manager v1.6 Leon McVeran afk_manager.amx running
[ 21] Auto recording demo 2.0 IzI | Bonaqua (R amx_autodemorec running
[ 22] [Customizable] AmxModM 0.0.5 Albertio amxmodmenu.amxx running
[ 23] [190] Army Ranks Ultim 20.06.06 SKAJIbnEJIb army_ranks_ulti running
[ 24] [190] Chat RBS 20.06.06 SKAJIbnEJIb chat_rbs.amxx running
[ 25] Descriptive 'Fire in t 0.1 VEN descriptive_fir running
[ 26] Game Namer 1.1 NeuroToxin gamenamechanger running
[ 27] High Ping Kicker 0.16.2 FiGhT* high_ping_kicke running
[ 28] Killer Screen Fade 1.0 FIGhT* killerscreenfad running
[ 29] Admin Menu 1.0 FiGhT* menu_server.amx running
[ 30] Reset Score 1.0 Silenttt resetscore.amxx running
[ 31] unknown unknown unknown rock_the_ban.am running
[ 32] Simple Damager 2.1.0 fl0wer simple_damager. running
[ 33] [190] StatsX Unlimited 22.12.08 SKAJIbnEJIb statsx_unlimite running
[ 34] [190] Skill ELO 22.11.15 SKAJIbnEJIb skill_elo.amxx running
[ 35] Stats Configuration 20.06.06 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 36] [190] StatsX RBS 21.03.23 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 37] Hello World 1.0 Dim4ik welcom.amxx running
[ 38] [190] CsStats MySQL 22.11.15 SKAJIbnEJIb csstats_mysql.a running
- Автор плагина
- Albertio
- Версия плагина
- [Customizable] AmxModMenu 0.0.5
- Исходный код
-
#include <amxmodx>
#tryinclude <gamecms5> // Срок админки GameCMS(раскомментировать, если надо).
#define SECONDS_IN_DAY 86400 // Не трогать!
enum _:MenuData
{
ItemName[64],
ItemCmd[32],
ItemFlag
};
new Array:g_eMenuData;
enum _:MenuSettings
{
MenuName[64],
MenuCmd[32],
MenuPage[4],
MenuFlag
};
new g_eMenuSettings[MenuSettings];
new g_iMenusNum;
new g_iMenuPos[MAX_PLAYERS + 1];
public plugin_precache()
{
new szPath[128], iLen = get_localinfo("amxx_configsdir", szPath, charsmax(szPath));
formatex(szPath[iLen], charsmax(szPath) - iLen, "/amxmodmenu/amxmodmenu.ini");
new hFile = fopen(szPath, "rt");
if(!hFile)
{
set_fail_state("Can't %s '%s'", file_exists(szPath) ? "read" : "find", szPath);
return;
}
g_eMenuData = ArrayCreate(MenuData);
new szLine[128], szType[24], szName[64], szCmd[32], szFlag[4], szMenuData[MenuData];
while(!feof(hFile))
{
fgets(hFile, szLine, charsmax(szLine));
Str_RemoveComment(szLine);
trim(szLine);
if(parse(szLine, szType, charsmax(szType), szCmd, charsmax(szCmd)) == 2)
{
if(szType[0] == EOS)
{
continue;
}
if(equali(szType, "display_menu_page"))
{
copy(g_eMenuSettings[MenuPage], charsmax(g_eMenuSettings[MenuPage]), szCmd);
continue;
}
}
if(parse(szLine, szType, charsmax(szType), szName, charsmax(szName), szCmd, charsmax(szCmd), szFlag, charsmax(szFlag)) == 4)
{
if(szType[0] == EOS)
{
continue;
}
replace_all(szName, charsmax(szName), "^^n", "^n");
replace_all(szName, charsmax(szName), "^^t", "^t");
if(equali(szType, "reg_main_menu"))
{
copy(g_eMenuSettings[MenuName], charsmax(g_eMenuSettings[MenuName]), szName);
copy(g_eMenuSettings[MenuCmd], charsmax(g_eMenuSettings[MenuCmd]), szCmd);
g_eMenuSettings[MenuFlag] = read_flags(szFlag);
}
else if(equali(szType, "add_menu_item"))
{
copy(szMenuData[ItemName], charsmax(szMenuData[ItemName]), szName);
copy(szMenuData[ItemCmd], charsmax(szMenuData[ItemCmd]), szCmd);
szMenuData[ItemFlag] = read_flags(szFlag);
ArrayPushArray(g_eMenuData, szMenuData);
}
}
}
fclose(hFile);
g_iMenusNum = ArraySize(g_eMenuData);
}
public plugin_init()
{
register_plugin("[Customizable] AmxModMenu", "0.0.5", "Albertio");
register_concmd(g_eMenuSettings[MenuCmd], "AmxModMenu_Cmd", g_eMenuSettings[MenuFlag]);
register_menucmd(register_menuid("AmxModMenu"), 1023, "AmxModMenu_Handler");
}
public AmxModMenu_Cmd(id, iFlag)
{
if(~get_user_flags(id) & iFlag)
{
console_print(id, "У вас недостаточно прав для использования этой команды");
return PLUGIN_HANDLED;
}
AmxModMenu_Display(id, g_iMenuPos[id] = 0);
return PLUGIN_HANDLED;
}
public AmxModMenu_Display(id, iPos)
{
if(iPos < 0)
{
return PLUGIN_HANDLED;
}
new szMenu[MAX_MENU_LENGTH], iLen;
#if defined _gamecms5_included
new iExpTime = cmsapi_service_timeleft(id), iSysTime = get_systime();
if(iExpTime - iSysTime > 0)
{
new iFinalTime = (iExpTime - iSysTime) / SECONDS_IN_DAY;
if(iFinalTime > 0)
{
if(g_eMenuSettings[MenuPage][0] == '1')
{
iLen = formatex(szMenu, charsmax(szMenu), "%s\R\y%d/%d^n\wОсталось \r%d \wдней^n^n", g_eMenuSettings[MenuName],
iPos + 1, (g_iMenusNum / 8) + (((g_iMenusNum % 8) > 0) ? 1 : 0), iFinalTime);
}
else
{
iLen = formatex(szMenu, charsmax(szMenu), "%s^n\wОсталось \r%d \wдней^n^n", g_eMenuSettings[MenuName], iFinalTime);
}
}
else
{
if(g_eMenuSettings[MenuPage][0] == '1')
{
iLen = formatex(szMenu, charsmax(szMenu), "%s\R\y%d/%d^n\rПоследний \wдень^n^n",
g_eMenuSettings[MenuName], iPos + 1, (g_iMenusNum / 8) + (((g_iMenusNum % 8) > 0) ? 1 : 0));
}
else
{
iLen = formatex(szMenu, charsmax(szMenu), "%s^n\rПоследний \wдень^n^n", g_eMenuSettings[MenuName]);
}
}
}
else if(iExpTime == 0)
{
if(g_eMenuSettings[MenuPage][0] == '1')
{
iLen = formatex(szMenu, charsmax(szMenu), "%s\R\y%d/%d^n\wПрава \yне ограничены^n^n",
g_eMenuSettings[MenuName], iPos + 1, (g_iMenusNum / 8) + (((g_iMenusNum % 8) > 0) ? 1 : 0));
}
else
{
iLen = formatex(szMenu, charsmax(szMenu), "%s^n\wПрава \yне ограничены^n^n", g_eMenuSettings[MenuName]);
}
}
#else
if(g_eMenuSettings[MenuPage][0] == '1')
{
iLen = formatex(szMenu, charsmax(szMenu), "%s\R\y%d/%d^n^n", g_eMenuSettings[MenuName],
iPos + 1, (g_iMenusNum / 8) + (((g_iMenusNum % 8) > 0) ? 1 : 0));
}
else
{
iLen = formatex(szMenu, charsmax(szMenu), "%s^n^n", g_eMenuSettings[MenuName]);
}
#endif
new iKeys = MENU_KEY_0, iStart = iPos * 8, iEnd = min(iStart + 8, g_iMenusNum), iNum, szMenuData[MenuData];
if(iStart >= g_iMenusNum)
{
iStart = iPos = g_iMenuPos[id] = 0;
}
for(new i = iStart, iFlags = get_user_flags(id); i < iEnd; i++)
{
ArrayGetArray(g_eMenuData, i, szMenuData);
if(iFlags & szMenuData[ItemFlag])
{
iKeys |= (1<<iNum);
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\r%d. \w%s^n", ++iNum, szMenuData[ItemName]);
}
else
{
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "\d%d. %s^n", ++iNum, szMenuData[ItemName]);
}
}
if(iEnd != g_iMenusNum)
{
iKeys |= MENU_KEY_9
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n\r9. \wДалее^n\r0. \w%s", iPos ? "Назад" : "Выход");
}
else
{
iLen += formatex(szMenu[iLen], charsmax(szMenu) - iLen, "^n\r0. \w%s", iPos ? "Назад" : "Выход");
}
return show_menu(id, iKeys, szMenu, -1, "AmxModMenu");
}
public AmxModMenu_Handler(id, key)
{
switch(key)
{
case 8:
{
AmxModMenu_Display(id, ++g_iMenuPos[id]);
}
case 9:
{
AmxModMenu_Display(id, --g_iMenuPos[id]);
}
default:
{
new szMenuData[MenuData];
ArrayGetArray(g_eMenuData, g_iMenuPos[id] * 8 + key, szMenuData);
new szMenuCmd[32];
copy(szMenuCmd, charsmax(szMenuCmd), szMenuData[ItemCmd]);
if(szMenuCmd[0] == 's' && szMenuCmd[1] == 'v' && szMenuCmd[2] == '_')
{
server_cmd(szMenuCmd);
}
else
{
client_cmd(id, szMenuCmd);
}
}
}
return PLUGIN_HANDLED;
}
stock Str_RemoveComment(str[])
{
new i;
while(str[i] != EOS)
{
if(str[i] == ';')
{
str[i] = EOS;
break;
}
i++;
}
}
Приветствую всех. Столкнулся с проблемой. установив плагин Amxmodmenu от Albertio, не отображается срок окончания Админки, кто сталкивался с данной проблемой?
В этой теме было размещено решение! Перейти к решению.