Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
- Ошибка
-
В меню /anew не отображается купить VIP статус
- ОС
- Linux
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.639-dev
Build date: 17:47:13 Feb 21 2018 (1411)
Build from: https://github.com/dreamstalker/rehlds/commit/822df9a
- ReGamedll
-
ReGameDLL version: 5.7.0.295-dev
Build date: 15:10:22 Feb 19 2018
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/aa329db
- Список метамодулей
-
description stat pend file vers src load unload
[ 1] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.8.3-dev+5151 ini Start ANY
[ 3] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 6] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.695 ini Chlvl ANY
[ 8] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 9] MySQL RUN - mysql_amxx_i386.so v1.8.3-dev+5151 pl2 ANY ANY
[10] ReAPI RUN - reapi_amxx_i386.so v5.5.0.150-dev pl2 ANY Never
[11] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl2 ANY Never
[12] CStrike RUN - cstrike_amxx_i386.so v1.8.3-dev+5151 pl2 ANY ANY
[13] Fun RUN - fun_amxx_i386.so v1.8.3-dev+5151 pl2 ANY ANY
[14] VTC AMXX API RUN - VtcApi_amxx_i386.so v2017 RC pl2 ANY ANY
[15] Engine RUN - engine_amxx_i386.so v1.8.3-dev+5151 pl2 ANY ANY
[16] FakeMeta RUN - fakemeta_amxx_i386.so v1.8.3-dev+5151 pl2 ANY ANY
[17] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.8.3-dev+5151 pl2 ANY ANY
17 plugins, 17 running
- Список плагинов
-
[ 8] Commands Menu 1.8.3-dev+ AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.7 neugomon players_menu.am running
[ 10] Maps Menu 1.8.3-dev+ AMXX Dev Team mapsmenu.amxx running
[ 11] Admin Chat 1.8.3-dev+ AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.8.3-dev+ AMXX Dev Team antiflood.amxx running
[ 13] Admin Votes 1.8.3-dev+ AMXX Dev Team adminvote.amxx running
[ 14] Rank Menu 1.1 h1k3 rankmenu.amxx running
[ 15] CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sql.am running
[ 16] CSXSQL: Onlinetime Awa 0.2 serfreeman1337 csstatsx_playti running
[ 17] Restrict Weapons 1.8.3-dev+ AMXX Dev Team restmenu.amxx running
[ 18] Pause Plugins 1.8.3-dev+ AMXX Dev Team pausecfg.amxx running
[ 19] Stats Configuration 1.8.3-dev+ AMXX Dev Team statscfg.amxx running
[ 20] AES: StatsX 0.5 Vega serfreeman1337 aes_statsx_cstr running
[ 21] Say me and Say hp 1.4 neygomon sayme.amxx running
[ 22] Mode 2x2 2.5re s1lent mode.amxx running
[ 23] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 24] Dust2 Online [RR] 0.1 neugomon.ru dust2_online_rr running
[ 25] Chat Manager 1.1.1-11 Mistrick chatmanager.amx running
[ 26] Chat Manager: Addon 0.0.4-70 Mistrick chatmanager_add running
[ 27] Nade Health 1.2 medusa NadeHealth.amxx running
[ 28] Block TextMsg 1.0 AcE block.amxx running
[ 29] First Killer Bonus 0.0.1f wopox1337 FirstKillerBonu running
[ 30] CS AFK Manager 1.0.6 (amx Freeman afk_manager_1-8 running
[ 31] Replace Info Message 2.3 maeStro aka 9iky info_msg.amxx running
[ 32] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 33] Team Balance Control 1.3.9 gyxoBka TeamBalanceCont debug
[ 34] Auto Demo Recorder 2.2.1 F@nt0M demo_recorder.a running
[ 35] Reset Score 0.0.2f wopox1337 rss.amxx running
[ 36] Advanced Gag 1.9.0 neygomon amx_gag.amxx running
[ 37] [reAPI] Flash Control 1.1 neugomon flash_control.a running
[ 38] VIPka 1.34 neygomon vip_system.amxx running
[ 39] Adverts 1.0 pUzzlik adverts_message running
[ 40] MOTD Commands 1.2 OciXCrom crx_motdcommand running
[ 41] AES Bonus: Flags 0.1 Sonyx aes_bonus_flags running
[ 42] Advanced Experience Sy 0.5 Vega serfreeman1337 aes_main.amxx running
[ 43] AES: CStrike Addon 0.5 Vega serfreeman1337 aes_exp_cstrike running
[ 44] AES: Informer 0.5 Vega serfreeman1337 aes_informer.am running
[ 45] AES: Admin Tools 0.5 Vega serfreeman1337 aes_exp_editor. running
[ 46] AES: Bonus System 0.5 Vega serfreeman1337 aes_bonus_syste running
[ 47] AES: Bonus CSTRIKE 0.5 Vega serfreeman1337 aes_bonus_cstri running
47 plugins, 47 running
- Исходный код
-
#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);
enum (+=1) {
NONE = 0,
AMX,
FB
}
enum _:qState { AddOne, AddTwo }
new g_System = NONE;
new Handle:g_DBTuple;
new g_TableAdmins[32], g_TableSAdmins[32], g_TableSInfo[32], g_ServerIp[25];
new g_szQuery[512], g_Data[2];
public plugin_init()
{
#define PNAME "AES Bonus: Flags"
#define PVERSION "0.1"
#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 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, "^3[^4STATS^3] Отсутствует подключение к Базе!");
return 0;
}
if (get_user_flags(id) & read_flags(flags))
{
client_print_color(id, id, "^3[^4AES^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.txt and bonus.ini прописал, но что то в /anew нету записи купить вип
В этой теме было размещено решение! Перейти к решению.