- Ошибка
-
Админов слышат все игроки через команду +adminvoice и все могут пользоваться командой, кто ее знает, а не только с флагом доступа d
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5270 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Jun 3 2020 15:25:29
Built from: https://github.com/alliedmodders/amxmodx/commit/1bfec70
Build ID: 5270:1bfec70
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.7.0.696-dev
Build date: 18:46:47 May 18 2020 (2228)
Build from: https://github.com/dreamstalker/rehlds/commit/987ee51
- ReGamedll
-
ReGameDLL version: 5.18.0.470-dev
Build date: 16:42:40 Jun 17 2020
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/3878f46
- Версия 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
- Список метамодулей
-
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.0.92c ini Start Never
[ 3] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5270 ini Start ANY
[ 4] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 5] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 6] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 8] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 9] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[10] MySQL RUN - mysql_amxx_i386.so v1.9.0.5270 pl3 ANY ANY
[11] VTC AMXX API RUN - VtcApi_amxx_i386.so v2017 RC pl3 ANY ANY
[12] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl3 ANY Never
[13] ReAPI RUN - reapi_amxx_i386.so v5.14.0.195-dev pl3 ANY Never
[14] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5270 pl3 ANY ANY
[15] Engine RUN - engine_amxx_i386.so v1.9.0.5270 pl3 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5270 pl3 ANY ANY
[17] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5270 pl3 ANY ANY
[18] CSX RUN - csx_amxx_i386.so v1.9.0.5270 pl3 ANY ANY
[19] Fun RUN - fun_amxx_i386.so v1.9.0.5270 pl3 ANY ANY
19 plugins, 19 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] GameCMS_API 5.3.5 zhorzh78 gamecms_api_5.3 running
[ 2] CSStatsX SQL 0.7.4+2 serfreeman1337 csstatsx_sql.am running
[ 3] [190] Cvar On Map 19.12.07 SKAJIbnEJIb cvar_on_map.amx running
[ 4] Admin Voice Chat 0.2 mx?! admin_voice_cha running
[ 5] [190] Ultimate Weapons 19.11.29 SKAJIbnEJIb ultimate_weapon running
[ 6] GameCMS_GagManager 2.2.3 ReAP zhorzh78 gamecms_gagmana running
[ 7] From Rock to Ban 1.02 Safety1st++ rock2gag.amxx running
[ 8] [182] AC Spectator ESP 17.08.09 SKAJIbnEJIb & Ko ac_esp.amxx running
[ 9] Yet Another SpamGuard 1.2 AndrewZ/voed yet_another_spa running
[ 10] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 11] FreshBans 1.4.3b kanagava fresh_bans_143_ running
[ 12] DopBan 3.0.3b kanagava dop_ban303_.amx running
[ 13] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 14] AES: StatsX 0.5.9 [REA serfreeman1337/s aes_statsx_cstr running
[ 15] ReParachute 1.4 PurposeLess reparachute.amx running
[ 16] Maps Menu 19.09.01 SKAJIbnEJIb & AM mapsmenu_rbs.am running
[ 17] Admin Commands 1.9.0.5270 AMXX Dev Team admincmd.amxx running
[ 18] Menus Front-End 1.9.0.5270 AMXX Dev Team menufront.amxx running
[ 19] Commands Menu 1.9.0.5270 AMXX Dev Team cmdmenu.amxx running
[ 20] Players Menu 1.9.0.5270 AMXX Dev Team plmenu.amxx running
[ 21] Admin Chat 1.9.0.5270 AMXX Dev Team adminchat.amxx running
[ 22] Admin Votes 1.9.0.5270 AMXX Dev Team adminvote.amxx running
[ 23] [190] MapChooser RBS 20.06.06 SKAJIbnEJIb & UF mapchooser_rbs. running
[ 24] [190] TimeLeft 18.09.25 SKAJIbnEJIb & AM timeleft.amxx running
[ 25] [190] NextMap 18.09.25 SKAJIbnEJIb & AM nextmap.amxx running
[ 26] Stats Configuration 1.9.0.5270 AMXX Dev Team statscfg.amxx running
[ 27] Restrict Weapons 1.9.0.5270 AMXX Dev Team restmenu.amxx running
[ 28] StatsX 1.9.0.5263 AMXX Dev Team statsx.amxx running
[ 29] Custom Smoke 1.09 bionext custom_smoke.am running
[ 30] Style C4 Timer 3.1 OciXCrom crx_c4timer.amx running
[ 31] Team Balance Control 1.3.9 gyxoBka TeamBalanceCont running
[ 32] [190] Snipers RBS 20.06.06 SKAJIbnEJIb snipers_rbs.amx running
[ 33] AFK Control ReNew 1.2(a) neygomon afk_control.amx running
[ 34] Demo Recorder 2.4.3 PARTIZAN demo_recorder.a running
[ 35] [ReAPI] No Team Flash 0.0.3 Vaqtincha no_team_flash.a running
[ 36] Ping Control 1.31 neygomon Ping_Control.am running
[ 37] Reset Score 0.0.2f wopox1337 rs.amxx running
[ 38] [190] Ultimate Flags 20.06.06 SKAJIbnEJIb ultimate_flags. running
[ 39] Advert Messages 1.22 neygomon adverts.amxx running
[ 40] [190] VIP RBS 20.06.06 SKAJIbnEJIb vip_rbs.amxx running
[ 41] [190] Warmup RBS 19.12.23 SKAJIbnEJIb warmup_rbs.amxx running
[ 42] Lite Translit 2.8 neygomon lite_translit_c running
[ 43] Advanced Experience Sy 0.5.9 [REA serfreeman1337/s aes_main.amxx running
[ 44] AES: CStrike Addon 0.5.9 [REA serfreeman1337/s aes_exp_cstrike running
[ 45] AES: Informer 0.5.9 [REA serfreeman1337/s aes_informer.am running
[ 46] AES: Admin Tools 0.5.9 [REA serfreeman1337/s aes_exp_editor. running
[ 47] AES: Bonus System 0.5.9 Vega serfreeman1337/s aes_bonus_syste running
[ 48] AES: Bonus CSTRIKE 0.5.9.1 [R serfreeman1337/s aes_bonus_cstri running
[ 49] AES Bonus: Flags 0.2 Sonyx aes_bonus_flags running
49 plugins, 49 running
- Автор плагина
- BlackSignature https://dev-cs.ru/members/1111/
- Версия плагина
- 0.2
- Исходный код
-
#include <amxmodx>
#tryinclude <reapi>
#if !defined _reapi_included
#include <fakemeta>
#endif
#if AMXX_VERSION_NUM < 183
#define client_disconnected client_disconnect
#endif
const ACCESS_FLAG = ADMIN_BAN // 'd', флаг доступа к админ-связи, смотрите 'include/amxmodx_const.inc'
new g_iSpeakBitSum
public plugin_init() {
register_plugin("Admin Voice Chat", "0.2", "mx?!")
#if defined _reapi_included
RegisterHookChain(RG_CSGameRules_CanPlayerHearPlayer, "CanPlayerHearPlayer_Pre")
#else
register_forward(FM_Voice_SetClientListening, "OnSetClientListening_Pre")
#endif
register_clcmd("+adminvoice", "func_AdminVoiceOn")
register_clcmd("-adminvoice", "func_AdminVoiceOff")
}
#if defined _reapi_included
public CanPlayerHearPlayer_Pre(iReceiver, iSender) {
if(!IsSpeak(iSender)) {
return HC_CONTINUE
}
SetHookChainReturn(ATYPE_BOOL, (get_user_flags(iReceiver) & ACCESS_FLAG) ? true : false)
return HC_SUPERCEDE
}
#else
public OnSetClientListening_Pre(iReceiver, iSender, bool:bCanHear) {
if(!IsSpeak(iSender)) {
return FMRES_IGNORED
}
engfunc(EngFunc_SetClientListening, iReceiver, iSender, (get_user_flags(iReceiver) & ACCESS_FLAG) ? true : false)
return FMRES_SUPERCEDE
}
#endif
public func_AdminVoiceOn(id) {
if((get_user_flags(id) & ACCESS_FLAG) && !IsSpeak(id)) {
SetSpeak(id)
client_cmd(id, "+voicerecord")
}
return PLUGIN_HANDLED
}
public func_AdminVoiceOff(id) {
if((get_user_flags(id) & ACCESS_FLAG) && IsSpeak(id)) {
ClearSpeak(id)
client_cmd(id, "-voicerecord")
}
return PLUGIN_HANDLED
}
public client_disconnected(id) {
ClearSpeak(id)
}
stock SetSpeak(id) (g_iSpeakBitSum |= (1 << id))
stock IsSpeak(id) return (g_iSpeakBitSum & (1 << id))
stock ClearSpeak(id) (g_iSpeakBitSum &= ~(1 << id))
Изначально была ошибка в логах
L 07/06/2020 - 19:37:03: [ReAPI] SetHookChainReturn: trying to set return value with incompatible type, expected 'ATYPE_BOOL'; got 'ATYPE_INTEGER'
L 07/06/2020 - 19:37:03: [AMXX] Run time error 10 (plugin "admin_voice_chat.amxx") (native "SetHookChainReturn") - debug not enabled!
Прочитал, что в связи с обновление REAPI нужно заменить в 35 строке ATYPE_INTEGER на ATYPE_BOOL - заменил, ошибка пропала, но плагин все равно не работает как нужно. Помогите плиз.
L 07/06/2020 - 19:37:03: [ReAPI] SetHookChainReturn: trying to set return value with incompatible type, expected 'ATYPE_BOOL'; got 'ATYPE_INTEGER'
L 07/06/2020 - 19:37:03: [AMXX] Run time error 10 (plugin "admin_voice_chat.amxx") (native "SetHookChainReturn") - debug not enabled!
Прочитал, что в связи с обновление REAPI нужно заменить в 35 строке ATYPE_INTEGER на ATYPE_BOOL - заменил, ошибка пропала, но плагин все равно не работает как нужно. Помогите плиз.