Portugal
Пользователь
- Регистрация
- 2 Мар 2018
- Сообщения
- 257
- Симпатии
- 5
- Предупреждения
- 60
- Пол
- Мужской
- OS
- Linux
- Amx Mod X
- AMXX 1.8.3-dev
- Билд
-
[code=cpp]Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.664-dev
Build date: 10:46:45 Sep 19 2018 (1621)
Build from: https://github.com/dreamstalker/rehlds/commit/83f53fb[/code]
- ReGamedll
-
[code=cpp]ReGameDLL version: 5.7.0.313-dev
Build date: 08:39:22 Sep 9 2018
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/e924a26[/code]
- Metamod
-
[code=cpp]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[/code]
- Meta модули
-
Код:C++:
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never [ 2] WHBlocker RUN - whblocker_mm_i386.so v1.5.695 ini Chlvl ANY [ 3] SoftBlocker RUN - softblocker_mm_i386.so v1.1g ini ANY Never [ 4] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY [ 5] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never [ 6] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY [ 7] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY [ 8] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5221 ini Start ANY [ 9] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl8 ANY Never [10] ReAPI RUN - reapi_amxx_i386.so v5.6.0.158-dev pl8 ANY Never [11] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5221 pl8 ANY ANY [12] CSX RUN - csx_amxx_i386.so v1.9.0.5221 pl8 ANY ANY [13] Fun RUN - fun_amxx_i386.so v1.9.0.5221 pl8 ANY ANY [14] Engine RUN - engine_amxx_i386.so v1.9.0.5221 pl8 ANY ANY [15] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5221 pl8 ANY ANY [16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5221 pl8 ANY ANY [17] MySQL RUN - mysql_amxx_i386.so v1.9.0.5221 pl8 ANY ANY
- Плагины
-
Код:C++:
map_manager_core.amxx map_manager_scheduler.amxx map_manager_rtv.amxx map_manager_nomination.amxx map_manager_blocklist.amxx map_manager_online_sorter.amxx map_manager_effects.amxx map_manager_informer.amxx map_manager_adv_lists.amxx re_vip_core.amxx ; Vip Core re_vip_menu.amxx ; Weapons menu & Bonus Spawn re_vip_connect_info.amxx ; Vips connect info chat ;re_vip_reset_score.amxx ; Reset Score for vip re_vip_tab_info.amxx ; Score Tab Info VIP re_vip_hp_add.amxx ; Add Hp (Vampire) [ 15] Stats Configuration 1.9.0.5221 AMXX Dev Team statscfg.amxx running [ 16] Restrict Weapons 1.9.0.5221 AMXX Dev Team restmenu.amxx running [ 17] CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sql.am running [ 18] AES: StatsX 0.5 Vega serfreeman1337 aes_statsx_cstr running [ 19] StatsX 1.9.0.5221 AMXX Dev Team statsx.amxx running [ 20] Announcer Killstreak 2.0 Jumper & mx?! killsound.amxx running [ 21] [ReAPI] Admin Models 0.0.2 Vaqtincha reapi_adminvipm debug [ 22] Smoke: HealthNade 0.0.3 wopox1337 smkhlndvip.amxx debug [ 23] [ReAPI]No Team Flash 1.0 ReHLDS Team notmflashvip.am debug [ 24] molodejj_damager 1.1 sector damagervipz.amx debug [ 25] PrizeAwp 0.1 Demonx prizeawp.amxx debug [ 26] [ReAPI] AimEspFix VIP 1.0 ? fix_vip_tab.amx debug [ 27] Prize Knife 0.1 Safety1st knifeflags.amxx debug [ 28] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a debug [ 29] Show Motd 0.1 unnamed motdpriv.amxx debug [ 30] Show IP 1.0 $uicid3 amx_ip.amxx debug [ 31] antikill 1.0 Portugal antikill.amxx debug [ 32] Masofke.eu Signed Scre 1.0 ThE_ChOSeN_OnE msfk_snapshot.a debug [ 33] Advanced Gag 1.9.0 neygomon amx_gag.amxx debug [ 34] AFK Control 1.4.1 [Rnd neygomon afk_control.amx debug [ 35] Random Skies 1.1 tuty randomskies.amx debug [ 36] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a debug [ 37] Knife warmup 0.1 Subb98 knife_warmup.am stopped [ 38] Auto Demo Recorder 2.2.1 F@nt0M demo_recorder.a debug [ 39] Radio Hudmsg Block 1.0 AcE radiohudmsgbloc debug [ 40] Adverts 1.0 pUzzlik adverts_message debug [ 41] Dead Messages 2.0 maFFyoZZyk dead.amxx debug [ 42] Music Connect 1.1 Leo_[BH] music_connect.a debug [ 43] Real Damage [ReApi] 2.0 Leo_[BH] real_damage.amx debug [ 44] unknown unknown unknown ShowChangerName debug [ 45] Bestplayer 0.2 Huntai bestplayer.amxx debug [ 46] [ReAPI] AWPoff 1.4.3 PAffAEJIkA :3 awp_off.amxx debug [ 47] Rat Bomb 1.0 Seroff mfsc4mdl.amxx debug [ 48] C4 Timer 0.1 Lightman bombtimer.amxx debug [ 49] resetscore(ReAPI) 1.0 Phantom resetscore.amxx debug [ 50] Killer ScreenFade 0.0.5 Vaqtincha reapi_killer_sc debug [ 51] unknown unknown unknown mg_sound.amxx debug [ 52] AFK Bomb Transfer 0.4 VEN afkbombtransfer debug [ 53] Team menu 1.1 NobodyInTeam teammenu.amxx debug [ 54] Icon Color 1.0 AcE icon_color.amxx debug [ 55] Pop Grenades 1.2 EFFx/HamletEagle GrenadePop.amxx debug [ 56] GameName Changer 1.0 neugomon gamename_change debug [ 57] MSFK VTB 1.4 neygomon lite_voteban.am debug [ 58] Map Manager: Core 3.0.0 Mistrick map_manager_cor running [ 59] Map Manager: Scheduler 0.1.0 Mistrick map_manager_sch running [ 60] Map Manager: Rtv 0.0.4 Mistrick map_manager_rtv running [ 61] Map Manager: Nominatio 0.0.8 Mistrick map_manager_nom running [ 62] Map Manager: BlockList 0.0.3 Mistrick map_manager_blo running [ 63] Map Manager: Online so 0.0.2 Mistrick map_manager_onl running [ 64] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running [ 65] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running [ 66] Map Manager: Advanced 0.0.4 Mistrick map_manager_adv running [ 67] [ReVIP] System Core 2.5 free pUzzlik re_vip_core.amx running [ 68] [ReVIP] Menu 2.5 free pUzzlik re_vip_menu.amx running [ 69] [ReVIP] Connected Info 2.5 free pUzzlik re_vip_connect_ running [ 70] [ReVIP] Tab Info 2.5 free pUzzlik re_vip_tab_info running [ 71] [ReVIP] Add HP 2.5 free pUzzlik re_vip_hp_add.a running [ 72] Advanced Experience Sy 0.5 Vega serfreeman1337 aes_main.amxx running [ 73] AES: CStrike Addon 0.5 Vega serfreeman1337 aes_exp_cstrike running
- Amxx Модули
-
Код:C++:
ReAimDetector 0.2.2 ReHLDS Team running ReAPI 5.6.0.158- Asmodai & s1lent running CStrike 1.9.0.5221 AMX Mod X Dev Team running CSX 1.9.0.5221 AMX Mod X Dev Team running Fun 1.9.0.5221 AMX Mod X Dev Team running Engine 1.9.0.5221 AMX Mod X Dev Team running FakeMeta 1.9.0.5221 AMX Mod X Dev Team running nVault 1.9.0.5221 AMX Mod X Dev Team running Ham Sandwich 1.9.0.5221 AMX Mod X Dev Team running MySQL 1.9.0.5221 AMX Mod X Dev Team running
- Ошибка
-
Код:Дублируется текст
- Исходник
-
Код:C++:
#include <amxmodx> #define ADMIN_NONE -1 #define MIN_PLAYERS 4 // Минимальное кол-во Žaidėjasов на сервере для запуска Balsuания #define BAN_RATIO 0.6 // Коэффицент Balsu для бана. 0.1 - 10% | 1.0 - 100% #define VB_DELAY 120 // Время(в секундах) между Balsuаниями. Защита от лалок, которые хотят всех перебанить xD #define VB_TIME 10.0 // Продолжительность Balsuания #define VB_BANTIME 60 // Время бана в минутах #define VB_TYPE 1 // Тип наказания. 0 - кик, 1 - AmxBans/FreshBans, 2 - SuperBan #define ACCESS ADMIN_NONE // Доступ к функциям вотебана. Чтобы разрешить всем использовать поставьте ADMIN_NONE // Стандартные причины VoteBan. Не указывайте больше 8-ми. Может сломаться менюшка :D // Пункт "Своя причина" добавляется в конце списка. new g_aBanReasons[][64] = { "AIM", "WH", "Maišo žaidimui" } new g_iReasonsMenu; new g_iVoteMenu; new _access, callback, ItemData[3]; new g_iInsider; new g_iVoteStartTime; new g_iVoteCount, bool:g_bIsVoted[33]; new g_iVictim; new g_sBanReason[128]; new g_iVoteBanPlayersNum, g_iVoteBanPlayers[33]; public plugin_init() { #define VERSION "1.4" register_plugin("MSFK VTB", VERSION, "neygomon"); register_cvar("lite_voteban", VERSION, FCVAR_SERVER | FCVAR_SPONLY); register_clcmd("say /voteban", "ClCmdVoteban"); register_clcmd("say_team /voteban", "ClCmdVoteban"); register_clcmd("vtb_reason", "ClCmdReason"); } public plugin_cfg() { g_iReasonsMenu = menu_create("\d[\rMSFK VTB\d] \yPasirinkite bano priežasti\w", "ReasonsMenuHandler"); g_iVoteMenu = menu_create("UNNAMED_MENU", "VoteMenuHandler"); menu_setprop(g_iReasonsMenu, MPROP_EXIT, MEXIT_NEVER); menu_setprop(g_iReasonsMenu, MPROP_PERPAGE, 0); menu_setprop(g_iVoteMenu, MPROP_EXIT, MEXIT_NEVER); new num[3]; for(new i; i < sizeof g_aBanReasons; i++) { num_to_str(i, num, charsmax(num)); menu_additem(g_iReasonsMenu, g_aBanReasons[I], num); } menu_addblank(g_iReasonsMenu, 0); menu_additem(g_iReasonsMenu, "\ySavo priežastį", "69"); menu_additem(g_iVoteMenu, "\rTaip", "1"); menu_additem(g_iVoteMenu, "\yNe", "0"); }[/I] [I]public client_disconnected(id) { if(g_bIsVoted[id]) { g_bIsVoted[id] = false; g_iVoteCount--; } }[/I] [I]public ClCmdVoteban(id) { #if ACCESS != ADMIN_NONE if(~get_user_flags(id) & ACCESS) { new flag[25]; get_flags(ACCESS, flag, charsmax(flag)); ChatColor(id, "^1[^4WARN^1] ^4Prieiga uždrausta! Leidžiama tik žaidėjams su flagu ^3%s^4!", flag); return PLUGIN_HANDLED; } #endif static players[32], pnum, iVtbDelay; if(g_iInsider) return ChatColor(id, "^1[^4MSFK VTB^1] ^4Balsavimas ^3jau užleistas^4!"); if((iVtbDelay = g_iVoteStartTime + VB_DELAY - get_systime()) > 0) return ChatColor(id, "^1[^4MSFK VTB^1] ^4Balsavimas veiks po ^3%d ^4min. ^3%d ^4sek.", (iVtbDelay / 60), (iVtbDelay % 60)); get_players(players, pnum); if(MIN_PLAYERS > pnum) return ChatColor(id, "^1[^4MSFK VTB^1] ^4Reikalinga bent ^3%d ^4žaidėjų balsavimo paleidimui!", MIN_PLAYERS); g_iVoteBanPlayersNum = 0; for(new i; i < pnum; i++) { if(get_user_flags(players[I]) & ADMIN_MENU) return ChatColor(id, "^1[^4MSFK VTB^1] ^4Serveryje yra ^3administratorius^4!"); g_iVoteBanPlayers[g_iVoteBanPlayersNum++] = players[I]; } return SelectPlayerOnBan(id); }[/I][/I][/I] [I][I][I]public SelectPlayerOnBan(id) { new iPlayersMenu = menu_create("\d[\rMSFK VTB\d] \yPasirinkite žaidėją\w", "PlayersMenuHandler"); new iCallBack = menu_makecallback("PlayersMenuCallback"); menu_setprop(iPlayersMenu, MPROP_BACKNAME, "Back"); menu_setprop(iPlayersMenu, MPROP_NEXTNAME, "Next"); menu_setprop(iPlayersMenu, MPROP_EXITNAME, "Exit"); new name[32], num[3]; for(new i; i < g_iVoteBanPlayersNum; i++) { if(g_iVoteBanPlayers[I] == id) continue; get_user_name(g_iVoteBanPlayers[I], name, charsmax(name)); num_to_str(g_iVoteBanPlayers[I], num, charsmax(num)); menu_additem(iPlayersMenu, name, num, 0, iCallBack); } menu_display(id, iPlayersMenu, 0); return PLUGIN_HANDLED; }[/I][/I][/I][/I][/I][/I] [I][I][I][I][I][I]public PlayersMenuCallback(id, menu, item) { static ItemName[32], ItemNewName[64]; menu_item_getinfo(menu, item, _access, ItemData, charsmax(ItemData), ItemName, charsmax(ItemName), callback); if(get_user_flags(str_to_num(ItemData)) & ADMIN_IMMUNITY) { formatex(ItemNewName, charsmax(ItemNewName), "\d%s \y[\rImmunity\y]", ItemName); menu_item_setname(menu, item, ItemNewName); return ITEM_DISABLED; } return ITEM_ENABLED; }[/I][/I][/I][/I][/I][/I] [I][I][I][I][I][I]public PlayersMenuHandler(id, menu, item) { if(item == MENU_EXIT) { menu_destroy(menu); return PLUGIN_HANDLED; } menu_item_getinfo(menu, item, _access, ItemData, charsmax(ItemData), _, _, callback); g_iVictim = str_to_num(ItemData); menu_destroy(menu); return menu_display(id, g_iReasonsMenu); }[/I][/I][/I][/I][/I][/I] [I][I][I][I][I][I]public ReasonsMenuHandler(id, menu, item) { menu_item_getinfo(menu, item, _access, ItemData, charsmax(ItemData), _, _, callback); new ReasonId = str_to_num(ItemData); if(ReasonId == 69) client_cmd(id, "messagemode vtb_reason"); else { g_sBanReason = g_aBanReasons[ReasonId]; VoteBanAction(id); } return PLUGIN_HANDLED; }[/I][/I][/I][/I][/I][/I] [I][I][I][I][I][I]public ClCmdReason(id) { #if ACCESS != ADMIN_NONE if(~get_user_flags(id) & ACCESS) { new flag[25]; get_flags(ACCESS, flag, charsmax(flag)); ChatColor(id, "^1[^4WARN^1] ^4Prieiga uždrausta! Leidžiama tik žaidėjams su flagu ^3%s^4!", flag); return PLUGIN_HANDLED; } #endif static sReason[64]; read_args(sReason, charsmax(sReason)); remove_quotes(sReason); g_sBanReason = sReason[0] ? sReason : "unknown"; return VoteBanAction(id); }[/I][/I][/I][/I][/I][/I] [I][I][I][I][I][I]VoteBanAction(id) { static sInsName[32], sVicName[32], sTitle[256]; get_user_name(id, sInsName, charsmax(sInsName)); get_user_name(g_iVictim, sVicName, charsmax(sVicName)); formatex(sTitle, charsmax(sTitle), "\rUžbaninti \y%s\w?^n\rPriežastis\w: \y%s^n\dUžleido \r%s", sVicName, g_sBanReason, sInsName); menu_setprop(g_iVoteMenu, MPROP_TITLE, sTitle); g_iInsider = id; g_iVoteStartTime = get_systime(); g_iVoteCount = 0; arrayset(g_bIsVoted, false, sizeof(g_bIsVoted)); for(new i; i < g_iVoteBanPlayersNum; ++i) { if(g_iVoteBanPlayers[I] != g_iVictim) menu_display(g_iVoteBanPlayers[I], g_iVoteMenu); } return set_task(VB_TIME, "VoteBanResults"); }[/I][/I][/I][/I][/I][/I][/I][/I] [I][I][I][I][I][I][I][I]public VoteMenuHandler(id, menu, item) { if(item != MENU_EXIT) { menu_item_getinfo(menu, item, _access, ItemData, charsmax(ItemData), _, _, callback); if(str_to_num(ItemData)) { g_iVoteCount++; g_bIsVoted[id] = true; } } return PLUGIN_HANDLED; }[/I][/I][/I][/I][/I][/I][/I][/I] [I][I][I][I][I][I][I][I]public VoteBanResults() { show_menu(0, 0, "^n", 1); // визуально закрываем меню. if(is_user_connected(g_iVictim)) { new iVoteBanMinVotes = floatround(BAN_RATIO * float(g_iVoteBanPlayersNum)); new name[32]; get_user_name(g_iVictim, name, charsmax(name)); if(g_iVoteCount >= iVoteBanMinVotes) { #if VB_TYPE == 0 server_cmd("kick #%d ^"%s^"", get_user_userid(g_iVictim), g_sBanReason); #endif #if VB_TYPE == 1 server_cmd("amx_ban %d #%d ^"%s^"", VB_BANTIME, get_user_userid(g_iVictim), g_sBanReason); #endif #if VB_TYPE == 2 server_cmd("amx_superban #%d %d ^"%s^"", get_user_userid(g_iVictim), VB_BANTIME, g_sBanReason); #endif ChatColor(0, "^1[^4MSFK VTB^1] ^4Balsavimas baigtas! Žaidėjas ^3%s ^1buvo ^3užbanintas^4! ^1[^4Balsu: ^3%d ^1| ^4Reikalinga: ^3%d^1]", name, g_iVoteCount, iVoteBanMinVotes); log_amx("VoteBan SUCCESS. Player ^"%s^" [Reason: ^"%s^"][Vote: %d | MinVote: %d]", name, g_sBanReason, g_iVoteCount, iVoteBanMinVotes); } else { ChatColor(0, "^1[^4MSFK VTB^1] ^4Balsavimas baigtas! Žaidėjas ^3%s ^1ne buvo ^3užbanintas^4! ^1[^4Balsu: ^3%d ^1| ^4Reikalinga: ^3%d^1]", name, g_iVoteCount, iVoteBanMinVotes); log_amx("VoteBan FAILED. Player ^"%s^" [Reason: ^"%s^"][Vote: %d | MinVote: %d]", name, g_sBanReason, g_iVoteCount, iVoteBanMinVotes); } } else ChatColor(g_iInsider, "^1[^4MSFK VTB^1] ^4Nubausti nepavyko... Žaidėjas paliko serverį :("); g_iInsider = g_iVictim = 0; }[/I][/I][/I][/I][/I][/I][/I][/I] [I][I][I][I][I][I][I][I]stock ChatColor(const id, const szMessage[], any:...) { static pnum, players[32], szMsg[190], IdMsg; vformat(szMsg, charsmax(szMsg), szMessage, 3); if(!IdMsg) IdMsg = get_user_msgid("SayText"); if(id) { if(!is_user_connected(id)) return 1; players[0] = id; pnum = 1; } else get_players(players, pnum, "ch"); for(new i; i < pnum; i++) { message_begin(MSG_ONE, IdMsg, .player = players[I]); write_byte(players[I]); write_string(szMsg); message_end(); } return 1; }
Ребят помогите решить проблему дублируется текст скину скрин обозначу красным .
Вложения
-
140 KB Просмотры: 25