- Ошибка
-
Не активна кнопка
- ОС
- Windows
- Amx Mod X
-
AMX Mod X 1.9.0.5271
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.11.0.767-dev
Build date: 03:14:15 Oct 25 2021 (2753)
Build from: https://github.com/dreamstalker/rehlds/commit/471158b
- ReGamedll
-
ReGameDLL version: 5.21.0.556-dev
Build date: 08:44:42 Jul 22 2022
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/1081301
- Версия Metamod
-
Metamod-r v1.3.0.131, API (5:13)
Metamod-r build: 18:51:28 Jul 11 2022
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/adc9414
- Список метамодулей
-
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] SafeNameAndChat RUN - safenameandchat.dll v1.1 ini ANY ANY
[ 2] Reunion RUN - reunion_mm.dll v0.1.92d ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm.dll v0.1.6 ini Start Never
[ 4] VoiceTranscoder RUN - voicetranscoder.dll v2017RC5 ini ANY ANY
[ 5] AMX Mod X RUN - amxmodx_mm.dll v1.9.0.5271 ini Start ANY
[ 6] Rechecker RUN - rechecker_mm.dll v2.7 ini Chlvl ANY
[ 7] ReSemiclip RUN - resemiclip_mm.dll v2.3.9 ini Chlvl ANY
[ 8] WHBlocker RUN - whblocker_mm.dll v1.5.697 ini Chlvl ANY
[ 9] HitBox Fix RUN - hitbox_fix_mm.dll v1.1.2 ini Start ANY
[10] YaPB RUN - yapb.dll v4.3.734 ini Chlvl ANY
[11] MySQL RUN - mysql_amxx.dll v1.9.0.5271 pl5 ANY ANY
[12] Fun RUN - fun_amxx.dll v1.9.0.5271 pl5 ANY ANY
[13] Engine RUN - engine_amxx.dll v1.9.0.5271 pl5 ANY ANY
[14] FakeMeta RUN - fakemeta_amxx.dll v1.9.0.5271 pl5 ANY ANY
[15] GeoIP RUN - geoip_amxx.dll v1.9.0.5271 pl5 ANY ANY
[16] CStrike RUN - cstrike_amxx.dll v1.9.0.5271 pl5 ANY ANY
[17] Ham Sandwich RUN - hamsandwich_amxx.dll v1.9.0.5271 pl5 ANY ANY
[18] ReAimDetector RUN - reaimdetector_amxx.dll v0.2.2 pl5 ANY Never
[19] ReAPI RUN - reapi_amxx.dll v5.21.0.252-dev pl5 ANY Never
19 plugins, 19 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] Admin Base 1.9.0.5271 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.9.0.5271 AMXX Dev Team admincmd.amxx running
[ 3] Admin Help 1.9.0.5271 AMXX Dev Team adminhelp.amxx running
[ 4] Slots Reservation 1.9.0.5271 AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual System 1.9.0.5271 AMXX Dev Team multilingual.am running
[ 6] Menus Front-End 1.9.0.5271 AMXX Dev Team menufront.amxx running
[ 7] Commands Menu 1.9.0.5271 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.9.0.5271 AMXX Dev Team plmenu.amxx running
[ 9] Maps Menu 1.9.0.5271 AMXX Dev Team mapsmenu.amxx running
[ 10] Plugin Menu 1.9.0.5271 AMXX Dev Team pluginmenu.amxx running
[ 11] Admin Chat 1.9.0.5271 AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.9.0.5271 AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.9.0.5271 AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.9.0.5271 AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.9.0.5271 AMXX Dev Team adminvote.amxx running
[ 16] Pause Plugins 1.9.0.5271 AMXX Dev Team pausecfg.amxx running
[ 17] Stats Configuration 1.9.0.5271 AMXX Dev Team statscfg.amxx running
[ 18] Restrict Weapons 1.9.0.5271 AMXX Dev Team restmenu.amxx running
[ 19] CS Misc. Stats 1.9.0.5271 AMXX Dev Team miscstats.amxx running
[ 20] CS Stats Logging 1.9.0.5271 AMXX Dev Team stats_logging.a running
[ 21] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 22] Map Manager: Advanced 0.1.0 Mistrick map_manager_adv running
[ 23] Map Manager: BlockList 0.0.4 Mistrick map_manager_blo running
[ 24] Map Manager: Core 3.1.5 Mistrick map_manager_cor running
[ 25] Map Manager: Effects 0.1.1 Mistrick map_manager_eff running
[ 26] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 27] Map Manager: Nominatio 0.2.1 Mistrick map_manager_nom running
[ 28] Map Manager: Online so 0.0.4 Mistrick map_manager_onl running
[ 29] Map Manager: Priority 0.0.2 Mistrick map_manager_pri running
[ 30] Map Manager: Rtv 0.1.1 Mistrick map_manager_rtv running
[ 31] Map Manager: Scheduler 0.1.10 Mistrick map_manager_sch running
[ 32] Map Manager: Sounds 0.0.2 Mistrick map_manager_sou running
[ 33] [GeoIP] Connect Info 1.0.0 Nordic Warrior geoip_connect_i running
[ 34] recoil_manager 1.0.0 fl0wer recoil_manager. running
[ 35] Sale Weapons 1.1 MakapoH. sale_weapons.am running
[ 36] Adverts 1.0 pUzzlik adverts_message running
[ 37] Time for info 1.0 neugomon time_for_info.a running
[ 38] FirstPlayersRespawn 1.0.1 Emma Jule FirstPlayersRes running
[ 39] Unreal Spawn Fixer 1.1 karaulov unreal_spawn_fi running
[ 40] Stop the Bastards 1.7.0 F@nt0M stop_the_bastar running
[ 41] Flashbang Ban 0.4 mx?! flashbang_ban.a running
[ 42] Night VIPs 1.1.1 szawesome night_vips.amxx running
[ 43] [StatsX:CS] Colored Ba 0.1-2a Garey statsx_bandarm. running
[ 44] AES: StatsX 0.5 Vega serfreeman1337 aes_statsx.amxx running
[ 45] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 46] Lite Translit 2.8 neygomon lite_translit.a running
[ 47] say /me and /hp 0.3 neygomon sayme.amxx running
[ 48] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a running
[ 49] Parachute Lite [ReAPI] 11.0 Leo_[BH] parachute_lite. running
[ 50] FreshBans 1.4.8b kanagava freshbans.amxx running
[ 51] Spec Banner 0.0.1 PurposeLess specbanner.amxx running
[ 52] Flash Sprite 0.3 Denzer & Garey flash_sprite.am running
[ 53] [ReAPI] Custom Models 1.6.1 neugomon custom_models.a running
[ 54] Sprite Damager 1.0 OverGame & DeMNi Sprite_damager. running
[ 55] [VipM][I] Default 5.0.0-beta ArKaNeMaN VipM-I-Default. running
[ 56] [VipM-I] Limits 5.0.0-beta ArKaNeMaN VipM-I-Limits.a running
[ 57] [VipM] Items Controlle 5.0.0-beta ArKaNeMaN VipM-ItemsContr running
[ 58] [VipM][L] Default 5.0.0-beta ArKaNeMaN VipM-L-Default. running
[ 59] [VipM][L] Logic 5.0.0-beta ArKaNeMaN VipM-L-Logic.am running
[ 60] [VipM][M] Spawn Health 5.0.0-beta ArKaNeMaN VipM-M-SpawnHea running
[ 61] [VipM-M] Spawn Items 5.0.0-beta ArKaNeMaN VipM-M-SpawnIte running
[ 62] [VipM][M] Vampire 5.0.0-beta ArKaNeMaN VipM-M-Vampire. running
[ 63] [VipM-M] Vip in TAB 5.0.0-beta ArKaNeMaN VipM-M-VipInTab running
[ 64] [VipM][M] Weapon Menu 5.0.0-beta ArKaNeMaN VipM-M-WeaponMe running
[ 65] [VipM] Misc 5.0.0-beta ArKaNeMaN VipM-Misc.amxx running
[ 66] [VipM] Modules Limiter 5.0.0-beta ArKaNeMaN VipM-ModulesLim running
[ 67] Vip Modular 5.0.0-beta ArKaNeMaN VipModular.amxx running
[ 68] Revive Teammates: Core 1.1.0 ufame & Albertio rt_core.amxx running
[ 69] Revive Teammates: Plan 1.1.0 ufame & Albertio rt_planting.amx running
[ 70] Revive Teammates: Rest 1.1.0 ufame & Albertio rt_restrictions running
[ 71] Revive Teammates: Time 1.1.0 ufame & Albertio rt_timer.amxx running
[ 72] Revive Teammates: Effe 1.1.0 ufame & Albertio rt_effects.amxx running
[ 73] Revive Teammates: Soun 1.1.0 ufame & Albertio rt_sounds.amxx running
[ 74] Revive Teammates: Bonu 1.1.0 ufame & Albertio rt_bonus.amxx running
[ 75] Map Manager: GUI 0.0.6 Mistrick map_manager_gui running
[ 76] Realistic Smoke 0.4 6u3oH realistic_smoke running
[ 77] CSXSQL: Onlinetime Awa 0.2 serfreeman1337 csstatsx_playti running
[ 78] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 79] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 80] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 81] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 82] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 83] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
[ 84] AES: StatsX Info Rank 0.1 serfreeman1337 StatsX_Info_Ran running
[ 85] AES Bonus: Flags 0.2 Sonyx aes_bonus_flags running
85 plugins, 85 running
- Автор плагина
- Sonyx
- Версия плагина
- AES Flags by Bonus 0.2
- Исходный код
-
#include <amxmodx>
#include <sqlx>
#if AMXX_VERSION_NUM < 183
#include <colorchat>
#endif
forward amxbans_sql_initialized(Handle:sqlTuple, const dbPrefix[]);
forward fbans_sql_connected(Handle:sqlTuple);
forward lite_bans_sql_init(Handle:sqlTuple);
enum (+=1) {
NONE = 0,
AMX,
FB,
LB
}
enum _:qState { AddOne, AddTwo }
new g_System = NONE;
new Handle:g_DBTuple;
new g_TableAdmins[100], g_TableSAdmins[100], g_TableSInfo[100], g_ServerIp[25];
new g_szQuery[1024], g_Data[2];
public plugin_init()
{
#define PNAME "AES Bonus: Flags"
#define PVERSION "0.2"
#define PAUTHOR "Sonyx"
register_plugin(PNAME, PVERSION, PAUTHOR);
}
public amxbans_sql_initialized(Handle:sqlTuple, const dbPrefix[])
{
if (g_System != NONE) {
return PLUGIN_CONTINUE;
}
g_DBTuple = sqlTuple;
g_System = AMX;
formatex(g_TableAdmins, charsmax(g_TableAdmins), "%s_amxadmins", dbPrefix);
formatex(g_TableSInfo, charsmax(g_TableSInfo), "%s_serverinfo", dbPrefix);
formatex(g_TableSAdmins, charsmax(g_TableSAdmins), "%s_admins_servers", dbPrefix);
get_cvar_string("amxbans_server_address", g_ServerIp, charsmax(g_ServerIp));
if (!g_ServerIp[0]) {
get_user_ip(0, g_ServerIp, charsmax(g_ServerIp), 0);
}
return PLUGIN_CONTINUE;
}
public lite_bans_sql_init(Handle:sqlTuple)
{
new dbPrefix[64];
if (g_System != NONE) {
return PLUGIN_CONTINUE;
}
g_DBTuple = sqlTuple;
g_System = LB;
get_cvar_string("lb_sql_pref", dbPrefix, charsmax(dbPrefix));
formatex(g_TableAdmins, charsmax(g_TableAdmins), "%s_amxadmins", dbPrefix);
formatex(g_TableSInfo, charsmax(g_TableSInfo), "%s_serverinfo", dbPrefix);
formatex(g_TableSAdmins, charsmax(g_TableSAdmins), "%s_admins_servers", dbPrefix);
get_cvar_string("lb_server_ip", g_ServerIp, charsmax(g_ServerIp));
if (!g_ServerIp[0]) {
get_user_ip(0, g_ServerIp, charsmax(g_ServerIp), 0);
}
return PLUGIN_CONTINUE;
}
public fbans_sql_connected(Handle:sqlTuple)
{
new i_Ip[16], i_Port[8];
if (g_System != NONE) {
return PLUGIN_CONTINUE;
}
g_DBTuple = sqlTuple;
g_System = FB;
if (!get_cvar_string("amx_amxadmins_table", g_TableAdmins, charsmax(g_TableAdmins)))
g_TableAdmins = "amx_amxadmins";
if (!get_cvar_string("amx_admins_table", g_TableSAdmins, charsmax(g_TableSAdmins)))
g_TableSAdmins = "amx_admins_servers";
get_cvar_string("fb_servers_table", g_TableSInfo, charsmax(g_TableSInfo));
get_cvar_string("fb_server_ip", i_Ip, charsmax(i_Ip));
get_cvar_string("fb_server_port", i_Port, charsmax(i_Port));
formatex(g_ServerIp, charsmax(g_ServerIp), "%s:%s", i_Ip, i_Port);
return PLUGIN_CONTINUE;
}
public SQL_Handler(failstate, Handle:query, err[], errcode, dt[], datasize)
{
switch(failstate)
{
case TQUERY_CONNECT_FAILED, TQUERY_QUERY_FAILED:
{
log_amx("[SQL ERROR #%d][Query State %d] %s", errcode, dt[0], err);
SQL_FreeHandle(query);
return;
}
}
switch(dt[0])
{
case AddOne:
{
g_Data[0] = AddTwo;
new szAuth[25], iID = SQL_GetInsertId(query);
get_user_authid(dt[1], szAuth, charsmax(szAuth));
formatex(g_szQuery, charsmax(g_szQuery), "INSERT INTO %s (admin_id, server_id, custom_flags, use_static_bantime) VALUES ('%d', (SELECT id FROM %s WHERE address = '%s'), '', 'no')", g_TableSAdmins, iID, g_TableSInfo, g_ServerIp);
SQL_ThreadQuery(g_DBTuple, "SQL_Handler", g_szQuery, g_Data, sizeof(g_Data));
}
case AddTwo:
{
SQL_FreeHandle(query);
server_cmd("amx_reloadadmins");
}
}
}
public pointBonus_GiveFlags(id, flags[], days)
{
if(!flags[0] || !days)
return 0;
if (g_System == NONE)
{
client_print_color(id, id, "^4[AES] ^3Отсутствует подключение к Базе!");
return 0;
}
if (get_user_flags(id) & read_flags(flags))
{
client_print_color(id, id, "^4[AES] ^3У вас уже есть данная привилегия!");
return 0;
}
new szAuth[25], szName[32], szPlayerEnd;
get_user_authid(id, szAuth, charsmax(szAuth));
get_user_name(id, szName, charsmax(szName));
szPlayerEnd = get_systime() + days * 86400;
g_Data[0] = AddOne;
g_Data[1] = id;
formatex(g_szQuery, charsmax(g_szQuery), "INSERT INTO %s (username, access, flags, steamid, nickname, ashow, created, expired, days) VALUES ('%s', '%s', 'ce', '%s', '%s', '0', UNIX_TIMESTAMP(NOW()), '%d', '%d')", g_TableAdmins, szAuth, flags, szAuth, szName, szPlayerEnd, days);
SQL_ThreadQuery(g_DBTuple, "SQL_Handler", g_szQuery, g_Data, sizeof(g_Data));
return 1;
}
Всем привет. Помогите пожалуйста в чём может быть проблема? Компиляцию все файлы с плагина AES_05 проходят без ошибок , сам файл aes_bonus_flag без ошибок, запускаю сервер (Ошибок нет) .Вставляю кнопку с выдачей за бонусы Вип , а она не активна :( Подскажите куда копать ?
В этой теме было размещено решение! Перейти к решению.
Вложения
-
70.2 KB Просмотры: 72