- Ошибка
-
При смене кнопки активации способности у некро на G перестают действовать способности у других зомби у которых способность активируется тоже на эту кнопку
- ОС
- Windows
- Amx Mod X
-
AMX Mod X 1.9.0
- Билд
-
Built from: https://github.com/alliedmodders/amxmodx/commit/6cecb34e
Build ID: 5249:6cecb34e
- ReGamedll
-
ReGameDLL version: 5.26.0.668-dev
Build date: 19:02:33 Dec 31 2023
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/d3c0ec8
- Версия Metamod
-
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 15:47:38 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
- Список метамодулей
-
[ 1] SafeNameAndChat RUN - safenameandchat.dll v1.1 ini ANY ANY
[ 2] Reunion RUN - reunion_mm.dll v0.1.0.92 ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm.dll v0.1.6 ini Start Never
[ 4] <voicetranscoder.dll> badf load voicetranscoder.dll v - ini - -
[ 5] AMX Mod X RUN - amxmodx_mm.dll v1.9.0.5249 ini Start ANY
[ 6] WHBlocker RUN - whblocker_mm.dll v1.5.696 ini Chlvl ANY
[ 7] ReSemiclip RUN - resemiclip_mm.dll v2.3.9 ini Chlvl ANY
[ 8] Ultimate Unprecacher RUN - ultimate_unprecacher_mm.dll v0.3 Alpha ini ANY ANY
[ 9] YaPB RUN - yapb.dll v4.4.957 ini Chlvl ANY
[10] E-BOT LEGACY RUN - ebot.dll v1.07 ini Start Never
[11] CStrike RUN - cstrike_amxx.dll v1.9.0.5249 pl5 ANY ANY
[12] CSX RUN - csx_amxx.dll v1.9.0.5249 pl5 ANY ANY
[13] Fun RUN - fun_amxx.dll v1.9.0.5249 pl5 ANY ANY
[14] FakeMeta RUN - fakemeta_amxx.dll v1.9.0.5249 pl5 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx.dll v1.9.0.5249 pl5 ANY ANY
[16] GeoIP RUN - geoip_amxx.dll v1.9.0.5249 pl5 ANY ANY
[17] MySQL RUN - mysql_amxx.dll v1.9.0.5249 pl5 ANY ANY
[18] SQLite RUN - sqlite_amxx.dll v1.9.0.5249 pl5 ANY ANY
[19] Engine RUN - engine_amxx.dll v1.9.0.5249 pl5 ANY ANY
[20] ReAPI RUN - reapi_amxx.dll v5.19.0.211-dev pl5 ANY Never
[21] ReAimDetector RUN - reaimdetector_amxx.dll v0.2.2 pl5 ANY Never
[22] Orpheu RUN - orpheu_amxx.dll v2.6.3 pl5 ANY ANY
- Список плагинов
-
[ 1] Map Manager 2.5.60 Mistrick mapmanager.amxx running
[ 2] mute 1.0 Aziz xman2030_mute.a running
[ 3] Admin Base 1.9.0.5249 AMXX Dev Team admin.amxx running
[ 4] Admin Commands 1.9.0.5249 AMXX Dev Team admincmd.amxx running
[ 5] Admin Help 1.9.0.5249 AMXX Dev Team adminhelp.amxx running
[ 6] Slots Reservation 1.9.0.5249 AMXX Dev Team adminslots.amxx running
[ 7] Multi-Lingual System 1.9.0.5249 AMXX Dev Team multilingual.am running
[ 8] Commands Menu 1.9.0.5249 AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.9.0.5249 AMXX Dev Team plmenu.amxx running
[ 10] Teleport Menu 1.9.0.5249 AMXX Dev Team telemenu.amxx running
[ 11] Maps Menu 1.9.0.5249 AMXX Dev Team mapsmenu.amxx running
[ 12] Plugin Menu 1.9.0.5249 AMXX Dev Team pluginmenu.amxx running
[ 13] Admin Chat 1.9.0.5249 AMXX Dev Team adminchat.amxx running
[ 14] Anti Flood 1.9.0.5249 AMXX Dev Team antiflood.amxx running
[ 15] Admin Votes 1.9.0.5249 AMXX Dev Team adminvote.amxx running
[ 16] Pause Plugins 1.9.0.5249 AMXX Dev Team pausecfg.amxx running
[ 17] Stats Configuration 1.9.0.5249 AMXX Dev Team statscfg.amxx running
[ 18] StatsX 1.9.0.5249 AMXX Dev Team statsx.amxx running
[ 19] Ultimate Gore 1.6 JTP10181 amx_gore_ultima running
[ 20] TimeLeft 1.9.0.5249 AMXX Dev Team timeleft.amxx running
[ 21] Advanced Weapon Tracer 1.3.0 ConnorMcLeod advanced_weapon running
[ 22] NextMap 1.9.0.5249 AMXX Dev Team nextmap.amxx stopped
[ 23] POD-Bot Menu 1.3 g4s|figurE.09 amxx_podbotmenu running
[ 24] Game Namer 1.1 NeuroToxin gamenamechanger running
[ 25] Precache Management 1.0.0 ConnorMcLeod precache_manage stopped
[ 26] Advert Messages 1.2 neygomon adverts.amxx running
[ 27] Fix Remove Entity When zm zm zp_entityfix.am paused
[ 28] ScreenMaker 1.1 neygomon screen_maker.am running
[ 29] fb_forwards 0.1.8 Mazdan & Neugomo fb_forwards.amx running
[ 30] FreshBans 1.4.0b kanagava fresh_bans_1.4. running
[ 31] Menus Front-End 1.5 neugomon menufront_end.a running
[ 32] AMXX Gag 1.4.9 xPaw & Exolent amx_gag.amxx running
[ 33] motd 1.1 L@NPOC@N motd.amxx running
[ 34] unknown unknown unknown warnings.amxx bad load
[ 35] Anti Reklama 1.1 MarcaD anti_reklama.am running
[ 36] SpecList 1.2a FatalisDK speclist_rus.am running
[ 37] DemoRecoder 1.2 neygomon demorecoder.amx running
[ 38] AFK Manager 1.2 Xramer afk_manager.amx paused
[ 39] Exec 1.0 ToXiC amx_exec.amxx running
[ 40] Chat Logger 2.1a Jim chat_logger.amx running
[ 41] Zombie Escape 1337 xman2030 xman2030_ze_mod debug
[ 42] [ZP]Level System 6.0 Dambas xman2030_level. running
[ 43] Camera View 0.0.1 ConnorMcLeod talrasha_camera debug
[ 44] [CSO] 0.1 meTaLiCroSS server_class_sh running
[ 45] [CSO:Ghost Zombie] 1.4 HoRRoR, Fry!,tER cso_zclass_ghos running
[ 46] [ZP] Zclass : Zombie R 1.0 The_Thing zp_zclass_regen running
[ 47] [ZP] ZP Class: Clot 0.2 DJHD! zp_zclass_clot_ running
[ 48] [ZP] Zombie Class: Des 2.0 Re.Act!ve zp_zclass_despe debug
[ 49] [vk.com/deathrun_items 1.4 HoRRoR, Fry!,tER server_class_sp running
[ 50] [ZP] Class : Execution 1.0.0 schmurgel1983 zp_zclass_execu running
[ 51] [ZP] Class: Jumper 1.0 Doomsday jumper.amxx running
[ 52] DJB Zombie Class Banch 2.0.9 Csoldjb&wbyokomo witch_test_72.a running
[ 53] [ZP] Zombie Class: Gyp 1.2 Re.Act!ve zp_zclass_gypno debug
[ 54] NST Zombie Class Heal 1.0 NST NST_ZbClass_Hea running
[ 55] [ZP] Frost Zombie 1.0 Torge zp_zclass_frost running
[ 56] [ZP] Class : Frank 1.0 tumoxa xman2030_pc.amx running
[ 57] [ZP] Zombie Class: Gra 1.0 Zombie zp_gravity.amxx running
[ 58] ZM VIP 1.7.2 aaarnas xman2030_vip.am running
[ 59] [FS] Chat 1.1 Inf xman2030_chat.a running
[ 60] Random Sounds 2.0 xman2030 xman2030_random running
[ 61] Heli Button Info 1.0 Shanks' xman2030_showes running
[ 62] [ZP] EASY SAVE AMMO 1.2 CS-FADE.RU xman2030_ammo_a running
[ 63] [ZP Addon] Knives 0.1 ONYX xman2030_knifes running
[ 64] [ZP] Admin Lvl Menu 1.0 Dambas xman2030_level_ running
[ 65] ZE HUD Final CS-FADE.RU xman2030_ze_hud running
[ 66] NadeModes 11.2 Nomexous & OT xman2030_nademo running
[ 67] [ZP] ZP++ Ice Cube 1.0 DareDevil (Gyiov xman2030_ice_cu running
[ 68] Weapon Model + Sound R 1.2 GHW_Chronic GHW_Weapon_Repl running
[ 69] xman2030_damager CS-FADE.RU CS-FADE.RU xman2030_damage running
[ 70] ZP: Zombie Health 1.0 Yakess yakess_health.a debug
[ 71] Countdown 1.7.3 T a l R a s h a gameplay_countd running
[ 72] [ZP] Addon: Round Lead 1.1 xUnicorn zp_addon_round_ running
[ 73] Automatic Unstuck 1.5 NL)Ramon(NL Auto_Unstuck.am paused
[ 74] ammo donate/dhud 1.5 user/zobie-dead zp_ammo_donate. running
[ 75] Team Locker 1.5 Bmann_420 teamlocker.amxx running
[ 76] xman2030_cons CS-FADE.RU CS-FADE.RU xman2030_cons.a running
[ 77] xman2030_aura CS-FADE.RU CS-FADE.RU xman2030_aura.a running
[ 78] xman2030_blood CS-FADE.RU CS-FADE.RU xman2030_blood. running
[ 79] [ZP] Addon: Weather 0.1 | 30.0 inf / xman2030 xman2030_weathe running
[ 80] unknown unknown unknown xman2030_leader running
[ 81] [ZP] Shoot Light 0.1 | 11.0 inf xman2030_shot_l running
[ 82] [ZP] Round ended effec 1.0 *GEORGE* xman2030_ended_ running
[ 83] [ZP] Round Draw Blast 1.0 MeRcyLeZZ xman2030_round_ running
[ 84] [ ZP ] Nemesis skill Shurik07 0.1 1zp_nemskill.am running
[ 85] ZP Round Results 1.0 MonsteR zp_round_result running
[ 86] [ZPNM] Human Idle Soun 1.0.2 D i 5 7 i n c T zpnm_gp_human_i running
[ 87] [ZPNM] Multi HUD Info 1.1.9 schmurgel1983, D zpnm_gp_multi_h running
[ 88] [CS] Ham Hooks for Bot 1.0 WiLS cs_ham_bots_api running
[ 89] [ZPNM] Descriptive 'Fi 0.1.1 VEN, Hezerf(Neme zpnm_gp_dfith.a running
[ 90] [ZPNM] Flashlight Fix 1.0.8 ConnorMcLeod, sc zpnm_gp_flashli running
[ 91] [ZP] CZ Bot Helper 1.0 @bdul! zp_cz_bot_helpe running
[ 92] [ZP] CZ Bot Nade Helpe 1.0 @bdul! zp_cz_bot_nade_ running
[ 93] ZV Effect 1.0 defa ZV_Effect.amxx running
[ 94] Menu_Priv 1.0 CS-FADE.RU xman2030_menu_p running
[ 95] [ZP] VIP menu 1.2 CS-FADE.RU xman2030_vip_me running
[ 96] [ZP] VIP menu 1.2 CS-FADE.RU xman2030_deluxe running
[ 97] [ZP] VIP menu 1.2 CS-FADE.RU xman2030_creato debug
[ 98] ammo paki 4.0 Bagamut xman2030_ammo_m running
[ 99] unknown unknown unknown xman2030_lk.amx running
[100] [ZP] Extra Item: Jump 1.0 Opo4uMapy xman2030_ze_jum debug
[101] [ZP] Extra Item Speed 1.2 MeRcyLeZZ zp_extra_speed_ running
[102] unknown unknown unknown xman2030_buy_hp running
[103] Janus 1 1.0 m4m3ts xman2030_janus1 running
[104] [CSO LIKE] Extra: Gull 1.0 Lakerovich xman2030_bloodr running
[105] [Zombie Plague] Weapon 0.7 PlaneShfit1231 / zp_extra_rpg7.a running
[106] [ZP] Extra: CSO Weapon 1.0 KORD_12.7 xman2030_m3.amx running
[107] [ZP] Weapon: M32 1.0 PbI)I(Uu' / Batc xman2030_m32.am running
[108] [ZP] Extra: CSO ClayMo 1.0 TemplateAuthor:K xman2030_Claymo running
[109] [ZP] Air Strike 1.0 Dorus xman2030_air_st running
[110] [CSO LIKE] LaserMG 1.1 Lakerovich cso_weapon_lase running
[111] Janus-11 1.0 m4m3ts zp_extra_janus1 running
[112] Rail Cannon 1.0 m4m3ts zp_extra_railca running
[113] [ZP] Weapon: Shining H 1.0 xUnicorn (t3rkec zp_weapon_magic running
[114] Extraitems: Water Pist 1.0 Base: Batcon & x zp_extraitems_w running
[115] [ZMO] Extra-Item: Skul 1.0 Mr.Kot3 zmo_weapon_skul running
[116] [ZP] Extra: m134ex 1.0 LARS-DAY[BR]EAKE zp_weapon_m134e running
[117] [Z] Weapon: M2 0.6 beta batcon weapon_m2.amxx running
[118] Extraitems: Oz Lion Pi 1.0 Base: Batcon & x zp_extraitems_o running
[119] [ZP] Extra item: Aeoli 1.0 m4m3ts zp_extra_aeolis running
[120] [ZP] Weapon: Salamande 1.0 xUnicorn (t3rkec zp_weapon_flame running
[121] [ZP] Extra: Squeak Gre 1.0.6-wwm Arkshine zp_extra_squeak running
[122] Petrolboomer 1.0 m4m3ts xman2030_petrol running
[123] Zombie Plague extra it 1.3 Sonic Son'edit zp_extra_radar. running
[124] [ZM] Choose Weapon 1.6.1 t3rkecorejz | Un xman2030_menu_w running
[125] HUINYA HUINYA HUINYA xman2030_def_we running
[126] [ZP] Extra: Anaconda 1.0 Crock / =) (Popr xman2030_anacon running
[127] [ZP] Extra: CSO Weapon 1.0 KORD_12.7 xman2030_Vulcan running
[128] [ZP] Extra: CSO Weapon 1.0 KORD_12.7 xman2030_Sapien running
[129] [ZP] Extra: M1887 1.0 Crock / =) (Popr xman2030_m1887. running
[130] [ZMO]Weapon: Cyclone 1.0 Base: Batcon; Re xman2030_cyclon running
[131] [ZP] Weapon: Shining H 1.0 xUnicorn (t3rkec xman2030_magicm running
[132] [CSO] Ethereal 0.0.1 Shurik07 xman2030_ethere running
- Автор плагина
- HoRRoR
- Версия плагина
- 1.1
- Исходный код
-
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <fun>
#include <zombieplague>
#define PLUGIN "[ZP] Class - Necro"
#define VERSION "1.1"
#define AUTHOR "HoRRoR"
#define message_begin_f(%1,%2,%3) (engfunc (EngFunc_MessageBegin, %1, %2, %3))
#define write_coord_f(%1) (engfunc (EngFunc_WriteCoord, %1))
new const zclass_name[] = { "\wКолдунья" }
new const zclass_info[] = { "\rКолдует" }
new const zclass_model[] = { "magic_zm" }
new const zclass_clawmodel[] = { "v_zombie_magic.mdl" }
const zclass_health = 1750
const zclass_speed = 240
const Float:zclass_gravity = 0.77
const Float:zclass_knockback = 0.5
new g_zclass_necro
new g_necro_respawn[33] = 1
new g_cooldown[33] = 0
new g_maxplayers
new i_cooldown_time[33] = 0
new g_nowshowed[33] = 0
enum Coord_e {Float:x, Float:y, Float:z};
// --- config ------------------------ //
#define COLOR_R 0
#define COLOR_G 255
#define COLOR_B 255
new Float:g_resp_cooldown = 10.0 //cooldown time
new g_must_infect_before_cast = 0 // set to 1, if you want, that zombie must infect someone to use spell. if 0 - zombie can cast if he spawn
new const sound_resurrection[] = "zombie_plague/spells/zombie_necro/Resurrection.wav" //respawn sound
new const sound_cast[] = "zombie_plague/spells/zombie_necro/Heal_Low_Base.wav" //cast sound
// ----------------------------------- //
public plugin_precache()
{
g_zclass_necro = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
precache_sound(sound_resurrection)
precache_sound(sound_cast)
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("201", "use_ability_one")
register_concmd("201", "use_ability_one")
g_maxplayers = get_maxplayers()
register_logevent("roundStart", 2, "1=Round_Start")
}
public roundStart()
{
for (new i = 1; i <= g_maxplayers; i++)
{
g_cooldown[i] = 0
i_cooldown_time[i] = floatround(g_resp_cooldown)
remove_task(i)
}
}
public use_ability_one(id)
{
if (is_user_alive(id) && (zp_get_user_zombie_class(id) == g_zclass_necro) && zp_get_user_zombie(id) && !zp_get_user_nemesis(id) && (g_cooldown[id] == 0) && g_necro_respawn[id] == 0)
{
for (new i = 1; i <= g_maxplayers; i++)
{
if ((is_user_alive(i) == 0) && zp_get_user_zombie(i) && !zp_get_user_nemesis(i) && (g_necro_respawn[id] == 0))
{
zp_respawn_user(i, ZP_TEAM_ZOMBIE);
emit_sound(i, CHAN_STREAM, sound_resurrection, 1.0, ATTN_NORM, 0, PITCH_NORM);
static Coord_e:vecOrigin [Coord_e];
pev (i,pev_origin, vecOrigin);
message_begin_f (MSG_PVS, SVC_TEMPENTITY, vecOrigin, 0);
write_byte (TE_DLIGHT);
write_coord_f (vecOrigin [x ]);
write_coord_f (vecOrigin [y ]);
write_coord_f (vecOrigin [z ]);
write_byte (50); //light redius
write_byte (COLOR_R); //red
write_byte (COLOR_G); //green
write_byte (COLOR_B); //blue
write_byte (8);//life
write_byte (90);//decay
message_end();
}
}
g_necro_respawn[id] = 1
emit_sound(id, CHAN_STREAM, sound_cast, 1.0, ATTN_NORM, 0, PITCH_NORM);
i_cooldown_time[id] = floatround(g_resp_cooldown)
set_task(1.0, "ShowHUD", id, _, _, "a",i_cooldown_time[id])
set_task(g_resp_cooldown,"necro_ability_cooldown",id)
g_cooldown[id] = 1
g_nowshowed[id] = 0
}else if ((zp_get_user_zombie_class(id) == g_zclass_necro) && zp_get_user_zombie(id) && !zp_get_user_nemesis(id) && (g_cooldown[id] == 0) && (g_necro_respawn[id] == 1))
{
if (is_user_alive(id))
{
new text[100]
format(text,99,"^x04[ZP]^x01 Your must infect someone to use your ability.")
message_begin(MSG_ONE,get_user_msgid("SayText"),{0,0,0},id)
write_byte(id)
write_string(text)
message_end()
}
}
}
public necro_ability_cooldown(id)
{
if ((zp_get_user_zombie_class(id) == g_zclass_necro) && zp_get_user_zombie(id) && !zp_get_user_nemesis(id))
{
g_cooldown[id] = 0
new text[100]
format(text,99,"^x04[ZP]^x01 Your ability ^x04Resurrection^x01 is ready.")
message_begin(MSG_ONE,get_user_msgid("SayText"),{0,0,0},id)
write_byte(id)
write_string(text)
message_end()
}
}
public ShowHUD(id)
{
if(is_user_alive(id))
{
i_cooldown_time[id] = i_cooldown_time[id] - 1;
set_hudmessage(200, 100, 0, 0.75, 0.92, 0, 1.0, 1.1, 0.0, 0.0, -1)
show_hudmessage(id, "Resurrection cooldown: %d",i_cooldown_time[id])
}else{
remove_task(id)
}
}
public zp_user_humanized_post(id)
{
remove_task(id)
}
public zp_user_infected_post(id, infector)
{
if ((zp_get_user_zombie_class(id) == g_zclass_necro) && !zp_get_user_nemesis(id))
{
new text[100]
new note_cooldown = floatround(g_resp_cooldown)
format(text,99,"^x04[ZP]^x01 Your ability is ^x04Resurrection^x01. Cooldown:^x04 %d ^x01seconds.",note_cooldown)
message_begin(MSG_ONE,get_user_msgid("SayText"),{0,0,0},id)
write_byte(id)
write_string(text)
message_end()
i_cooldown_time[id] = floatround(g_resp_cooldown)
remove_task(id)
g_necro_respawn[id] = g_must_infect_before_cast
g_cooldown[id] = 0
client_cmd(id,"bind F1 ability1")
}
if (zp_get_user_zombie_class(infector) == g_zclass_necro)
{
if (g_nowshowed[infector] == 0)
{
g_necro_respawn[infector] = 0
new text[100]
format(text,99,"^x04[ZP]^x01 Сейчас вы можете использовать свою способность.")
message_begin(MSG_ONE,get_user_msgid("SayText"),{0,0,0},infector)
write_byte(infector)
write_string(text)
message_end()
g_nowshowed[infector] = 1
}
}
}
Хотел поставить zp_zcls_necro (зомби класс) он может респавнить всех умерших зомбей на карте. Изначально в исходнике (там где public plugin_init() и ниже register_clcmd("201", "use_ability_one")) активация способности прописана на кнопку (use_ability_one), я не знаю что это за кнопка, я переписал так, чтобы способность активировалась на кнопку G, заменив "use_ability_one" на "drop". Ещё ниже есть register_concmd("201", "use_ability_one"), здесь я тоже на drop переписал. После этого способность у этого зомби класса заработала, но и произошла перемена: у всех остальных зомби классов, у которых активация скилла тоже на кнопку G, например ведьма или невидимка, перестали работать способности, а потом я назад переписал некру то, что было изначально с drop на use ability one, тогда у ведьмы и т. д. способности заработали, у некро - снова куда не нажми, не работает способность... Почему так, я понятия не имею, очень прошу помочь.
В этой теме было размещено решение! Перейти к решению.