Пользователь
- Сообщения
- 59
- Реакции
- -14
- Ошибка
-
L 08/06/2019 - 07:08:44: Start of error session.
L 08/06/2019 - 07:08:44: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20190806.log")
L 08/06/2019 - 07:08:44: [ReAPI] SetHookChainReturn: trying to set return value with incompatible type, expected 'ATYPE_BOOL'; got 'ATYPE_INTEGER'
L 08/06/2019 - 07:08:44: [AMXX] Displaying debug trace (plugin "weaponrest.amxx", version "2.1")
L 08/06/2019 - 07:08:44: [AMXX] Run time error 10: native error (native "SetHookChainReturn")
L 08/06/2019 - 07:08:44: [AMXX] [0] weaponrest.sma::fwdHasRestrictItemPre (line 27)
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5249 (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 19 2019 13:31:53
Built from: https://github.com/alliedmodders/amxmodx/commit/6cecb34
Build ID: 5249:6cecb34
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.6.0.671-dev
Build date: 17:00:05 May 21 2019 (1865)
Build from: https://github.com/dreamstalker/rehlds/commit/3f809d0
- ReGamedll
-
ReGameDLL version: 5.9.0.363-dev
Build date: 18:17:20 Jul 8 2019
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/75bdc2
- Версия 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] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 2] SafeNameAndChat RUN - SafeNameAndChat.so v1.1 ini ANY ANY
[ 3] Revoice RUN - revoice_mm_i386.so v0.1.0.32 ini Start Never
[ 4] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 5] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 6] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 7] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5249 ini Start ANY
[ 8] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 9] ProcessCmds RUN - processcmds_mm_i386.so v1.1.5 ini Start Never
[10] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl7 ANY Never
[11] Engine RUN - engine_amxx_i386.so v1.9.0.5249 pl7 ANY ANY
[12] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5249 pl7 ANY ANY
[13] MySQL RUN - mysql_amxx_i386.so v1.9.0.5249 pl7 ANY ANY
[14] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5249 pl7 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5249 pl7 ANY ANY
[16] CSX RUN - csx_amxx_i386.so v1.9.0.5249 pl7 ANY ANY
[17] ReAPI RUN - reapi_amxx_i386.so v5.9.0.177-dev pl7 ANY Never
[18] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5249 pl7 ANY ANY
[19] Fun RUN - fun_amxx_i386.so v1.9.0.5249 pl7 ANY ANY
19 plugins, 19 running
- Список плагинов
-
Currently loaded plugins:
name version author file status
[ 1] [183] AMXBans RBS 18.10.13 SKAJIbnEJIb & La amxbans_rbs.amx running
[ 2] [183] Analizator 19.07.15 SKAJIbnEJIb analizator.amxx running
[ 3] Lite NightMode 1.0.6 neygomon lite_nightmode. running
[ 4] [183] MapChooser RBS 18.10.05 SKAJIbnEJIb & UF mapchooser_rbs. running
[ 5] [183] NextMap 18.09.25 SKAJIbnEJIb & AM nextmap.amxx running
[ 6] [183] TimeLeft 18.09.25 SKAJIbnEJIb & AM timeleft.amxx running
[ 7] [183] Army Ranks Ultim 18.05.15 SKAJIbnEJIb army_ranks_ulti running
[ 8] [183] Ultimate Informe 17.10.30 SKAJIbnEJIb ultimate_inform running
[ 9] [183] Ultimate Models 18.12.19 SKAJIbnEJIb ultimate_models running
[ 10] [183] Ultimate Weapons 18.08.08BE SKAJIbnEJIb ultimate_weapon running
[ 11] [183] Screen Player 19.02.22 SKAJIbnEJIb screen_player.a running
[ 12] [183] Ultimate Gag 19.02.05BE SKAJIbnEJIb ultimate_gag.am running
[ 13] [183] VIP RBS 18.12.17BE SKAJIbnEJIb vip_rbs.amxx running
[ 14] [183] High Ping Kicker 19.01.30 SKAJIbnEJIb hpk_rbs.amxx running
[ 15] [183] CsStats MySQL 18.08.09 SKAJIbnEJIb csstats_mysql.a running
[ 16] [183] CsStats Editor 18.03.24 SKAJIbnEJIb csstats_editor. running
[ 17] [183] StatsX RBS 18.03.24 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 18] [183] Stats Configurat 18.05.15 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 19] Menus Front-End 18.12.18 AMXX Dev Team & amxmodmenu_rbs. running
[ 20] [183] Skill ELO 18.03.24 SKAJIbnEJIb skill_elo.amxx running
[ 21] [183] Damager RBS 17.12.22 SKAJIbnEJIb damager_rbs.amx running
[ 22] [183] Chat RBS 19.08.01 SKAJIbnEJIb chat_rbs.amxx running
[ 23] [183] Chat Addons 19.08.01 SKAJIbnEJIb chat_addons.amx running
[ 24] Weapon Restrict 2.1 s1lent & neugomo weaponrest.amxx debug
[ 25] [183] Warmup RBS 18.08.06BE SKAJIbnEJIb warmup_rbs.amxx running
[ 26] [183] AdminChat RBS 19.02.22 SKAJIbnEJIb adminchat_rbs.a running
[ 27] [183] AdminCmd RBS 19.02.22 AMXX Dev Team & admincmd_rbs.am running
[ 28] [183] Ad From Server 17.10.30 SKAJIbnEJIb ad_from_server. running
[ 29] [183] AC GasPuff 17.10.30 SKAJIbnEJIb ac_gaspuff.amxx running
[ 30] [183] Maps Helper 17.10.30 SKAJIbnEJIb maps_helper.amx running
[ 31] [183] AfkKicker RBS 17.10.30 SKAJIbnEJIb afkkicker_rbs.a running
[ 32] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 33] [183] Kill Assist RBS 17.10.30 Digi & SKAJIbnEJ killassist_rbs. running
[ 34] [183] Top Award RBS 17.10.30 SKAJIbnEJIb topaward_rbs.am running
[ 35] [183] Snipers RBS 18.05.15 SKAJIbnEJIb snipers_rbs.amx running
[ 36] [183] ESP RBS 17.10.30 SKAJIbnEJIb & Ko esp_rbs.amxx running
[ 37] Parachute 1.4 Adidasman parachute_no_mo running
[ 38] Radio Hudmsg Block 1.0 AcE radio_hudmsg_bl running
[ 39] [ReAPI] No Team Flash 0.0.2 Vaqtincha no_team_flash.a running
[ 40] resetscore(ReAPI) 1.0 Phantom resetscore.amxx running
[ 41] DemoRecoder 1.2 neygomon amx_demorec.amx running
[ 42] Kills Counter 1.0 Safety1st killscounter.am running
[ 43] Comp::Pro 4.0 RevCrew CompPro.amxx running
[ 44] Block Change Name 1.0 DJ_WEST block_change_na running
[ 45] [ReAPI] Best player of 0.6 F@nt0M best_player_of_ running
[ 46] [183] Block Reconnect 17.08.09 ShaTalKiN Block_Reconnect running
[ 47] [183] Map Spawns Edito 17.08.27 iG_os & SKAJIbnE MapSpawnsEditor running
[ 48] [183] Marker RBS 17.10.30 stupok69 & SKAJI marker_rbs.amxx running
[ 49] Slots Reservation 1.9.0.5241 AMXX Dev Team adminslots.amxx running
[ 50] Multi-Lingual System 1.9.0.5241 AMXX Dev Team multilingual.am running
[ 51] Commands Menu 1.9.0.5241 AMXX Dev Team cmdmenu.amxx running
[ 52] Maps Menu 1.9.0.5241 AMXX Dev Team mapsmenu.amxx running
[ 53] Plugin Menu 1.9.0.5241 AMXX Dev Team pluginmenu.amxx running
[ 54] Anti Flood 1.9.0.5241 AMXX Dev Team antiflood.amxx running
[ 55] Pause Plugins 1.9.0.5241 AMXX Dev Team pausecfg.amxx running
55 plugins, 55 running
- Автор плагина
- s1lent & neugomon
- Версия плагина
- 2.1
- Исходный код
-
#include <amxmodx>
#include <reapi>
enum SectionBits
{
SECTION_WEAPONS,
SECTION_ITEMS
};
new g_BitsItemsBlocked[SectionBits];
public plugin_init()
{
register_plugin("Weapon Restrict", "2.1", "s1lent & neugomon");
LoadCfg();
RegisterHookChain(RG_CBasePlayer_HasRestrictItem, "fwdHasRestrictItemPre", false);
}
public fwdHasRestrictItemPre(const id, const ItemID:item, ItemRestType:type)
{
if((item < ITEM_NVG) ? g_BitsItemsBlocked[SECTION_WEAPONS] & (1 << any:item) :
g_BitsItemsBlocked[SECTION_ITEMS] & (1 << any:(item % ITEM_NVG)))
{
if(type == ITEM_TYPE_BUYING)
client_print(id, print_center, "*** Покупка запрещена! ***");
SetHookChainReturn(ATYPE_INTEGER, 1);
return HC_SUPERCEDE;
}
return HC_CONTINUE;
}
LoadCfg()
{
new szPath[64];
new szMapName[32]
new szLoadedConfig[96];
get_localinfo("amxx_configsdir", szPath, charsmax(szPath));
rh_get_mapname(szMapName, charsmax(szMapName));
formatex(szLoadedConfig, charsmax(szLoadedConfig), "%s/weaponrest/%s.ini", szPath, szMapName);
new fp = fopen(szLoadedConfig, "rt");
if(!fp)
{
formatex(szLoadedConfig, charsmax(szLoadedConfig), "%s/weaponrest/default.ini", szPath);
if(!(fp = fopen(szLoadedConfig, "rt")))
set_fail_state("Configs not read :(");
}
new Trie:tWeapons = TrieCreate();
new Trie:tItems = TrieCreate();
TrieSetCell(tWeapons, "ITEM_SHIELDGUN",any:ITEM_SHIELDGUN);
TrieSetCell(tWeapons, "ITEM_P228",any:ITEM_P228);
TrieSetCell(tWeapons, "ITEM_GLOCK",any:ITEM_GLOCK);
TrieSetCell(tWeapons, "ITEM_SCOUT",any:ITEM_SCOUT);
TrieSetCell(tWeapons, "ITEM_HEGRENADE", any:ITEM_HEGRENADE);
TrieSetCell(tWeapons, "ITEM_XM1014", any:ITEM_XM1014);
TrieSetCell(tWeapons, "ITEM_C4", any:ITEM_C4);
TrieSetCell(tWeapons, "ITEM_MAC10", any:ITEM_MAC10);
TrieSetCell(tWeapons, "ITEM_AUG", any:ITEM_AUG);
TrieSetCell(tWeapons, "ITEM_SMOKEGRENADE", any:ITEM_SMOKEGRENADE);
TrieSetCell(tWeapons, "ITEM_ELITE", any:ITEM_ELITE);
TrieSetCell(tWeapons, "ITEM_FIVESEVEN", any:ITEM_FIVESEVEN);
TrieSetCell(tWeapons, "ITEM_UMP45", any:ITEM_UMP45);
TrieSetCell(tWeapons, "ITEM_SG550", any:ITEM_SG550);
TrieSetCell(tWeapons, "ITEM_GALIL", any:ITEM_GALIL);
TrieSetCell(tWeapons, "ITEM_FAMAS", any:ITEM_FAMAS);
TrieSetCell(tWeapons, "ITEM_USP", any:ITEM_USP);
TrieSetCell(tWeapons, "ITEM_GLOCK18", any:ITEM_GLOCK18);
TrieSetCell(tWeapons, "ITEM_AWP", any:ITEM_AWP);
TrieSetCell(tWeapons, "ITEM_MP5N", any:ITEM_MP5N);
TrieSetCell(tWeapons, "ITEM_M249", any:ITEM_M249);
TrieSetCell(tWeapons, "ITEM_M3", any:ITEM_M3);
TrieSetCell(tWeapons, "ITEM_M4A1", any:ITEM_M4A1);
TrieSetCell(tWeapons, "ITEM_TMP", any:ITEM_TMP);
TrieSetCell(tWeapons, "ITEM_G3SG1", any:ITEM_G3SG1);
TrieSetCell(tWeapons, "ITEM_FLASHBANG", any:ITEM_FLASHBANG);
TrieSetCell(tWeapons, "ITEM_DEAGLE", any:ITEM_DEAGLE);
TrieSetCell(tWeapons, "ITEM_SG552", any:ITEM_SG552);
TrieSetCell(tWeapons, "ITEM_AK47", any:ITEM_AK47);
TrieSetCell(tWeapons, "ITEM_KNIFE", any:ITEM_KNIFE);
TrieSetCell(tWeapons, "ITEM_P90", any:ITEM_P90);
TrieSetCell(tItems, "ITEM_NVG", any:ITEM_NVG);
TrieSetCell(tItems, "ITEM_DEFUSEKIT", any:ITEM_DEFUSEKIT);
TrieSetCell(tItems, "ITEM_KEVLAR", any:ITEM_KEVLAR);
TrieSetCell(tItems, "ITEM_ASSAULT", any:ITEM_ASSAULT);
TrieSetCell(tItems, "ITEM_LONGJUMP", any:ITEM_LONGJUMP);
TrieSetCell(tItems, "ITEM_SODACAN", any:ITEM_SODACAN);
TrieSetCell(tItems, "ITEM_HEALTHKIT", any:ITEM_HEALTHKIT);
TrieSetCell(tItems, "ITEM_ANTIDOTE", any:ITEM_ANTIDOTE);
TrieSetCell(tItems, "ITEM_BATTERY", any:ITEM_BATTERY);
new szBuff[32];
new aPos;
while(!feof(fp))
{
fgets(fp, szBuff, charsmax(szBuff));
trim(szBuff);
if(!szBuff[0] || szBuff[0] == ';')
continue;
if(TrieGetCell(tWeapons, szBuff, aPos))
g_BitsItemsBlocked[SECTION_WEAPONS] |= (1 << aPos);
else if(TrieGetCell(tItems, szBuff, aPos))
g_BitsItemsBlocked[SECTION_ITEMS] |= (1 << aPos % any:ITEM_NVG);
}
TrieDestroy(tWeapons);
TrieDestroy(tItems);
fclose(fp);
log_amx("Load items block from '%s'", szLoadedConfig);
}
Стоял запрет на Скорострелку и Щит)) Обновил ReAPI Включил сервер ошибок не видно было в логах, это уже потом мне сказали игроки, То что можно купить их.. Может была проблема в новой ReAPI . Но я поставил старую версию так же всё можно купить..
В этой теме было размещено решение! Перейти к решению.
Вложения
-
3.9 KB Просмотры: 442