Помогите добавить в информер броню

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
9
Реакции
0
Ошибка
AMX Mod X 1.9.0.5263
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5263
Билд
Protocol version 48
ReGamedll
ReGameDLL version: 5.21.0.540
Версия Metamod
Metamod-r v1.3.0.128, API
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion.so v0.1.0.137 ini Start Never
[ 2] AMX Mod X RUN - amxmodx.so v1.9.0.5263 ini Start ANY
[ 3] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 4] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 5] ReAPI RUN - reapi_amxx_i386.so v5.21.0.248-dev pl2 ANY Never
[ 6] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 7] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 8] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl2 ANY
[ 9] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl2 ANY
[10] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
10 plugins, 10 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] GameCMS_API v5.5.1 zhorzh78 gamecms_api_5.5 running
[ 2] FreshBans v1.4.5b kanagava fresh_bans.amxx running
[ 3] [ReAMX] Ultimate Gag v17.12.22BE SKAJIbnEJIb ultimate_gag.am running
[ 4] [190] Ultimate Weapons v21.03.23 SKAJIbnEJIb ultimate_weapon running
[ 5] [190] Ultimate Models v21.03.23 SKAJIbnEJIb ultimate_models running
[ 6] [190] MapsMenu RBS v20.06.06 SKAJIbnEJIb & AM mapsmenu_rbs.am running
[ 7] [190] MapChooser RBS v20.08.02 SKAJIbnEJIb & UF mapchooser_rbs. running
[ 8] [190] NextMap v18.09.25 SKAJIbnEJIb & AM nextmap.amxx running
[ 9] [190] TimeLeft v18.09.25 SKAJIbnEJIb & AM timeleft.amxx running
[ 10] [190] NewYear RBS v20.06.06 SKAJIbnEJIb newyear_rbs.amx running
[ 11] [190] Stimulation RBS v20.06.06 SKAJIbnEJIb stimulation_rbs running
[ 12] [190] Chat RBS v20.06.06 SKAJIbnEJIb chat_rbs.amxx running
[ 13] [190] Jobs RBS v20.06.06 SKAJIbnEJIb jobs_rbs.amxx running
[ 14] [190] AfkKicker RBS v20.08.02 SKAJIbnEJIb afkkicker_rbs.a running
[ 15] [190] Ad From Server v20.06.06 SKAJIbnEJIb ad_from_server. running
[ 16] [190] AdminCmd RBS v20.06.06 SKAJIbnEJIb & AM admincmd_rbs.am running
[ 17] Menus Front-End v20.06.06 SKAJIbnEJIb & AM amxmodmenu_rbs. running
[ 18] [190] VIP RBS v20.07.20 SKAJIbnEJIb vip_rbs.amxx running
[ 19] [190] Ultimate Flags v20.06.06 SKAJIbnEJIb ultimate_flags. running
[ 20] [190] CmdMenu RBS v20.06.06 SKAJIbnEJIb & AM cmdmenu_rbs.amx running
[ 21] [ZP] Can Auto Save Amm v0.1.0 ZombArena.Ru zp_can_auto_sav running
[ 22] [190] CsStats MySQL v20.06.06 SKAJIbnEJIb csstats_mysql.a running
[ 23] [190] Stats Configurat v20.06.06 SKAJIbnEJIb & AM statscfg_rbs.am running
[ 24] [190] StatsX RBS v21.03.23 SKAJIbnEJIb & AM statsx_rbs.amxx running
[ 25] [190] Army Ranks Ultim v20.06.06 SKAJIbnEJIb army_ranks_ulti running
[ 26] [190] Ultimate Informe v21.03.23 SKAJIbnEJIb ultimate_inform running
[ 27] AR Zombie Mod v14.12.02 SKAJIbnEJIb ar_zombiemod.am running
[ 28] AR Double v14.12.02 SKAJIbnEJIb ar_double.amxx running
[ 29] [ZP] Core/Engine v5.0.8 ZP Dev Team zp50_core.amxx running
[ 30] [AMXX] External Settin v0.1 WiLS amx_settings_ap running
[ 31] [CS] Player Models API v1.2 WiLS cs_player_model running
[ 32] [CS] Teams API v1.2 WiLS cs_teams_api.am running
[ 33] [CS] MaxSpeed API v1.0 WiLS cs_maxspeed_api running
[ 34] [CS] Weapon Models API v1.1 WiLS cs_weap_models_ running
[ 35] [CS] Weapons Restrict v0.4 WiLS cs_weap_restric running
[ 36] [CS] Ham Hooks for Bot v1.0 WiLS cs_ham_bots_api running
[ 37] [ZP] Class: Zombie v5.0.8 ZP Dev Team zp50_class_zomb running
[ 38] [ZP] Class: Human v5.0.8 ZP Dev Team zp50_class_huma running
[ 39] [ZP] Class: Nemesis v5.0.8 ZP Dev Team zp50_class_neme running
[ 40] [ZP] Class: Survivor v5.0.8 ZP Dev Team zp50_class_surv running
[ 41] [CSO:Ghost Zombie] v1.4 HoRRoR, Fry!,tER zp_classic.amxx running
[ 42] [ZP] Class: Big v1.0 :) / Slimes zp_class_big.am running
[ 43] DJB Zombie Class Banch v1.0 Csoldjb zp_banshe.amxx running
[ 44] [ZP] Zombie Class: KF v0.2 meTaLiCroSS zp_zcls_siren.a running
[ 45] [ZP] Zombie Class: Rev v1.0 =), LARS-BLOODLI zp_zclass_deimo running
[ 46] [ZP] Human Armor v5.0.8 ZP Dev Team zp50_human_armo running
[ 47] [ZP] Game Modes Manage v5.0.8 ZP Dev Team zp50_gamemodes. running
[ 48] [ZP] Game Mode: Infect v5.0.8 ZP Dev Team zp50_gamemode_i running
[ 49] [ZP] Game Mode: Multip v5.0.8 ZP Dev Team zp50_gamemode_m paused
[ 50] [ZP] Game Mode: Swarm v5.0.8 ZP Dev Team zp50_gamemode_s paused
[ 51] [ZP] Game Mode: Nemesi v5.0.8 ZP Dev Team zp50_gamemode_n paused
[ 52] [ZP] Game Mode: Surviv v5.0.8 ZP Dev Team zp50_gamemode_s paused
[ 53] [ZP] Game Mode: Plague v5.0.8 ZP Dev Team zp50_gamemode_p paused
[ 54] [ZP] Game Mode: Armage v5.0.8 ZP Dev Team zp50_gamemode_a paused
[ 55] [ZP50] Class unlocker v1.1 Catastrophe zp50_extra_limi running
[ 56] New ZP Ammo-Menu v0.1 Sanya@ admin_ammo_menu running
[ 57] [ZP] Addon: Knifes vNEW Mr.TheFold zp_addon_knifes running
[ 58] mkod_show_bullet_damag v1.0 MKOD zombie_damager. running
[ 59] [ZP] Items Manager v5.0.8 ZP Dev Team zp50_items.amxx running
[ 60] [ZP] Items Manager: Am v5.0.8 ZP Dev Team zp50_items_ammo running
[ 61] [ZP] Grenade: Fire v5.0.8 Leo_[BH] & ZP De zp50_grenade_fi running
[ 62] [ZP] Grenade: Frost v5.0.8 Leo_[BH] & ZP De zp50_grenade_fr running
[ 63] [ZP] Grenade: Flare v5.0.8 Leo_[BH] & ZP De zp50_grenade_fl running
[ 64] [ZP] LaserMine v2.8.1 SandStriker / Sh zp_lasermine_28 running
[ 65] [AMXX | ZP] KnockBack v0.0.1 1331 armor_pushing.a running
[ 66] [ZP] Weapon: Stinger v1.0.2 xUnicorn (t3rkec zp_weapon_sting running
[ 67] [ZP] Weapon: THANATOS- v2.0 xUnicorn (t3rkec zp_weapon_thana running
[ 68] [X-CSO] Weapon: Bounce v1.1.1 xUnicorn (t3rkec zp_weapon_bounc running
[ 69] [CSO] Weapon: M4A1 Dar v1.0 Base: Batcon; Re cso_weapon_buff running
[ 70] [ZP] Item: Weapons v5.0.8 ZP Dev Team zp50_item_weapo running
[ 71] [ZP] Item: Antidote v5.0.8 ZP Dev Team zp50_item_antid running
[ 72] [ZP] Item: Zombie Madn v5.0.8 ZP Dev Team zp50_item_zombi running
[ 73] [ZP] Admin Commands v5.0.8 ZP Dev Team zp50_admin_comm running
[ 74] [ZP] Admin Menus v5.0.8 ZP Dev Team zp50_admin_menu running
[ 75] [ZP] Admin Models v5.0.8 ZP Dev Team zp50_admin_mode running
[ 76] [ZP] Custom Buy Menus v5.0.8 ZP Dev Team zp50_buy_menus. running
[ 77] [ZP] Buyzones v5.0.8 ZP Dev Team zp50_buy_zones. running
[ 78] [ZP] Rewards: Ammo Pac v5.0.8 ZP Dev Team zp50_rewards_am running
[ 79] [ZP] Rewards: Frags & v5.0.8 ZP Dev Team zp50_rewards_fr running
[ 80] [ZP] Deathmatch v5.0.8 ZP Dev Team zp50_deathmatch running
[ 81] [ZP] Random Spawning v5.0.8 ZP Dev Team zp50_random_spa running
[ 82] [ZP] Spawn Protection v5.0.8 ZP Dev Team zp50_spawn_prot running
[ 83] [ZP] Zombie Features v5.0.8 ZP Dev Team zp50_zombie_fea running
[ 84] [ZP] Zombie Sounds v5.0.8 ZP Dev Team zp50_zombie_sou running
[ 85] [ZP] Zombie Damage v5.0.8 ZP Dev Team zp50_zombie_dam running
[ 86] [ZP] Human Unlimited A v5.0.8 ZP Dev Team zp50_human_ammo running
[ 87] [ZP] Flashlight v5.0.8 ZP Dev Team zp50_flashlight running
[ 88] [ZP] Leap/Longjump v5.0.8 ZP Dev Team zp50_leap.amxx running
[ 89] [ZP] Pain Shock Free v5.0.8 ZP Dev Team zp50_painshockf running
[ 90] [ZP] Knockback v5.0.8 ZP Dev Team zp50_knockback. running
[ 91] [ZP] Weapon Drop/Strip v5.0.8 ZP Dev Team zp50_weapon_dro running
[ 92] [ZP] Effects: Infect v5.0.8 ZP Dev Team zp50_effects_in running
[ 93] [ZP] Effects: Cure v5.0.8 ZP Dev Team zp50_effects_cu running
[ 94] [ZP] Effects: Lighting v5.0.8 ZP Dev Team zp50_effects_li running
[ 95] [ZP] Ambience Effects v5.0.8 ZP Dev Team zp50_ambience_e running
[ 96] [ZP] Ambience Sonds v5.0.8 ZP Dev Team zp50_ambience_s running
[ 97] [ZP] Main Menu v5.0.8 ZP Dev Team zp50_main_menu. running
[ 98] [ZP] Objective Remover v5.0.8 ZP Dev Team zp50_objective_ running
[ 99] [ZP] Gameplay Fixes v5.0.8 ZP Dev Team zp50_gameplay_f running
[100] [ZP] Team Scoring 5.0.8 ZP Dev Team zp50_team_scori running
[101] unknown unknown unknown zp50_hud_info.a running
[102] [ZP] Server Browser In 5.0.8 ZP Dev Team zp50_serverbrow running
[103] [ZP] Ammo Packs 5.0.8 ZP Dev Team zp50_ammopacks. running
[104] [ZP] ZP 4.3 Subplugin 5.0.8 ZP Dev Team zp50_zp43_compa running
[105] [RZ] VIP Core/Engine 1.1 H.RED.ZONE rz_vip_core.amx running
[106] [RZ] VIP Armor 1.1 H.RED.ZONE rz_vip_armor.am running
[107] [RZ] VIP No Recoil 1.1 H.RED.ZONE rz_vip_recoil.a running
[108] [RZ] VIP MultiJump 1.1 H.RED.ZONE rz_vip_multijum running
[109] [RZ] VIP Ammopacks 1.1 H.RED.ZONE rz_vip_reward.a running
109 plugins, 103 running
Автор плагина
ZP Dev Team
Версия плагина
v5.0.8
Исходный код
#include <amxmodx>
#include <fun>
#include <cstrike>
#include <fakemeta>
#include <zp50_class_human>
#include <zp50_class_zombie>
#define LIBRARY_NEMESIS "zp50_class_nemesis"
#include <zp50_class_nemesis>
#define LIBRARY_SURVIVOR "zp50_class_survivor"
#include <zp50_class_survivor>
#define LIBRARY_AMMOPACKS "zp50_ammopacks"
#include <zp50_ammopacks>
#include <dhudmessage>

const Float:HUD_SPECT_X = 0.6
const Float:HUD_SPECT_Y = 0.8
const Float:HUD_STATS_X = 0.02
const Float:HUD_STATS_Y = 0.9

const HUD_STATS_ZOMBIE_R = 200
const HUD_STATS_ZOMBIE_G = 250
const HUD_STATS_ZOMBIE_B = 0

const HUD_STATS_HUMAN_R = 0
const HUD_STATS_HUMAN_G = 200
const HUD_STATS_HUMAN_B = 250

const HUD_STATS_SPEC_R = 255
const HUD_STATS_SPEC_G = 255
const HUD_STATS_SPEC_B = 255

#define TASK_SHOWHUD 100
#define ID_SHOWHUD (taskid - TASK_SHOWHUD)

const PEV_SPEC_TARGET = pev_iuser2

public plugin_natives()
{
set_module_filter("module_filter")
set_native_filter("native_filter")
}
public module_filter(const module[])
{
if (equal(module, LIBRARY_NEMESIS) || equal(module, LIBRARY_SURVIVOR) || equal(module, LIBRARY_AMMOPACKS))
return PLUGIN_HANDLED;

return PLUGIN_CONTINUE;
}
public native_filter(const name[], index, trap)
{
if (!trap)
return PLUGIN_HANDLED;

return PLUGIN_CONTINUE;
}

public client_putinserver(id)
{
if (!is_user_bot(id))
{
// Set the custom HUD display task
set_task(1.0, "ShowHUD", id+TASK_SHOWHUD, _, _, "b")
}
}

public client_disconnect(id)
{
remove_task(id+TASK_SHOWHUD)
}

// Show HUD Task
public ShowHUD(taskid)
{
new player = ID_SHOWHUD

// Player dead?
if (!is_user_alive(player))
{
// Get spectating target
player = pev(player, PEV_SPEC_TARGET)

// Target not alive
if (!is_user_alive(player))
return;
}

// Format classname
static class_name[32], transkey[64]
new red, green, blue

if (zp_core_is_zombie(player)) // zombies
{
red = HUD_STATS_ZOMBIE_R
green = HUD_STATS_ZOMBIE_G
blue = HUD_STATS_ZOMBIE_B

// Nemesis Class loaded?
if (LibraryExists(LIBRARY_NEMESIS, LibType_Library) && zp_class_nemesis_get(player))
formatex(class_name, charsmax(class_name), "%L", ID_SHOWHUD, "CLASS_NEMESIS")
else
{
zp_class_zombie_get_name(zp_class_zombie_get_current(player), class_name, charsmax(class_name))

// ML support for class name
formatex(transkey, charsmax(transkey), "ZOMBIENAME %s", class_name)
if (GetLangTransKey(transkey) != TransKey_Bad) formatex(class_name, charsmax(class_name), "%L", ID_SHOWHUD, transkey)
}
}
else // humans
{
red = HUD_STATS_HUMAN_R
green = HUD_STATS_HUMAN_G
blue = HUD_STATS_HUMAN_B

// Survivor Class loaded?
if (LibraryExists(LIBRARY_NEMESIS, LibType_Library) && zp_class_survivor_get(player))
formatex(class_name, charsmax(class_name), "%L", ID_SHOWHUD, "CLASS_SURVIVOR")
else
{
zp_class_human_get_name(zp_class_human_get_current(player), class_name, charsmax(class_name))

// ML support for class name
formatex(transkey, charsmax(transkey), "HUMANNAME %s", class_name)
if (GetLangTransKey(transkey) != TransKey_Bad) formatex(class_name, charsmax(class_name), "%L", ID_SHOWHUD, transkey)
}
}

// Spectating someone else?
if (player != ID_SHOWHUD)
{
new player_name[32]
get_user_name(player, player_name, charsmax(player_name))

// Show name, health, class, and money
set_dhudmessage(red, green, blue, -1.0, 0.90, 0, 6.0, 1.1, 0.0, 0.0,-1)

if (LibraryExists(LIBRARY_AMMOPACKS, LibType_Library))
show_dhudmessage(ID_SHOWHUD, "[ %L: %s ]^n[ Здоровье: %d ] [ %L %s ] [ %L %d ]", ID_SHOWHUD, "SPECTATING", player_name, get_user_health(player), ID_SHOWHUD, "CLASS_CLASS", class_name, ID_SHOWHUD, "AMMO_PACKS1", zp_ammopacks_get(player))
else
show_dhudmessage(ID_SHOWHUD, "[ %L: %s ]^n[ Здоровье: %d ] [ %L %s ] [ %L $ %d ]", ID_SHOWHUD, "SPECTATING", player_name, get_user_health(player), ID_SHOWHUD, "CLASS_CLASS", class_name, ID_SHOWHUD, "MONEY1", cs_get_user_money(player))
}
else
{
// Show health, class
set_dhudmessage(red, green, blue, -1.0, 0.90, 0, 6.0, 1.1, 0.0, 0.0,-1)

if (LibraryExists(LIBRARY_AMMOPACKS, LibType_Library))
show_dhudmessage(ID_SHOWHUD, "[ Здоровье: %d ] [ %L %s ] [%L %d]", get_user_health(ID_SHOWHUD), ID_SHOWHUD, "CLASS_CLASS", class_name, ID_SHOWHUD, "AMMO_PACKS1", zp_ammopacks_get(ID_SHOWHUD))
else
show_dhudmessage(ID_SHOWHUD, "[ Здоровье: %d ] [ %L %s ]", get_user_health(ID_SHOWHUD), ID_SHOWHUD, "CLASS_CLASS", class_name)
}
}
Здравствуйте! Может кто помочь добавить в информер броню, чтобы только показывало у людей - у зомби без брони
И исправить 2 warning при компиляций

zp50_hud_info.sma(146) : warning 213: tag mismatch
zp50_hud_info.sma(156) : warning 213: tag mismatch
 
Статус
В этой теме нельзя размещать новые ответы.

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

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