WeaponList Баг

Сообщения
16
Реакции
-1
Ошибка
В логах и консоли нету ошибок
ОС
Linux
Amx Mod X
1.9.0
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.8.0.704-dev
Build date: 13:14:54 Dec 3 2020 (2427)
Build from: https://github.com/dreamstalker/rehlds/commit/83c0b6e
ReGamedll
ReGameDLL version: 5.20.0.492-dev
Build date: 15:26:35 Jan 4 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/aae507c
Версия 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] Placeholders disabler RUN - plfix_mm_i386.so v0.0.3 ini Start Never
[ 2] VoiceTranscoder RUN - vtc.so v2017RC5 ini ANY
[ 3] AMX Mod X RUN - amxmodx.so v1.9.0.5263 ini Start ANY
[ 4] WHBlocker RUN - whblocker.so v1.5.697 ini ANY
[ 5] ReSemiclip RUN - resemiclip.so v2.3.9 ini ANY
[ 6] Reunion RUN - reunion.so v0.1.92d ini Start Never
[ 7] Revoice RUN - revoice.so v0.1.0.34 ini Start Never
[ 8] Rechecker RUN - rechecker.so v2.5 ini ANY
[ 9] Ultimate Unprecacher RUN - ultimate_unprecacher.so vBeta 2.5.3 ini Chlvl Chlvl
[10] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl3 ANY ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl3 ANY ANY
[12] ReAPI RUN - reapi_amxx_i386.so v5.19.0.210-dev pl3 ANY Never
[13] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl3 ANY ANY
[14] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl3 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl3 ANY ANY
[16] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl3 ANY ANY
[17] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl3 ANY ANY
17 plugins, 17 running
Список плагинов
17 plugins, 17 running
amxx plugins
Currently loaded plugins:
name version author file status
[ 1] Admin Loader v3.5 neygomon admin_loader.am running
[ 2] FreshBans v1.4.2b kanagava fresh_bans.amxx running
[ 3] Admin Chat v1.9.0.5263 AMXX Dev Team adminchat.amxx running
[ 4] Lite VoteBan v1.4 neygomon lite_voteban.am running
[ 5] Admin Commands v1.9.0.5263 AMXX Dev Team admincmd.amxx running
[ 6] Rank Menu v1.1 h1k3 rankmenu.amxx running
[ 7] AES: StatsX v0.3 Beta serfreeman1337 aes_statsx_cstr running
[ 8] Anti Flood v1.9.0.5263 AMXX Dev Team antiflood.amxx running
[ 9] Commands Menu v1.9.0.5263 AMXX Dev Team cmdmenu.amxx running
[ 10] Info. Messages v1.9.0.5263 AMXX Dev Team imessage.amxx running
[ 11] Admin Voice Chat v0.2 mx?! admin_voice_cha running
[ 12] AmxModMenu v1.2 Sn1kO{Dmitriy.T) menufront.amxx running
[ 13] Steаm Models v0.1b+mod.l Freedo.m steam_models.am running
[ 14] Maps Menu v1.9.0.5263 AMXX Dev Team mapsmenu.amxx running
[ 15] Mode 2x2 v2.5re s1lent mode.amxx running
[ 16] Menu v7.7.7 Nohat. Dmitry menu.amxx running
[ 17] Menu1 v7.7.7 Nohat. Dmitry menu2.amxx running
[ 18] Players Menu v1.9.0.5263 AMXX Dev Team plmenu.amxx running
[ 19] Plugin Menu v1.9.0.5263 AMXX Dev Team pluginmenu.amxx running
[ 20] AMX VIP Model v1.0 Starik amx_vipmodel.am running
[ 21] AMX Admin Model v1.1.1 whitemike amx_adminmodel. running
[ 22] Restrict Weapons v1.8.2 Leo_[BH] restmenu.amxx running
[ 23] Scrolling Message v1.9.0.5263 AMXX Dev Team scrollmsg.amxx running
[ 24] Admin Votes v1.9.0.5263 AMXX Dev Team adminvote.amxx running
[ 25] CS Misc. Stats v1.9.0.5263 AMXX Dev Team miscstats.amxx running
[ 26] CS Stats Logging v1.9.0.5263 AMXX Dev Team stats_logging.a running
[ 27] Stats Configuration v1.9.0.5263 AMXX Dev Team statscfg.amxx running
[ 28] FM ResetScore v0.1 neygomon fm_resetscore.a running
[ 29] Parachute New v1.0 Csserv.Ru parachute_new.a running
[ 30] Advanced MapChooser v1.4 neygomon advanced_mapcho running
[ 31] Join IP Colored v1.1 Alternative join_ip_colored running
[ 32] WarmUP Pro v5.6 Beta Nohat. Dmitry warmuppro.amxx running
[ 33] Advanced Gag v1.9.0 neygomon amx_gag.amxx running
[ 34] Lite Translit v2.8 neygomon lite_translit.a running
[ 35] [ReAPI] Info Killer v0.1 Jumper Info_Killer.amx running
[ 36] Demo Recorder v1.6 Sho0ter demorecorder.am running
[ 37] Short Nade v1.0 Grzyboo shortnade.amxx running
[ 38] AWPoff v4.0 PAffAEJIkA :3 awpoff.amxx running
[ 39] [ReAPI:AMXX] Buy Nades v0.0.3a Nohat. Dmitry amxx_buy_nades_ running
[ 40] Invisible Spectator v1.0 ReHLDS Team invisible_spect running
[ 41] ПИЗДЕЦ МЕНЮ v7.7.7 Nohat. Dmitry menu3.amxx running
[ 42] SF Warn Menu v0.1.4f serfreeman1337 sf_admin_warns. running
[ 43] Death Sprite v1.0 DarkGL skull.amxx running
[ 44] Advanced Damager v2.0.0 iPlague damager_iplague running
[ 45] Autoresponder/Advertis v0.5 MaximusBrood ad_manager.amxx running
[ 46] Custom Flashlight v0.4.0 Nohat. Dmitry CustomFlashLigh running
[ 47] Players Count in Team v2.0 kramesa PlayersCountSel running
[ 48] Back Weapons v1.87 hoboman313/cheap backweapons.amx running
[ 49] mute v1.0 Nohat. Dmitry mute.amxx running
[ 50] AFK Control v1.4.1 [Rnd neygomon afk_control.amx running
[ 51] Steаm Bonus v2.0 Neugomon menu_steam.amxx running
[ 52] GameName Changer v1.0.0 Nordic Warrior gamename_change running
[ 53] Flash Sprite v0.3 Denzer & Garey flash_sprite.am running
[ 54] Ping Checker v26.0.1 RC1 h1k3 ping_checker.am running
[ 55] [ReAPI] AdminFreeLook v1.0 ReHLDS Team adminfreelook.a running
[ 56] Bomb fixes v0.0.2 wopox1337 bomb_fixes.amxx running
[ 57] Flash Bug Fix v1.0.0 F@nt0M flash_fix.amxx running
[ 58] Smoke FIX v7.7.7 Dmitry. Nohat Smoke_FIX.amxx running
[ 59] [ALL] Graffiti vb2.1 XxXx#xXxX & trof HD_Sprays_Publi running
[ 60] COVID_mode v1.2.5 Nohat. Dmitry Covid_mode.amxx running
[ 61] Weapon Model + Sound R v1.2 GHW_Chronic GHW_Weapon_Repl running
[ 62] Grenade Trail v1.0 Jim grenade_trail.a running
[ 63] Icon Color v1.0 AcE icon_color.amxx running
[ 64] Bomb/Death/CSS Radar v1.0 eDark & Numb css_radar.amxx running
[ 65] Ultimate KillStreak Ad v0.7 SAMURAI ut_killstreak_a running
[ 66] #Cs-New-Life v0.15 7.7.7 vip.amxx running
[ 67] Give HP v1.0 Nohat. Dmitry vampire.amxx running
[ 68] ReChecker Logging v1.0 custom rc_logging.amxx running
[ 69] [ReAPI] Healthnade v0.0.2 F@nt0M healthnade.amxx running
[ 70] Bomb pickup on use v1.0.1 voed use_bomb_pickup running
[ 71] InfoConnects v1.0 PAffAEJIkA :3 InfoConnects.am running
[ 72] Top Round Damage v1.0.4 ReAP Dager* *.* -G- damage_round_on running
[ 73] Aim Info Player HUD v0.1 SHLAKBAUM (icq 4 aim_info_player running
[ 74] WeaponMenu v1.0 vk.com/love_dmit sadmin.amxx running
[ 75] WeaponMenu v1.0 vk.com/love_dmit toxic.amxx running
[ 76] WeaponMenu v1.0 vk.com/love_dmit adminka.amxx running
[ 77] AMX VIP Model v1.0 Starik amx_sadmin.amxx running
[ 78] Crosshair Menu v1.2.3 KriTo & PurposeL crosshairmenu.a debug
[ 79] Advanced Experience Sy v0.4.1 serfreeman1337 aes_main.amxx running
[ 80] AES: Exp CSTRIKE v0.3 serfreeman1337 aes_exp_cstrike running
[ 81] AES: Informer v0.2 serfreeman1337 aes_informer.am running
[ 82] AES: Experience Editor v0.1 serfreeman1337 aes_exp_editor. running
82 plugins, 82 running
Автор плагина
KriTo & PurposeLess
Версия плагина
1.2.3
Исходный код
#pragma semicolon 1

#include <amxmodx>

/* If you want players to save the crosshair they chose, define NVAULT_SAVE. It will use nvault.inc */
#define NVAULT_SAVE

#define PLUGIN_NAME "Crosshair Menu"
#define PLUGIN_VERS "1.2.4"
#define PLUGIN_AUTH "KriTo & PurposeLess"

new const crosshairs[][][] = {
{"Lined Point","LinedPoint_R","LinedPoint_Y","LinedPoint_G","LinedPoint_P","LinedPoint_C"},
{"Cross","Cross_R","Cross_Y","Cross_G","Cross_P","Cross_C"},
{"Cross-2","Cross2_R","Cross2_Y","Cross2_G","Cross2_P","Cross2_C"},
{"Point","Point_R","Point_Y","Point_G","Point_P","Point_C"},
{"Square","Square_R","Square_Y","Square_G","Square_P","Square_C"},
{"Square-2","Square2_R","Square2_Y","Square2_G","Square2_P","Square2_C"},
{"Cool Cross","CoolCross_R","CoolCross_Y","CoolCross_G","CoolCross_P","CoolCross_C"}
};

new const colors[][] = {
"Red",
"Yellow",
"Green",
"Purple",
"Cyan"
};

new
g_crosshair_type[MAX_PLAYERS + 1],
g_crosshair_color[MAX_PLAYERS + 1],
bool:g_scope[MAX_PLAYERS + 1],
g_msgids[4];

public plugin_init() {
register_plugin(PLUGIN_NAME, PLUGIN_VERS, PLUGIN_AUTH);

register_clcmd("say /crosshair", "@clcmd_crosshair");
register_clcmd("say /cross", "@clcmd_crosshair");

register_event("SetFOV", "@Event_SetFOV", "be");
register_event("CurWeapon", "@Event_CurWeapon", "be", "1=1", "2!18");

g_msgids[0] = get_user_msgid("HideWeapon");
g_msgids[1] = get_user_msgid("WeaponList");
g_msgids[2] = get_user_msgid("SetFOV");
g_msgids[3] = get_user_msgid("CurWeapon");
}

@Event_SetFOV(const id) {
if(!g_crosshair_type[id]) {
return;
}

new FOV = read_data(1);

if(FOV == 90) {
g_scope[id] = false;
}
else {
g_scope[id] = true;
SetMessage_HideWeapon(id, 0);
}
}

public plugin_precache() {
for(new i = 0; i < sizeof(crosshairs); i++) {
for(new a = 1; a < sizeof(crosshairs[]); a++) {
precache_generic(fmt("sprites/%s.txt", crosshairs[i][a]));
}
}
precache_generic("sprites/recrosshair.spr");
}

public client_putinserver(id) {
client_cmd(id, "crosshair 1");
}

@clcmd_crosshair(const id) {
new menu = menu_create("\yCrosshair Menu", "@clcmd_crosshair_handler");

if(g_crosshair_type[id]) {
menu_additem(menu, fmt("Change Crosshair Type \dCurrent: %s", crosshairs[g_crosshair_type[id] - 1][0]), "1");
menu_additem(menu, fmt("Change Crosshair Color \dCurrent: %s", colors[g_crosshair_color[id]]), "2");
menu_additem(menu, "Default Crosshair", "3");
}
else {
menu_additem(menu, "Change Crosshair Type \dCurrent: Default", "1");
}

menu_display(id, menu);
return PLUGIN_HANDLED;
}

@clcmd_crosshair_handler(const id, const menu, const item) {
if(item == MENU_EXIT) {
menu_destroy(menu);
return PLUGIN_HANDLED;
}
new data[6];
menu_item_getinfo(menu, item, _, data, charsmax(data));
new key = str_to_num(data), weapon = get_user_weapon(id);
switch(key) {
case 1: {
g_crosshair_type[id] = Calc(g_crosshair_type[id] + 1, sizeof(crosshairs));
Change_Crosshair(id, weapon);
}
case 2: {
g_crosshair_color[id] = Calc(g_crosshair_color[id] + 1, sizeof(colors) - 1);
Change_Crosshair(id, weapon);
}
case 3: {
SetMessage_HideWeapon(id, 0);
g_crosshair_type[id] = 0;
}
}
@clcmd_crosshair(id);
return PLUGIN_HANDLED;
}

Calc(const arg, const max) {
return (arg > max) ? 1: arg;
}

@Event_CurWeapon(const id) {
if(!g_crosshair_type[id] || g_scope[id]) {
return;
}

new weapon = read_data(2);
Change_Crosshair(id, weapon);
}

Change_Crosshair(const id, const weapon) {
switch(weapon) {
case CSW_P228: SetMessage_WeaponList(id, 9, 52);
case CSW_HEGRENADE: SetMessage_WeaponList(id, 12, 1);
case CSW_XM1014: SetMessage_WeaponList(id, 5, 32);
case CSW_C4: SetMessage_WeaponList(id, 14, 1);
case CSW_MAC10: SetMessage_WeaponList(id, 6, 100);
case CSW_AUG: SetMessage_WeaponList(id, 4, 90);
case CSW_SMOKEGRENADE: SetMessage_WeaponList(id, 13, 1);
case CSW_ELITE: SetMessage_WeaponList(id, 10, 120);
case CSW_FIVESEVEN: SetMessage_WeaponList(id, 7, 100);
case CSW_UMP45: SetMessage_WeaponList(id, 6, 100);
case CSW_GALIL: SetMessage_WeaponList(id, 4, 90);
case CSW_FAMAS: SetMessage_WeaponList(id, 4, 90);
case CSW_USP: SetMessage_WeaponList(id, 6, 100);
case CSW_GLOCK18: SetMessage_WeaponList(id, 10, 120);
case CSW_MP5NAVY: SetMessage_WeaponList(id, 10, 120);
case CSW_M249: SetMessage_WeaponList(id, 3, 200);
case CSW_M3: SetMessage_WeaponList(id, 5, 32);
case CSW_M4A1: SetMessage_WeaponList(id, 4, 90);
case CSW_TMP: SetMessage_WeaponList(id, 10, 120);
case CSW_FLASHBANG: SetMessage_WeaponList(id, 11, 2);
case CSW_DEAGLE: SetMessage_WeaponList(id, 8, 35);
case CSW_SG552: SetMessage_WeaponList(id, 4, 90);
case CSW_AK47: SetMessage_WeaponList(id, 2, 90);
case CSW_KNIFE: SetMessage_WeaponList(id, -1, -1);
case CSW_P90: SetMessage_WeaponList(id, 7, 100);
default: return;
}

SetMessage_HideWeapon(id, 1<<6);
SetMessage_SetFOV(id, 89);
SetMessage_CurWeapon(id);
SetMessage_SetFOV(id, 90);
}

SetMessage_WeaponList(const id, const pAmmoId, const pAmmoMaxAmount) {
message_begin(MSG_ONE, g_msgids[1], .player = id); {
write_string(crosshairs[g_crosshair_type[id] - 1][g_crosshair_color[id] + 1]);
write_byte(pAmmoId);
write_byte(pAmmoMaxAmount);
write_byte(-1);
write_byte(-1);
write_byte(0);
write_byte(11);
write_byte(2);
write_byte(0);
}
message_end();
}

SetMessage_SetFOV(const id, const FOV) {
message_begin(MSG_ONE, g_msgids[2], .player = id); {
write_byte(FOV);
}
message_end();
}

SetMessage_CurWeapon(const id) {
new ammo;
get_user_weapon(id, ammo);

message_begin(MSG_ONE, g_msgids[3], .player = id); {
write_byte(1);
write_byte(2);
write_byte(ammo);
}
message_end();
}

SetMessage_HideWeapon(const id, const byte) {
message_begin(MSG_ONE, g_msgids[0], .player = id); {
write_byte(byte);
}
message_end();
}

#if defined NVAULT_SAVE
#include <nvault>

new g_vault;

public plugin_cfg() {
g_vault = nvault_open("crosshairvault");

if(g_vault == INVALID_HANDLE) {
set_fail_state("Unknown nvault for crosshair");
}
}

public plugin_end() {
nvault_close(g_vault);
}

public client_authorized(id, const authid[]) {
g_crosshair_type[id] = nvault_get(g_vault, fmt("%s_type", authid));
g_crosshair_color[id] = nvault_get(g_vault, fmt("%s_color", authid));
}

public client_disconnected(id) {
new authid[MAX_AUTHID_LENGTH];
get_user_authid(id, authid, charsmax(authid));

if(!g_crosshair_type[id]) {
if(nvault_get(g_vault, fmt("%s_type", authid))) {
nvault_remove(g_vault, fmt("%s_type", authid));
nvault_remove(g_vault, fmt("%s_authid", authid));
}
return;
}

new data[MAX_AUTHID_LENGTH+10];

num_to_str(g_crosshair_type[id], data, charsmax(data));
nvault_pset(g_vault, fmt("%s_type", authid), data);

num_to_str(g_crosshair_color[id], data, charsmax(data));
nvault_pset(g_vault, fmt("%s_color", authid), data);
}
#endif
исходный код это плг на прицелы crosshairmenu
На скринах в принцепи видно какая проблема
Помню даже ставил плг на то чтобы после окончания раунда показывало картинку кто победил - тоже самое было (тот же баг)
Предпологаю что проблема все же не плг а в том что сервер чёт не поддержует или там нету моделя или ещё какого-то фикса
1 скрин - сам баг (на первом слоте появился второй вид оружия) (нету 4 слота под гранату - хилку)
2 скрин - все нормально (выключен плг на прицелы)
 

Download all Attachments

Сообщения
3,569
Реакции
1,560
Помог
133 раз(а)
vakaresko, ошибки тут нет, просто несовместимость плагинов. Придётся выбирать какой-то один, либо заказывать доработку. А сам автор уже говорил, что этот плагин не рекомендуется к использованию и не поддерживается.
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу