Участник
Пользователь
- Сообщения
- 41
- Реакции
- 7
- Помог
- 1 раз(а)
- Ошибка
-
Н
- ОС
- Linux
- Amx Mod X
-
1.9.0
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.6.0.672-dev
Build date: 17:31:06 Jun 5 2019 (1880)
Build from: https://github.com/dreamstalker/rehlds/commit/0c8d3d7
- ReGamedll
-
ReGameDLL version: 5.13.0.447-dev+m
Build date: 18:11:04 Jan 15 2020
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/2eba3b1
- Версия Metamod
-
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
- Список метамодулей
-
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 2] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 3] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5249 ini Start ANY
[ 4] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 5] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 6] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 8] MySQL RUN - mysql_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[ 9] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl3 ANY Never
[10] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[12] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[13] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[14] Fun RUN - fun_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[15] Engine RUN - engine_amxx_i386.so v1.9.0.5249 pl3 ANY ANY
[16] ReAPI RUN - reapi_amxx_i386.so v5.12.0.192-dev pl3 ANY Never
- Список плагинов
-
[ 1] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 2] Admin Base 1.9.0.5249 AMXX Dev Team admin.amxx running
[ 3] Admin Commands 1.9.0.5249 AMXX Dev Team admincmd.amxx running
[ 4] Admin Help 1.9.0.5249 AMXX Dev Team adminhelp.amxx running
[ 5] Slots Reservation 1.9.0.5249 AMXX Dev Team adminslots.amxx running
[ 6] Multi-Lingual System 1.9.0.5249 AMXX Dev Team multilingual.am running
[ 7] Commands Menu 1.9.0.5249 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.9.0.5249 AMXX Dev Team plmenu.amxx running
[ 9] Maps Menu 1.9.0.5249 AMXX Dev Team mapsmenu.amxx running
[ 10] Plugin Menu 1.9.0.5249 AMXX Dev Team pluginmenu.amxx running
[ 11] Admin Chat 1.9.0.5249 AMXX Dev Team adminchat.amxx running
[ 12] Anti Flood 1.9.0.5249 AMXX Dev Team antiflood.amxx running
[ 13] Scrolling Message 1.9.0.5249 AMXX Dev Team scrollmsg.amxx running
[ 14] Info. Messages 1.9.0.5249 AMXX Dev Team imessage.amxx running
[ 15] Admin Votes 1.9.0.5249 AMXX Dev Team adminvote.amxx running
[ 16] NextMap 1.9.0.5249 AMXX Dev Team nextmap.amxx running
[ 17] Nextmap Chooser 1.9.0.5249 AMXX Dev Team mapchooser.amxx running
[ 18] TimeLeft 1.9.0.5247 AMXX Dev Team timeleft.amxx running
[ 19] Pause Plugins 1.9.0.5249 AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configuration 1.9.0.5249 AMXX Dev Team statscfg.amxx running
[ 21] StatsX 1.9.0.5249 AMXX Dev Team statsx.amxx running
[ 22] Advert Messages 1.22 neygomon adverts.amxx running
[ 23] Afk Control 0.5.1 neygomon afk_control.amx running
[ 24] Ping Checker 26.0.1 RC1 h1k3 ping_checker.am running
[ 25] Reset Score 0.1 sweden resetscore.amxx running
[ 26] Public Mode[Main Plugi 1.1 opcode public_mod.amxx running
[ 27] System Clans 1.0 O'Zone public_clans.am debug
[ 28] System Accounts 1.0 O'Zone public_accounts running
[ 29] Public Rank System 1.0 opcode public_ranks.am running
[ 30] Public Quest 1.0 opcode public_quest.am running
[ 31] System VIP 1.2 sweden public_vip.amxx running
[ 32] Inspect 1.0 opcode public_inspect. running
[ 33] CS:GO Transfer 1.0 O'Zone public_transfer running
[ 34] Public Nades 1.0 opcode public_nades.am running
[ 35] Server Menu 1.3 sweden menuserversv3.a running
- Автор плагина
- O'Zone
- Версия плагина
- 1.0
- Исходный код
-
Исходник в закрепе
Не удаляются заявки с клана когда нажимаешь отклонить
Код:
public applications_confirm_menu(id, menu, item)
{
if (!is_user_connected(id) || end) return PLUGIN_HANDLED;
if (item == MENU_EXIT) {
menu_destroy(menu);
leader_menu(id);
return PLUGIN_HANDLED;
}
new menuData[128], userName[32], itemAccess, itemCallback;
menu_item_getinfo(menu, item, itemAccess, userName, charsmax(userName), _, _, itemCallback);
menu_destroy(menu);
formatex(menuData, charsmax(menuData), "\wЧто вы хотите сделать, чтобы взять игрока \y%s \w?", userName);
new menu = menu_create(menuData, "applications_confirm_handle");
menu_additem(menu, "Взять - \rВступительные взносы от банка клана", userName);
menu_additem(menu, "Взять - \yвступительный взнос со счета игрока", userName);
menu_additem(menu, "Отклонить");
menu_setprop(menu, MPROP_EXITNAME, "Выход");
menu_display(id, menu);
return PLUGIN_HANDLED;
}
public applications_confirm_handle(id, menu, item)
{
if (!is_user_connected(id) || end) return PLUGIN_HANDLED;
if (item == MENU_EXIT) {
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new userName[32], itemAccess, itemCallback;
menu_item_getinfo(menu, item, itemAccess, userName, charsmax(userName), _, _, itemCallback);
menu_destroy(menu);
if (item == 2) {
remove_application(id, userName);
client_print_color(id, id, "^x04•^x01 Вы отклонили заявку игрока^x03 %s^01 на вступление в клан.", userName);
return PLUGIN_HANDLED;
}
if (check_user_clan(userName)) {
client_print_color(id, id, "^x04•^x01 Игрок присоединился к другому клану!");
show_clan_menu(id);
return PLUGIN_HANDLED;
}
if (((get_clan_info(clan[id], CLAN_LEVEL) * cvarMembersPerLevel) + cvarMembersStart) <= get_clan_info(clan[id], CLAN_MEMBERS)) {
client_print_color(id, id, "^x04•^x01 Клан достиг максимального количества участников на данный момент!");
return PLUGIN_HANDLED;
}
if (!item) {
if (get_clan_money(clan[id]) < cvarJoinFee) {
client_print_color(id, id, "^x04•^x01 В банке клана недостаточно денег для оплаты вступительного взноса (^x04Нужно %i $^x01).", floatround(cvarJoinFee));
return PLUGIN_HANDLED;
}
set_clan_info(clan[id], CLAN_MONEY, _, -cvarJoinFee);
} else {
new userId = get_user_index(userName);
if (is_user_connected(userId)) {
if (csgo_get_money(id) < cvarJoinFee) {
client_print_color(id, id, "^x04•^x01 Игроку не хватает денег на вступительный взнос (^x04Нужно %i $^x01).", floatround(cvarJoinFee));
return PLUGIN_HANDLED;
}
csgo_add_money(id, -cvarJoinFee);
} else {
new queryData[128], error[128], safeName[64], Handle:query, Float:money, errorNum;
mysql_escape_string(userName, safeName, charsmax(safeName));
formatex(queryData, charsmax(queryData), "SELECT money FROM `csgo_data` WHERE `name` = ^"%s^"", safeName);
query = SQL_PrepareQuery(connection, queryData);
if (SQL_Execute(query)) {
if (SQL_MoreResults(query)) SQL_ReadResult(query, SQL_FieldNameToNum(query, "money"), money);
} else {
errorNum = SQL_QueryError(query, error, charsmax(error));
log_to_file("csgo-error.log", "SQL Query Error. [%d] %s", errorNum, error);
}
SQL_FreeHandle(query);
if (money < cvarJoinFee) {
client_print_color(id, id, "^x04•^x01 Игроку не хватает денег на вступительный взнос (^x04Нужно %i $^x01).", floatround(cvarJoinFee));
return PLUGIN_HANDLED;
}
formatex(queryData, charsmax(queryData), "UPDATE `csgo_data` SET money = money - %.2f WHERE `name` = ^"%s^"", cvarJoinFee, safeName);
query = SQL_PrepareQuery(connection, queryData);
if (!SQL_Execute(query)) {
errorNum = SQL_QueryError(query, error, charsmax(error));
log_to_file("csgo-error.log", "SQL Query Error. [%d] %s", errorNum, error);
}
SQL_FreeHandle(query);
}
}
accept_application(id, userName);
client_print_color(id, id, "^x04•^x01 Вы приняли заявку игрока^x03 %s^01 на вступление в клан.", userName);
return PLUGIN_HANDLED;
}
stock remove_application(id, const name[] = "")
{
new player = get_user_index(name);
if (is_user_connected(player)) {
new clanName[32], userName[32];
get_clan_info(clan[id], CLAN_NAME, clanName, charsmax(clanName));
get_user_name(id, userName, charsmax(userName));
//client_print_color(player, player, "^x04[CS:GO]^x03 %s^x01 odrzucil twoje podanie do klanu^x03 %s^x01!", userName, clanName);
}
new queryData[512], safeName[64];
if (strlen(name)) mysql_escape_string(name, safeName, charsmax(safeName));
else copy(safeName, charsmax(safeName), playerName[id]);
formatex(queryData, charsmax(queryData), "DELETE FROM `csgo_clans_applications` WHERE name = ^"%s^" AND clan = '%i'", safeName, clan[id]);
SQL_ThreadQuery(sql, "ignore_handle", queryData);
}
Вложения
-
89.4 KB Просмотры: 220