[ALL STEAMS] [GM] Weapon Models doesn't work

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
238
Реакции
38
Помог
5 раз(а)
Ошибка
L 04/01/2024 - 15:22:41: [gm_weapon_models.amxx] ML_NOTFOUND: WM_BAD_WEAPON
L 04/01/2024 - 15:22:41: [gm_weapon_models.amxx] ML_NOTFOUND: WM_BAD_WEAPON
L 04/01/2024 - 15:22:41: [gm_weapon_models.amxx] ML_NOTFOUND: WM_BAD_WEAPON
L 04/01/2024 - 15:22:41: [gm_weapon_models.amxx] ML_NOTFOUND: WM_BAD_WEAPON
L 04/01/2024 - 15:22:41: [gm_weapon_models.amxx] ML_NOTFOUND: WM_BAD_WEAPON
ОС
Linux
Amx Mod X
AMX Mod X 1.10.0.5461 (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: Dec 6 2021 10:40:01
Built from: https://github.com/alliedmodders/amxmodx/commit/ec82e3f
Build ID: 5461:ec82e3f
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.13.0.788-dev
Build date: 07:36:33 Jul 12 2023 (3378)
Build from: https://github.com/dreamstalker/rehlds/commit/f955b07
ReGamedll
ReGameDLL version: 5.26.0.668-dev
Build date: 19:02:48 Dec 31 2023
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/d3c0ec8
Версия Metamod
Metamod-r v1.3.0.138, API (5:13)
Metamod-r build: 11:50:32 Nov 28 2023
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/5179c25
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.137 ini Start Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.10.0.5461 ini Start ANY
[ 3] Revoice RUN - revoice_plus_mm.so v2.0.5 ini ANY Never
[ 4] WHBlocker RUN - whblocker_mm_i386.so v1.5.697 ini Chlvl ANY
[ 5] Ultimate Unprecacher RUN - unprecacher_i386.so vBeta 2.5.3 ini Chlvl Chlvl
[ 6] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 7] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 8] ReSemiclip RUN - resemiclip_mm_i386.so v2.4.3 ini Chlvl ANY
[ 9] Rechecker RUN - rechecker_mm_i386.so v2.7 ini Chlvl ANY
[10] HitBox Fix RUN - hitbox_fix_mm_i386.so v1.1.5 ini Start ANY
[11] Accuracy Fix RUN - accuracyfix_mm.so v1.0.5 ini ANY ANY
[12] Engine RUN - engine_amxx_i386.so v1.10.0.5461 pl2 ANY ANY
[13] ReAPI RUN - reapi_amxx_i386.so v5.24.0.300-dev pl2 ANY Never
[14] MySQL RUN - mysql_amxx_i386.so v1.10.0.5461 pl2 ANY ANY
[15] FakeMeta RUN - fakemeta_amxx_i386.so v1.10.0.5461 pl2 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.10.0.5461 pl2 ANY ANY
[17] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl2 ANY Never
[18] CSX RUN - csx_amxx_i386.so v1.10.0.5461 pl2 ANY ANY
[19] gRIP RUN - grip_amxx_i386.so v0.1.5 Beta pl2 ANY ANY
[20] SQLite RUN - sqlite_amxx_i386.so v1.10.0.5461 pl2 ANY ANY
[21] AuthEmu RUN - authemu_amxx_i386.so v5.2.12.525-dev+m pl2 ANY Never
[22] CStrike RUN - cstrike_amxx_i386.so v1.10.0.5461 pl2 ANY ANY
Список плагинов
Currently loaded plugins:
id name version author url file status
[ 1] 0 [190] Vanga Detector 23.07.29 SKAJIbnEJIb & Pr unknown vanga_detec running
[ 2] 1 Access Manager 1.0.0 mx?! AccessManag running
[ 3] 2 GameCMS_API 5.6.3 zhorzh78 unknown gamecms_api running
[ 4] 3 DopBan 3.0.8b kanagava http://kanaga.ru dop_ban308- running
[ 5] 4 FreshBans 1.4.8b kanagava unknown fresh_bans_ running
[ 6] 5 fb_forwards 0.2 kanagava + Spie fb_ban_soun running
[ 7] 6 ReAimDetector API 0.2.2 ReHLDS Team reaimdetect running
[ 8] 7 [190] Ad From Server 20.06.06 SKAJIbnEJIb unknown ad_from_ser running
[ 9] 8 Admin Commands 1.10.0.541 AMXX Dev Team admincmd.am running
[ 10] 9 Admin Help 1.10.0.546 AMXX Dev Team adminhelp.a running
[ 13] 12 Commands Menu 1.10.0.546 AMXX Dev Team cmdmenu.amx running
[ 14] 13 Players Menu 1.10.0.546 AMXX Dev Team plmenu.amxx running
[ 15] 14 Maps Menu 1.10.0.546 AMXX Dev Team mapsmenu.am running
[ 16] 15 Plugin Menu 1.10.0.546 AMXX Dev Team pluginmenu. running
[ 17] 16 Admin Chat 1.10.0.546 AMXX Dev Team adminchat.a running
[ 18] 17 Anti Flood 1.10.0.546 AMXX Dev Team antiflood.a running
[ 19] 18 Admin Votes 1.10.0.546 AMXX Dev Team adminvote.a running
[ 20] 19 Pause Plugins 1.10.0.546 AMXX Dev Team pausecfg.am running
[ 21] 20 [190] Army Ranks Ultim 20.06.06 SKAJIbnEJIb unknown army_ranks_ running
[ 22] 21 [190] StatsX Unlimited 22.12.08 SKAJIbnEJIb unknown statsx_unli running
[ 23] 22 [190] CsStats MySQL 22.11.15 SKAJIbnEJIb unknown csstats_mys running
[ 24] 23 [190] StatsX RBS 21.03.23 SKAJIbnEJIb & AM unknown statsx_rbs. running
[ 25] 24 Stats Configuration 20.06.06 SKAJIbnEJIb & AM unknown statscfg_rb running
[ 26] 25 [190] Stimulation RBS 20.06.06 SKAJIbnEJIb unknown stimulation running
[ 27] 26 C4 Timer on roundtime 0.3.3a neygomon c4timer.amx running
[ 28] 27 Bullet Damage 0.0.1 ConnorMcLeod unknown bullet_dama running
[ 29] 28 Fake Ping 1.1 MeRcyLeZZ/gyxoBk unknown FakePing.am running
[ 30] 29 [ReAPI] resetscore 1.0 Phantom unknown resetscore. running
[ 31] 30 AFK Control ReNew 1.3 neygomon afk_control running
[ 32] 31 Parachute 1.1 ReHLDS Team parasiutas. running
[ 33] 32 Advanced Kill Assists 1.5 Xelson next21_kill running
[ 34] 33 [ReAPI] Healthnade 0.0.13f DEV-CS.RU Commun reapi_healt running
[ 35] 34 Molotov Grenade 1.0.3 medusa molotov_gre running
[ 36] 35 [Discord] Core 1.0 JDW Discord.amx running
[ 37] 36 Discord 1.0 [ReAPI LT Discord_cus running
[ 38] 37 unknown unknown unknown unknown precache.am running
[ 39] 38 AWP Limiter 1.3.0 Beta Nordic Warrior awp_limiter running
[ 40] 39 [GM] Weapon Models 2.0.0 [GM] NWC gm_weapon_m running
[ 41] 40 ChatAdditions: Core v1.9.4 Sergey Shorokhov ChatAdditio debug
[ 42] 41 ChatAdditions: GameCMS v1.9.4 Sergey Shorokhov CA_Storage_ debug
[ 43] 42 CA: Mute v1.9.4 Sergey Shorokhov CA_Mute.amx debug
[ 44] 43 CA Addon: Request UnGA v1.9.4 steelzzz CA_Addon_Re debug
[ 45] 44 CA: Gag v1.9.4 Sergey Shorokhov CA_Gag.amxx debug
[ 46] 45 Revive Teammates: Core 1.1.7 ufame & Albertio rt_core.amx running
[ 47] 46 Revive Teammates: Plan 1.1.7 ufame & Albertio rt_planting running
[ 48] 47 Revive Teammates: Rest 1.1.7 ufame & Albertio rt_restrict running
[ 49] 48 Revive Teammates: Time 1.1.7 ufame & Albertio rt_timer.am running
[ 50] 49 Revive Teammates: Effe 1.1.7 ufame & Albertio rt_effects. running
[ 51] 50 Revive Teammates: Soun 1.1.7 ufame & Albertio rt_sounds.a running
[ 52] 51 Revive Teammates: Bonu 1.1.7 ufame & Albertio rt_bonus.am running
[ 53] 52 [ReVIP] System Core 2.5 full pUzzlik re_vip_core running
[ 54] 53 [ReVIP] Menu 2.5 full pUzzlik re_vipmenu_ running
54 plugins, 54 running
Автор плагина
Noob_with_cheats
Версия плагина
2.0.0
Исходный код
#include <amxmodx>
#include <fakemeta>
#include <reapi>

#pragma semicolon 1

#define MAX_MODELS_LENGTH 128

enum _:ArrayData
{
SaveType: iWmType,
WeaponIdType: iWmWeapon,
iWmModelW,
TeamName: iTeam,
szWmParam[64],
szWmModelP[MAX_MODELS_LENGTH],
szWmModelV[MAX_MODELS_LENGTH],
szWmModelW[MAX_MODELS_LENGTH]
}

enum _:PlayerModels
{
SaveType: iPriority,
iModelW,
szModelP[MAX_MODELS_LENGTH],
szModelV[MAX_MODELS_LENGTH],
szModelW[MAX_MODELS_LENGTH]
}

enum SaveType
{
WM_NONE,
WM_ALL,
WM_TEAM,
WM_ONLY_STEAM,
WM_FLAGS,
WM_STEAM,
WM_NICK
}

new Array: g_aWeapons, SaveType: g_iType;
new g_aPlayerWeapon[MAX_PLAYERS * 3 + 1][WeaponIdType][PlayerModels];

public plugin_init()
{
register_plugin("[GM] Weapon Models", "2.0.0", "[GM] NWC");
register_dictionary("gm_weapon_models.txt");

RegisterHookChain(RG_CBasePlayerWeapon_DefaultDeploy, "@CBasePlayerWeapon_DefaultDeploy_Pre");
RegisterHookChain(RG_CWeaponBox_SetModel, "@CWeaponBox_SetModel_Pre");
RegisterHookChain(RG_CBasePlayer_ThrowGrenade, "@CBasePlayer_ThrowGrenade_Post", true);
RegisterHookChain(RG_PlantBomb, "@PlantBomb_Post", true);
}

public plugin_precache()
{
new szDir[128];
get_localinfo("amxx_configsdir", szDir, charsmax(szDir));
add(szDir, charsmax(szDir), "/plugins/gm_plugins/weapon_models.ini");

g_aWeapons = ArrayCreate(ArrayData);

new INIParser: hParser = INI_CreateParser();
INI_SetReaders(hParser, "parse_key_value", "parse_new_section");

if (!INI_ParseFile(hParser, szDir))
{
INI_DestroyParser(hParser);
set_fail_state("%l %l", "WM_FILE_CANT", file_exists(szDir) ? "WM_READ" : "WM_FIND", szDir);
}

INI_DestroyParser(hParser);
}

// Deploy Weapon
@CBasePlayerWeapon_DefaultDeploy_Pre(const iEnt)
{
if (is_nullent(iEnt)) return HC_CONTINUE;

new iPlayer = get_member(iEnt, m_pPlayer);

new WeaponIdType: iWeapon = WeaponIdType: get_member(iEnt, m_iId);

if (g_aPlayerWeapon[get_plWeapon(iPlayer)][iWeapon][szModelV])
SetHookChainArg(2, ATYPE_STRING, g_aPlayerWeapon[get_plWeapon(iPlayer)][iWeapon][szModelV]);
else
if (g_aPlayerWeapon[iPlayer][iWeapon][szModelV])
SetHookChainArg(2, ATYPE_STRING, g_aPlayerWeapon[iPlayer][iWeapon][szModelV]);

if (g_aPlayerWeapon[get_plWeapon(iPlayer)][iWeapon][szModelP])
SetHookChainArg(3, ATYPE_STRING, g_aPlayerWeapon[get_plWeapon(iPlayer)][iWeapon][szModelP]);
else
if (g_aPlayerWeapon[iPlayer][iWeapon][szModelP])
SetHookChainArg(3, ATYPE_STRING, g_aPlayerWeapon[iPlayer][iWeapon][szModelP]);

return HC_CONTINUE;
}
// Drop
@CWeaponBox_SetModel_Pre(const iWeaponBox)
{
new iEnt = func_GetWeaponBoxWeapon(iWeaponBox);
if (iEnt == NULLENT) return HC_CONTINUE;

new WeaponIdType: iWeapon = WeaponIdType: get_member(iEnt, m_iId);
new iPlayer = get_entvar(iWeaponBox, var_owner);

if (g_aPlayerWeapon[get_plWeapon(iPlayer)][iWeapon][szModelW])
SetHookChainArg(2, ATYPE_STRING, g_aPlayerWeapon[get_plWeapon(iPlayer)][iWeapon][szModelW]);
else
if (g_aPlayerWeapon[iPlayer][iWeapon][szModelW])
SetHookChainArg(2, ATYPE_STRING, g_aPlayerWeapon[iPlayer][iWeapon][szModelW]);

return HC_CONTINUE;
}
// Grenade
@CBasePlayer_ThrowGrenade_Post(const iPlayer, const iGrenade)
{
new iEnt = GetHookChainReturn(ATYPE_INTEGER);
if (is_nullent(iEnt)) return HC_CONTINUE;

new WeaponIdType: iWeapon = WeaponIdType: get_member(iGrenade, m_iId);

if (g_aPlayerWeapon[get_plWeapon(iPlayer)][iWeapon][szModelW])
{
set_entvar(iEnt, var_modelindex, g_aPlayerWeapon[get_plWeapon(iPlayer)][iWeapon][iModelW]);
set_entvar(iEnt, var_model, g_aPlayerWeapon[get_plWeapon(iPlayer)][iWeapon][szModelW]);
}
else
if (g_aPlayerWeapon[iPlayer][iWeapon][szModelW])
{
set_entvar(iEnt, var_modelindex, g_aPlayerWeapon[iPlayer][iWeapon][iModelW]);
set_entvar(iEnt, var_model, g_aPlayerWeapon[iPlayer][iWeapon][szModelW]);
}

return HC_CONTINUE;
}
// Plant Bomb
@PlantBomb_Post(const iPlayer)
{
new iEnt = GetHookChainReturn(ATYPE_INTEGER);

if (g_aPlayerWeapon[get_plWeapon(iPlayer)][WEAPON_C4][szModelW])
{
set_entvar(iEnt, var_modelindex, g_aPlayerWeapon[get_plWeapon(iPlayer)][WEAPON_C4][iModelW]);
set_entvar(iEnt, var_model, g_aPlayerWeapon[get_plWeapon(iPlayer)][WEAPON_C4][szModelW]);
}

return HC_CONTINUE;
}

public client_putinserver(iPlayer)
{
for (new TeamName: j,k; j < TEAM_SPECTATOR; j++)
{
switch (j)
{
case TEAM_UNASSIGNED: {k = iPlayer;}
case TEAM_TERRORIST: {k = MAX_PLAYERS + iPlayer;}
case TEAM_CT: {k = MAX_PLAYERS * 2 + iPlayer;}
default: {k = 0;}
}

for (new WeaponIdType: i = WEAPON_P228; i <= WEAPON_P90; i++)
{
g_aPlayerWeapon[k][i][iPriority] = WM_NONE;
g_aPlayerWeapon[k][i][szModelP][0] = EOS;
g_aPlayerWeapon[k][i][szModelV][0] = EOS;
g_aPlayerWeapon[k][i][szModelW][0] = EOS;
}
}

new iSize = ArraySize(g_aWeapons);
new aData[ArrayData], WeaponIdType: iWeapon;


for (new i, k; i < iSize; i++)
{
ArrayGetArray(g_aWeapons, i, aData);
iWeapon = aData[iWmWeapon];

switch (aData[iTeam])
{
case TEAM_UNASSIGNED: {k = iPlayer;}
case TEAM_TERRORIST: {k = MAX_PLAYERS + iPlayer;}
case TEAM_CT: {k = MAX_PLAYERS * 2 + iPlayer;}
default: {k = 0;}
}

if (g_aPlayerWeapon[k][iWeapon][iPriority] < aData[iWmType])
{
if (is_replace(iPlayer, aData[iWmType], aData[szWmParam]))
{
g_aPlayerWeapon[k][iWeapon][iPriority] = aData[iWmType];
if (aData[szWmModelP]) copy(g_aPlayerWeapon[k][iWeapon][szModelP], MAX_MODELS_LENGTH - 1, aData[szWmModelP]);
if (aData[szWmModelV]) copy(g_aPlayerWeapon[k][iWeapon][szModelV], MAX_MODELS_LENGTH - 1, aData[szWmModelV]);
if (aData[szWmModelW]) copy(g_aPlayerWeapon[k][iWeapon][szModelW], MAX_MODELS_LENGTH - 1, aData[szWmModelW]);
if (aData[iWmModelW]) g_aPlayerWeapon[k][iWeapon][iModelW] = aData[iWmModelW];
}
}
else
if (aData[iWmType] == WM_ONLY_STEAM && is_user_steam(iPlayer))
{
if (!aData[szWmModelP]) copy(g_aPlayerWeapon[k][iWeapon][szModelP], MAX_MODELS_LENGTH - 1, aData[szWmModelP]);
if (!aData[szWmModelV]) copy(g_aPlayerWeapon[k][iWeapon][szModelV], MAX_MODELS_LENGTH - 1, aData[szWmModelV]);
if (!aData[szWmModelW]) copy(g_aPlayerWeapon[k][iWeapon][szModelW], MAX_MODELS_LENGTH - 1, aData[szWmModelW]);
if (aData[iWmModelW]) g_aPlayerWeapon[k][iWeapon][iModelW] = aData[iWmModelW];
}
else
if (aData[iWmType] == WM_ALL)
{
if (!aData[szWmModelP]) copy(g_aPlayerWeapon[k][iWeapon][szModelP], MAX_MODELS_LENGTH - 1, aData[szWmModelP]);
if (!aData[szWmModelV]) copy(g_aPlayerWeapon[k][iWeapon][szModelV], MAX_MODELS_LENGTH - 1, aData[szWmModelV]);
if (!aData[szWmModelW]) copy(g_aPlayerWeapon[k][iWeapon][szModelW], MAX_MODELS_LENGTH - 1, aData[szWmModelW]);
if (aData[iWmModelW]) g_aPlayerWeapon[k][iWeapon][iModelW] = aData[iWmModelW];
}
}
}

stock func_GetWeaponBoxWeapon(const iWeaponBox)
{
for (new i, iWeapon; i < MAX_ITEM_TYPES; i++)
{
iWeapon = get_member(iWeaponBox, m_WeaponBox_rgpPlayerItems, i);
if (!is_nullent(iWeapon)) return iWeapon;
}

return NULLENT;
}

stock get_plWeapon(iPlayer)
{
switch (get_member(iPlayer, m_iTeam))
{
case TEAM_UNASSIGNED: {return iPlayer;}
case TEAM_TERRORIST: {return MAX_PLAYERS + iPlayer;}
case TEAM_CT: {return MAX_PLAYERS * 2 + iPlayer;}
}
return 0;
}

stock bool: is_replace(const iPlayer, const SaveType: szType, const szParam[])
{
if (szType == WM_ALL) return true;
if (szType == WM_ONLY_STEAM && is_user_steam(iPlayer)) return true;

new szCopy[MAX_AUTHID_LENGTH];
if (szType == WM_NICK) get_user_name(iPlayer, szCopy, charsmax(szCopy));
else if (szType == WM_STEAM) get_user_authid(iPlayer, szCopy, charsmax(szCopy));
if (equal(szParam, szCopy)) return true;

if (szType == WM_FLAGS && get_user_flags(iPlayer) & read_flags(szParam)) return true;

return false;
}

public bool: parse_key_value(INIParser: hParser, const szBuffer[])
{
if (g_iType == WM_NONE) return true;

new aData[ArrayData], szWeapon[16], szTeam[2];
aData[iWmType] = g_iType;

if (g_iType < WM_FLAGS)
{
parse(szBuffer, szTeam, charsmax(szTeam),
szWeapon, charsmax(szWeapon),
aData[szWmModelP], MAX_MODELS_LENGTH - 1,
aData[szWmModelV], MAX_MODELS_LENGTH - 1,
aData[szWmModelW], MAX_MODELS_LENGTH - 1);
}
else
{
parse(szBuffer, aData[szWmParam], charsmax(aData[szWmParam]),
szTeam, charsmax(szTeam),
szWeapon, charsmax(szWeapon),
aData[szWmModelP], MAX_MODELS_LENGTH - 1,
aData[szWmModelV], MAX_MODELS_LENGTH - 1,
aData[szWmModelW], MAX_MODELS_LENGTH - 1);
}

if (!aData[szWmModelP] && !aData[szWmModelV] && !aData[szWmModelW]) return true;

switch (szTeam[0])
{
case 'T', 't': {aData[iTeam] = TEAM_TERRORIST;}
case 'C', 'c': {aData[iTeam] = TEAM_CT;}
case EOS: {aData[iTeam] = TEAM_UNASSIGNED;}
default:
{
log_amx("%l", "WM_NONE_PARAM_FOR_TEAM", szTeam);
return true;
}
}

if ((aData[iWmWeapon] = rg_get_weapon_info(fmt("weapon_%s", szWeapon), WI_ID)) == WEAPON_NONE)
{
log_amx("%l", "WM_BAD_WEAPON", szWeapon);
return true;
}

if ((g_iType >= WM_FLAGS) && !aData[szWmParam])
{
log_amx("%l", "WM_NONE_PARAM_FOR_TYPE", g_iType, szBuffer);
return true;
}

if (aData[szWmModelP]) precache_model(aData[szWmModelP]);
if (aData[szWmModelV]) precache_model(aData[szWmModelV]);
if (aData[szWmModelW])
{
switch (aData[iWmWeapon])
{
case WEAPON_FLASHBANG, WEAPON_HEGRENADE, WEAPON_SMOKEGRENADE, WEAPON_C4: {aData[iWmModelW] = precache_model(aData[szWmModelW]);}
default : {precache_model(aData[szWmModelW]);}
}

}

ArrayPushArray(g_aWeapons, aData);
return true;
}

public bool: parse_new_section(INIParser: hParser, const szSection[])
{
if (equal(szSection, "ALL STEAMS")) g_iType = WM_ONLY_STEAM;
else
{
switch (szSection[0])
{
case 'A': {g_iType = WM_ALL;}
case 'F': {g_iType = WM_FLAGS;}
case 'S': {g_iType = WM_STEAM;}
case 'N': {g_iType = WM_NICK;}
default: {g_iType = WM_NONE; log_amx("%l", "WM_BAD_TYPE", szSection);}
}
}

return true;
}
; "Steam/Name/Flags" "team" "weapon" "p_model" "v_model" "w_model"
; Приоритет выдачи:
; [ALL] — Для всех (5)
; [ALL STEAMS] — Только для стимов (4)
; [FLAGS] — Для флагов (3)
; [STEAM] — по стиму (2)
; [NICK] — по нику (1)
; Если найдены по стиму скины, а потом по нику, то выдаётся по нику, если есть.
; Если какой-то модели нет, то будет брать из прошлого совпадения, либо дополняться из 5-ого или 4-ого приоритета, иначе дефолт.
; Поддерживаемое оружие:
; p228, glock18, scout, hegrenade, xm1014, c4, mac10, aug, smokegrenade, elite, fiveseven, ump45, sg550, galil
; famas, usp, awp, mp5navy, m249, m3, m4a1, tmp, g3sg1, flashbang, deagle, sg552, ak47, knife, p90


[NICK]

; These work
[STEAM]
"STEAM_xxxx" "" "ak47" "" "models/csgo-mod/nike/v_ak47.mdl" ""
"STEAM_xxxx" "" "knife" "" "models/csgo-mod/nike/v_knife.mdl" ""
"STEAM_xxxx" "" "deagle" "" "models/csgo-mod/nike/v_deagle.mdl" ""
"STEAM_xxxx" "" "m4a1" "" "models/csgo-mod/nike/v_m4a1.mdl" ""
"STEAM_xxxx" "" "awp" "" "models/csgo-mod/nike/v_awp.mdl" ""

[FLAGS]

;Doesn't work
[ALL STEAMS]
"it should be empty here?" "" "ak47" "" "models/csgo-mod/bmv/v_ak47.mdl" ""
"" "" "knife" "" "models/csgo-mod/bmv/v_knife.mdl" ""
"" "" "deagle" "" "models/csgo-mod/bmv/v_deagle.mdl" ""
"" "" "m4a1" "" "models/csgo-mod/bmv/v_m4a1.mdl" ""
"" "" "awp" "" "models/csgo-mod/bmv/v_awp.mdl" ""

[ALL]

.mdl files in their places

server language english [gm_weapon_models.amxx] ML_NOTFOUND: WM_BAD_WEAPON
[en]
WM_FILE_CANT = Couldn't
WM_READ = Read %s
WM_FIND = Find %s
WM_BAD_TYPE = Bad Type: %s
WM_BAD_WEAPON = Bad Weapon: %s ! Perhaps you specified it incorrectly
WM_NONE_PARAM_FOR_TEAM = Bad Team: %s ! Perhaps you specified it incorrectly
WM_NONE_PARAM_FOR_TYPE = There is no value for the type: %i | String: %s

Last version 1.1.0
amxx - reapi [GM] Weapon models - Updates | Dev-CS.ru
after downloading in .sma its
Код:
register_plugin("[GM] Weapon Models", "2.0.0", "[GM] NWC")
 
В этой теме было размещено решение! Перейти к решению.
Последнее редактирование:
Сообщения
944
Реакции
51
Помог
10 раз(а)
; "Steam/Name/Flags" "team" "weapon" "p_model" "v_model" "w_model"
; Приоритет выдачи:
; [ALL] — Для всех (5)
; [ALL STEAMS] — Только для стимов (4)
; [FLAGS] — Для флагов (3)
; [STEAM] — по стиму (2)
; [NICK] — по нику (1)
; Если найдены по стиму скины, а потом по нику, то выдаётся по нику, если есть.
; Если какой-то модели нет, то будет брать из прошлого совпадения, либо дополняться из 5-ого или 4-ого приоритета, иначе дефолт.
; Поддерживаемое оружие:
; p228, glock18, scout, hegrenade, xm1014, c4, mac10, aug, smokegrenade, elite, fiveseven, ump45, sg550, galil
; famas, usp, awp, mp5navy, m249, m3, m4a1, tmp, g3sg1, flashbang, deagle, sg552, ak47, knife, p90


[NICK]

; These work
[STEAM]
"STEAM_xxxx "" "ak47" "" "models/csgo-mod/nike/v_ak47.mdl" ""
"STEAM_xxxx" "" "knife" "" "models/csgo-mod/nike/v_knife.mdl" ""
"STEAM_xxxx" "" "deagle" "" "models/csgo-mod/nike/v_deagle.mdl" ""
"STEAM_xxxx" "" "m4a1" "" "models/csgo-mod/nike/v_m4a1.mdl" ""
"STEAM_xxxx" "" "awp" "" "models/csgo-mod/nike/v_awp.mdl" ""

[FLAGS]

;Doesn't work
[ALL STEAMS]
"it should be empty here?" "" "ak47" "" "models/csgo-mod/bmv/v_ak47.mdl" ""
"" "" "knife" "" "models/csgo-mod/bmv/v_knife.mdl" ""
"" "" "deagle" "" "models/csgo-mod/bmv/v_deagle.mdl" ""
"" "" "m4a1" "" "models/csgo-mod/bmv/v_m4a1.mdl" ""
"" "" "awp" "" "models/csgo-mod/bmv/v_awp.mdl" ""

[ALL]

.mdl files in their places

server language english [gm_weapon_models.amxx] ML_NOTFOUND: WM_BAD_WEAPON
[en]
WM_FILE_CANT = Couldn't
WM_READ = Read %s
WM_FIND = Find %s
WM_BAD_TYPE = Bad Type: %s
WM_BAD_WEAPON = Bad Weapon: %s ! Perhaps you specified it incorrectly
WM_NONE_PARAM_FOR_TEAM = Bad Team: %s ! Perhaps you specified it incorrectly
WM_NONE_PARAM_FOR_TYPE = There is no value for the type: %i | String: %s

Last version 1.1.0
amxx - reapi [GM] Weapon models - Updates | Dev-CS.ru
after downloading in .sma its
Код:
register_plugin("[GM] Weapon Models", "2.0.0", "[GM] NWC")
А у сервера какой язык установлен?
 
  • Нравится
Реакции: Murz
Сообщения
238
Реакции
38
Помог
5 раз(а)
А у сервера какой язык установлен?
// Default value: en
amx_language "en"

; "Steam/Name/Flags" "team" "weapon" "p_model" "v_model" "w_model"
; Приоритет выдачи:
; [ALL] — Для всех (5)
; [ALL STEAMS] — Только для стимов (4)
; [FLAGS] — Для флагов (3)
; [STEAM] — по стиму (2)
; [NICK] — по нику (1)
; Если найдены по стиму скины, а потом по нику, то выдаётся по нику, если есть.
; Если какой-то модели нет, то будет брать из прошлого совпадения, либо дополняться из 5-ого или 4-ого приоритета, иначе дефолт.
; Поддерживаемое оружие:
; p228, glock18, scout, hegrenade, xm1014, c4, mac10, aug, smokegrenade, elite, fiveseven, ump45, sg550, galil
; famas, usp, awp, mp5navy, m249, m3, m4a1, tmp, g3sg1, flashbang, deagle, sg552, ak47, knife, p90


[NICK]

; These work
[STEAM]
"STEAM_xxxx" "" "ak47" "" "models/csgo-mod/nike/v_ak47.mdl" ""
"STEAM_xxxx" "" "knife" "" "models/csgo-mod/nike/v_knife.mdl" ""
"STEAM_xxxx" "" "deagle" "" "models/csgo-mod/nike/v_deagle.mdl" ""
"STEAM_xxxx" "" "m4a1" "" "models/csgo-mod/nike/v_m4a1.mdl" ""
"STEAM_xxxx" "" "awp" "" "models/csgo-mod/nike/v_awp.mdl" ""

[FLAGS]

;Doesn't work
[ALL STEAMS]
"it should be empty here?" "" "ak47" "" "models/csgo-mod/bmv/v_ak47.mdl" ""
"" "" "knife" "" "models/csgo-mod/bmv/v_knife.mdl" ""
"" "" "deagle" "" "models/csgo-mod/bmv/v_deagle.mdl" ""
"" "" "m4a1" "" "models/csgo-mod/bmv/v_m4a1.mdl" ""
"" "" "awp" "" "models/csgo-mod/bmv/v_awp.mdl" ""

[ALL]
 
Последнее редактирование:
Сообщения
515
Реакции
459
Предупреждения
17
Помог
8 раз(а)
Args for [ALL STEAMS] section
"Team" "ak47" "p_model" "models/csgo-mod/bmv/v_ak47.mdl" "w_model"
 
Последнее редактирование модератором:
  • Нравится
Реакции: Murz
Сообщения
944
Реакции
51
Помог
10 раз(а)
Смотри образец
; "Steam/Name/Flags" "team" "weapon" "p_model" "v_model" "w_model"
 
Последнее редактирование:
Сообщения
238
Реакции
38
Помог
5 раз(а)
Args for [ALL STEAMS] section
"Team" "ak47" "p_model" "models/csgo-mod/bmv/v_ak47.mdl" "w_model"
I have to remove two "" ?

this shit works
[STEAM]
"STEAM_1:1:1008369746" "" "ak47" "" "models/csgo-mod/nike/v_ak47.mdl" ""

it should be like this?
[ALL STEAMS]
"" "ak47" "" "models/csgo-mod/bmv/v_ak47.mdl" ""
1 Апр 2024
Code_0xABC,
И только это ключ
yes
1 Апр 2024
Code_0xABC, can you give full example of
[ALL STEAMS]
"leave empty ?" "to all teams leave empty?" "ak47" "" "models/csgo-mod/bmv/v_ak47.mdl" ""


still not working correctly

; its ok
[STEAM]
"STEAM_1:1:760945846" "" "ak47" "" "models/csgo-mod/nike/v_ak47.mdl" ""
"STEAM_1:1:760945846" "" "knife" "" "models/csgo-mod/nike/v_knife.mdl" ""
"STEAM_1:1:760945846" "" "deagle" "" "models/csgo-mod/nike/v_deagle.mdl" ""
"STEAM_1:1:760945846" "" "m4a1" "" "models/csgo-mod/nike/v_m4a1.mdl" ""
"STEAM_1:1:760945846" "" "awp" "" "models/csgo-mod/nike/v_awp.mdl" ""

; non steam players get this to and steams
[ALL STEAMS]
"" "ak47" "" "models/csgo-mod/bmv/v_ak47.mdl" ""
"" "knife" "" "models/csgo-mod/bmv/v_knife.mdl" ""
"" "deagle" "" "models/csgo-mod/bmv/v_deagle.mdl" ""
"" "m4a1" "" "models/csgo-mod/bmv/v_m4a1.mdl" ""
"" "awp" "" "models/csgo-mod/bmv/v_awp.mdl" ""

[FLAGS]

[ALL] skins downloading but non steam players get [ALL STEAMS] players skins to
"" "ak47" "" "models/csgo-mod/audi/v_ak47.mdl" ""
"" "knife" "" "models/csgo-mod/audi/v_knife.mdl" ""
"" "deagle" "" "models/csgo-mod/audi/v_deagle.mdl" ""
"" "m4a1" "" "models/csgo-mod/audi/v_m4a1.mdl" ""
"" "awp" "" "models/csgo-mod/audi/v_awp.mdl" ""


if


; its ok
[STEAM]
"STEAM_1:1:760945846" "" "ak47" "" "models/csgo-mod/nike/v_ak47.mdl" ""
"STEAM_1:1:760945846" "" "knife" "" "models/csgo-mod/nike/v_knife.mdl" ""
"STEAM_1:1:760945846" "" "deagle" "" "models/csgo-mod/nike/v_deagle.mdl" ""
"STEAM_1:1:760945846" "" "m4a1" "" "models/csgo-mod/nike/v_m4a1.mdl" ""
"STEAM_1:1:760945846" "" "awp" "" "models/csgo-mod/nike/v_awp.mdl" ""

; non steam players get this to and steam
[ALL]
"" "ak47" "" "models/csgo-mod/audi/v_ak47.mdl" ""
"" "knife" "" "models/csgo-mod/audi/v_knife.mdl" ""
"" "deagle" "" "models/csgo-mod/audi/v_deagle.mdl" ""
"" "m4a1" "" "models/csgo-mod/audi/v_m4a1.mdl" ""
"" "awp" "" "models/csgo-mod/audi/v_awp.mdl" ""


[FLAGS]

[ALL STEAMS] skins dwnloading but not working for steam players gets [ALL] wtf :D
"" "ak47" "" "models/csgo-mod/bmv/v_ak47.mdl" ""
"" "knife" "" "models/csgo-mod/bmv/v_knife.mdl" ""
"" "deagle" "" "models/csgo-mod/bmv/v_deagle.mdl" ""
"" "m4a1" "" "models/csgo-mod/bmv/v_m4a1.mdl" ""
"" "awp" "" "models/csgo-mod/bmv/v_awp.mdl" ""
 
Последнее редактирование:
Сообщения
515
Реакции
459
Предупреждения
17
Помог
8 раз(а)
Code_0xABC, для [ALL STEAMS] первый аргумент не должен присутствовать вообще (судя по коду)
 
Сообщения
265
Реакции
77
Предупреждения
8
Помог
1 раз(а)
Видимо, надо ещё более подробнее написать инструкцию.
 
  • Okey
Реакции: Murz
Статус
В этой теме нельзя размещать новые ответы.

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

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