Как сделать 4 слот под HealthNade Cs 1.6

stelth

Пользователь
Регистрация
16 Янв 2021
Сообщения
2
Симпатии
0
OS
Linux
Amx Mod X
AMXX 1.8.2
Билд
ReHLDS version: 3.8.0.703-dev-mpatch
ReGamedll
ReGameDLL version: 5.18.0.474-dev
Metamod
Patch: Metamod-P (mm-p) v37
Meta модули
Код:
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] Reunion RUN - reunion_mm_i386. v0.1.75 ini Start Never
[ 2] SafeNameAndChat RUN - SafeNameAndChat. v1.1 ini ANY ANY
[ 3] AMX Mod X RUN - amxmodx_mm_i386. v1.8.2 ini Start ANY
[ 4] ProcessCmds RUN - processcmds_mm_i v1.1.8 ini Start Never
[ 5] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 6] Rechecker RUN - rechecker_mm_i38 v2.5 ini Chlvl ANY
[ 7] VoiceTranscoder RUN - VoiceTranscoder. v2020MA2 ini ANY ANY
[ 8] MySQL RUN - mysql_amxx_i386. v1.8.2 pl3 ANY ANY
[ 9] FakeMeta RUN - fakemeta_amxx_i3 v1.8.2 pl3 ANY ANY
[10] CStrike RUN - cstrike_amxx_i38 v1.8.2-d pl3 ANY ANY
[11] CSX RUN - csx_amxx_i386.so v1.8.2 pl3 ANY ANY
[12] Fun RUN - fun_amxx_i386.so v1.8.2 pl3 ANY ANY
[13] Engine RUN - engine_amxx_i386 v1.8.2 pl3 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx v1.8.2 pl3 ANY ANY
[15] ReAimDetector RUN - reaimdetector_am v0.2.2 pl3 ANY Never
[16] ReAPI RUN - reapi_amxx_i386. v5.15.0. pl3 ANY Never
16 plugins, 16 running
Плагины
Код:
[ 1] AMXBans: Core 1.8.2 MA: 1.6.12 Larte Team amxbans_core.am running
[ 2] AMXBans: Main 1.8.2 MA: 1.6.12 Larte Team amxbans_main.am running
[ 3] Anti Flood 1.8.2 AMXX Dev Team antiflood.amxx running
[ 4] Admin Commands 1.8.2 AMXX Dev Team admincmd.amxx running
[ 5] Admin Help 1.8.2 AMXX Dev Team adminhelp.amxx running
[ 6] Slots Reservation 1.8.2 AMXX Dev Team adminslots.amxx running
[ 7] Admin Votes 1.8.2 AMXX Dev Team adminvote.amxx running
[ 8] Admin Chat 1.8.M AMXX Dev Team adminchat.amxx running
[ 9] Commands Menu 1.8.2 AMXX Dev Team cmdmenu.amxx running
[ 10] Info. Messages 1.8.2 AMXX Dev Team imessage.amxx running
[ 11] Maps Menu 1.8.2 AMXX Dev Team mapsmenu.amxx running
[ 12] CS Misc. Stats 1.8.2 AMXX Dev Team miscstats.amxx running
[ 13] Multi-Lingual System 1.8.2 AMXX Dev Team multilingual.am running
[ 14] Pause Plugins 1.8.2 AMXX Dev Team pausecfg.amxx running
[ 15] Players Menu 1.8.M AMXX Dev Team plmenu.amxx running
[ 16] Scrolling Message 1.8.2 AMXX Dev Team scrollmsg.amxx running
[ 17] TimeLeft 1.8.2 AMXX Dev Team timeleft.amxx running
[ 18] Plugin Menu 1.8.2 AMXX Dev Team pluginmenu.amxx running
[ 19] AMX Mod Compat Engine 1.76.rc4 AMXX Dev Team amxmod_compat.a running
[ 20] High Ping Kicker 1.0 Shadow/Bo0m! amx_hpk.amxx running
[ 21] Autoresponder/Advertis 0.5 MaximusBrood ad_manager.amxx running
[ 22] Map Manager 2.5.61 Mistrick mapmanager.amxx running
[ 23] Map Manager: Sub Plugi 0.1 Mistrick mapmanager_subp running
[ 24] Admin ESP 1.5b_mini KoST admin_esp_mini. running
[ 25] Info Rank 1.0/1 connor info_rank.amxx running
[ 26] Descriptive 'Fire in t 0.1 VEN descriptive_fir running
[ 27] Killa HP 1.0 jas0n killa_hp.amxx running
[ 28] Damager 2.0/1 Prayer edited My damager.amxx running
[ 29] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a running
[ 30] [ReAPI] No Team Flash 1.0 ReHLDS Team noteamflash.amx running
[ 31] Parachute 1.3 KRoT@L/JTP10181 amx_parachute.a running
[ 32] vipmenu 1.0 KR4K3N svipmenu.amxx running
[ 33] V.I.P Custom M4A1 1.0.0 KR4K3N gold_m4a1.amxx running
[ 34] Gold Ak-47 by KR4K3N 1.0.0 KR4K3N gold_ak47.amxx running
[ 35] DhudNumberRound 1.0 GigaByte numberround.amx running
[ 36] Nice Killer 1.6 Got Milk? / HoHo nice_killer.amx running
[ 37] VOTEBAN_BY_SLIMSHADY 3.0 SLIMSHADY_MOD voteban_by_slim running
[ 38] AWPoff 4.0 PAffAEJIkA :3 awpoff.amxx running
[ 39] AFK Manager v1.4d Leon McVeran afk_manager.amx running
[ 40] Reset Score 0.2 Silenttt / CepeH reset_score_v0. running
[ 41] Restrict Weapons 1.8.2 Leo_[BH] restmenu.amxx running
[ 42] Team Grenade Trail 1.2 Numb team_grenade_tr running
[ 43] CSNadeDrops 0.14 Avalanche csnadedrops.amx running
[ 44] Auto recording demo 2.0 IzI | Bonaqua (R amx_autodemorec running
[ 45] Lite Translit 2.5.7b/11 neygomon lite_translit.a running
[ 46] Steam Bonus 1.6.0 Radius | Stimul steam_bonus.amx running
[ 47] UnBanmenu 1 AMX Team unbanmenu.amxx running
[ 48] Admin Check 1.51 OneEyed admin_check.amx running
[ 49] Ultimate KillStreak Ad 0.7 SAMURAI ut_killstreak_a running
[ 50] Killer screen fade 1.0 Flazh killerscreenfad running
[ 51] Bomb Countdown HUD Tim 0.2 SAMURAI bcd_hudtimer.am running
[ 52] Game Namer 1.3 NeuroToxin gamenamechanger running
[ 53] Map On Time 0.5 BaHeK map_on_time.amx running
[ 54] Players Count in Team 2.0 kramesa playerscountsel running
[ 55] Advanced Gag 1.4.2 neygomon amx_gag.amxx running
[ 56] Welcome HudMsg 1.0 DeSeRt^ dhud_msg.amxx running
[ 57] AMX Admin Sexy Model 1.0 whitemike & homo lady_admin.amxx running
[ 58] MG Grab 1.0 Nickron mg_grab.amxx running
[ 59] Server AMXMODMENU [INI 1.0 Leo_[BH] amxmodmenu.amxx running
[ 60] ScreenMaker 1.1 neygomon screen_maker.am running
[ 61] Player Knife Duel 1.6 Name_PKD player_knife_du running
[ 62] AMXX VIP Gold 1.0 Flymic24 amxx_vip_gold.a running
[ 63] dhud advert 1.0 DUKKHAZ0R dhud_advert.amx running
[ 64] win_team 1.0 Zone win_team.amxx running
[ 65] Admin OnLine (AOL) 1.2 [CkA] jas0n adminonline.amx running
[ 66] Auto Restart KNIFE 2.0 Leo_[BH] auto_rr.amxx running
[ 67] AES: Bonus CSTRIKE 0.4 serfreeman1337 aes_bonus_cstri running
[ 68] AES: Bonus System 0.2 serfreeman1337 aes_bonus_syste running
[ 69] AES: Exp CSTRIKE 0.3 serfreeman1337 aes_exp_cstrike running
[ 70] AES: Experience Editor 0.1 serfreeman1337 aes_exp_editor. running
[ 71] AES: Informer 0.2 serfreeman1337 aes_informer.am running
[ 72] Advanced Experience Sy 0.4.1 serfreeman1337 aes_main.amxx running
[ 73] AES: StatsX 0.3 Beta serfreeman1337 aes_statsx_cstr running
[ 74] CS Stats Logging 1.8.2 AMXX Dev Team stats_logging.a running
[ 75] Stats Configuration 1.8.2 AMXX Dev Team statscfg.amxx running
[ 76] StatsX 1.8.2 AMXX Dev Team statsx.amxx running
[ 77] Connect Info 1.0 Hypa_[KZ] connect_info.am running
[ 78] Smoke: HealthNade 0.0.3 wopox1337 nadehealth.amxx running
[ 79] AMXBans: Freeze 1.8.2 MA: 1.6.12 Larte Team amxbans_freeze. running
[ 80] AMXBans: Flagged 1.8.2 MA: 1.6.12 Larte Team amxbans_flagged running
[ 81] AMXBans: Screens 1.8.2 MA: 1.6.12 Larte Team amxbans_ssban.a running
81 plugins, 81 running
Amxx Модули
Код:
MySQL 1.8.2 AMX Mod X Dev Team running
FakeMeta 1.8.2 AMX Mod X Dev Team running
CStrike 1.8.2-dev- AMX Mod X Dev Team running
CSX 1.8.2 AMX Mod X Dev Team running
Fun 1.8.2 AMX Mod X Dev Team running
Engine 1.8.2 AMX Mod X Dev Team running
Ham Sandwich 1.8.2 AMX Mod X Dev Team running
ReAimDetector 0.2.2 ReHLDS Team running
ReAPI 5.15.0.197 Asmodai & s1lent running
nVault 1.8.2 AMX Mod X Dev Team running
RegEx 1.8.2 AMX Mod X Dev Team running
Всего 11 модулей
Ошибка
Код:
Не знаю как добавить 4 слот под хилку
Исходник
Код:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <fun>
#include <csx>

/* Settings */
/* Enable action only for the privileged */
#define ACCESS_FLAGS ( ADMIN_LEVEL_F )

/* Enable action only for teammates */
// #define ONLY_FOR_TEAMMATES

const HEALTH_TO_HEAL = 100;
const HEALTH_MAX = 100;
const HEAL_RADIUS = 300;

new const MODEL_V[] = "models/v_he_mk_nade.mdl";
new const MODEL_P[] = "models/p_he_mk_nade.mdl";
new const MODEL_W[] = "models/w_he_mk_nade.mdl";

new const SPRITE_EXPLODE1[] = "sprites/heal_explode.spr";
new const SPRITE_PROS[] = "sprites/heal_shape.spr";

new const SOUND_HEAL[] = "woomen_expr.wav";
/* End of settings */

enum {
XO_WEAPON = 4,
XO_CGRENADE = 5,
m_pPlayer = 41,
m_usEvent = 114
}

new const EXCLASS[] = "grenade";

enum { STATUSICON_HIDE = 0, STATUSICON_FLASH = 2 };

const flagSmokeEvent = (1 << 1);

#define IsSgGrenade(%1) (get_pdata_int(%1, m_usEvent, XO_CGRENADE) & flagSmokeEvent)

#define _GetEntOwner(%1) pev(%1, pev_owner)
#define _GetEntOrigin(%1,%2) pev(%1, pev_origin, %2)

#define _SetViewModel(%1,%2) set_pev(%1, pev_viewmodel2, %2)
#define _SetWorldModel(%1,%2) set_pev(%1, pev_weaponmodel2, %2)

new g_MsgId_StatusIcon, g_MsgId_ScreenFade;

new g_pFirstExplosion,
g_pPros,
g_pCircle;

new const VERSION[] = "0.0.3";

public plugin_init() {
register_plugin("Smoke: HealthNade", VERSION, "wopox1337");

g_MsgId_StatusIcon = get_user_msgid("StatusIcon");
g_MsgId_ScreenFade = get_user_msgid("ScreenFade");

register_touch(EXCLASS, "*", "CGrenade_ExplodeTouch");

register_event("CurWeapon", "Event_CurWeapon", "be", "1=1");
}

public plugin_precache() {
precache_model(MODEL_V);
precache_model(MODEL_P);
precache_model(MODEL_W);

g_pFirstExplosion = precache_model(SPRITE_EXPLODE1);
g_pPros = precache_model(SPRITE_PROS);
g_pCircle = precache_model("sprites/shockwave.spr");

precache_sound(SOUND_HEAL);
}

public Event_CurWeapon(pPlayer) {
enum { WeaponID = 2 };
if(read_data(WeaponID) == CSW_SMOKEGRENADE) {

#if defined ACCESS_FLAGS
if(!IsUserHaveAccessToUse(pPlayer)) return;
#endif

OnPlayer_SetViewModels(pPlayer);
Send_StatusIcon__Cross(pPlayer);
}
else Send_StatusIcon__Cross(pPlayer, .status = STATUSICON_HIDE);
}

public grenade_throw(pPlayer, pEnt, w_id) {
if(w_id != CSW_SMOKEGRENADE)
return;

#if defined ACCESS_FLAGS
if(!IsUserHaveAccessToUse(pPlayer)) return;
#endif

OnGrenade_SetWorldModel(pEnt);
}

public CGrenade_ExplodeTouch(const pEnt, const pOther) {
// Filter to another grenades type
if(!IsSgGrenade(pEnt))
return;

static iOwner; iOwner = _GetEntOwner(pEnt);

#if defined ACCESS_FLAGS
if(!IsUserHaveAccessToUse(iOwner)) return;
#endif

static Float: fOrigin[3], iOrigin[3];
_GetEntOrigin(pEnt, fOrigin);
FVecIVec(fOrigin, iOrigin);

// Show visuals
Send_Explode(iOrigin);
Send_Pros(iOrigin);
Send_ShockWave(iOrigin);
OnGrenade_PlaySound(pEnt);

// Removed default smoke entity, and his detonate event accordingly
OnGrenade_RemoveByTouch(pEnt);

// Action on near players
HealPlayersOnRadius(iOwner, fOrigin);
}

stock HealPlayersOnRadius(pInflictor, Float: fOrigin[3]) {
for(new pPlayer = 1; pPlayer <= 32; pPlayer++) {
if(is_user_alive(pPlayer)) {

#if !defined ONLY_FOR_TEAMMATES
if(get_user_team(pInflictor) != get_user_team(pPlayer))
continue;
#endif
#pragma unused pInflictor

static Float: playerOrigin[3];
_GetEntOrigin(pPlayer, playerOrigin);

if(get_distance_f(fOrigin, playerOrigin) < HEAL_RADIUS)
OnPlayer_HealEvent(pPlayer);
}
}
}

stock OnPlayer_HealEvent(const pPlayer) {
set_user_health(pPlayer, min(get_user_health(pPlayer) + HEALTH_TO_HEAL, HEALTH_MAX));
__UTIL_ScreenFade(pPlayer);
}

stock OnPlayer_SetViewModels(const pPlayer) {
_SetViewModel(pPlayer, MODEL_V);
_SetWorldModel(pPlayer, MODEL_P);
}

stock OnGrenade_SetWorldModel(const pEnt)
engfunc(EngFunc_SetModel, pEnt, MODEL_W);

stock OnGrenade_RemoveByTouch(const pEnt)
engfunc(EngFunc_RemoveEntity, pEnt);

stock Send_StatusIcon__Cross(const pPlayer, status = STATUSICON_FLASH) {
message_begin(MSG_ONE_UNRELIABLE, g_MsgId_StatusIcon, .player = pPlayer);
write_byte(status);
write_string("cross");
write_byte(0);
write_byte(255);
write_byte(0);
message_end();
}

stock OnGrenade_PlaySound(const pEnt)
engfunc(EngFunc_EmitSound, pEnt, CHAN_WEAPON, SOUND_HEAL, VOL_NORM, ATTN_NORM, 0, PITCH_NORM);


stock Send_Explode(iOrigin[3]) {
emessage_begin(MSG_PVS, SVC_TEMPENTITY);
ewrite_byte(TE_EXPLOSION);
ewrite_coord(iOrigin[0]);
ewrite_coord(iOrigin[1]);
ewrite_coord(iOrigin[2] + 65);
ewrite_short(g_pFirstExplosion);
ewrite_byte(30);
ewrite_byte(20);
ewrite_byte(TE_EXPLFLAG_NOSOUND | TE_EXPLFLAG_NOPARTICLES);
emessage_end();
}

stock Send_Pros(iOrigin[3]) {
emessage_begin(MSG_PVS, SVC_TEMPENTITY);
ewrite_byte(TE_SPRITETRAIL);
ewrite_coord(iOrigin[0]);
ewrite_coord(iOrigin[1]);
ewrite_coord(iOrigin[2] + 20);
ewrite_coord(iOrigin[0]);
ewrite_coord(iOrigin[1]);
ewrite_coord(iOrigin[2] + 80);
ewrite_short(g_pPros);
ewrite_byte(20);
ewrite_byte(20);
ewrite_byte(4);
ewrite_byte(20);
ewrite_byte(10);
emessage_end();
}

stock Send_ShockWave(iOrigin[3]) {
emessage_begin(MSG_PVS, SVC_TEMPENTITY);
ewrite_byte(TE_BEAMCYLINDER);
ewrite_coord(iOrigin[0]);
ewrite_coord(iOrigin[1]);
ewrite_coord(iOrigin[2]);
ewrite_coord(iOrigin[0]);
ewrite_coord(iOrigin[1]);
ewrite_coord(iOrigin[2] + HEAL_RADIUS);
ewrite_short(g_pCircle);
ewrite_byte(0);
ewrite_byte(1);
ewrite_byte(5);
ewrite_byte(30);
ewrite_byte(1);
ewrite_byte(10);
ewrite_byte(255);
ewrite_byte(40);
ewrite_byte(255);
ewrite_byte(5);
emessage_end();
}

stock __UTIL_ScreenFade(const pPlayer, iColor[3] = {170, 255, 0}, iAlpha = 80, Float: flFxTime = 1.0, Float: flHoldTime = 0.3) {
const FFADE_IN = 0x0000;

emessage_begin(MSG_ONE_UNRELIABLE, g_MsgId_ScreenFade, .player = pPlayer);
ewrite_short(FixedUnsigned16(flFxTime));
ewrite_short(FixedUnsigned16(flHoldTime));
ewrite_short(FFADE_IN);
ewrite_byte(iColor[0]);
ewrite_byte(iColor[1]);
ewrite_byte(iColor[2]);
ewrite_byte(iAlpha);
emessage_end();
}

stock FixedUnsigned16(Float:flValue, iScale = (1 << 12)) {
return clamp(floatround(flValue * iScale), 0, 0xFFFF);
}

stock IsUserHaveAccessToUse(const pPlayer) {
// Anytime we can add other checks, like cached bool
return (get_user_flags(pPlayer) & ACCESS_FLAGS);
}

stock IsAllowedToUse() {
return true;
}
Здарова мужики! Подскажите как добавить отдельный слот под лечебную гранату?
 

Vaqtincha

aggressive
Разработчик
Скриптер
Регистрация
28 Янв 2018
Сообщения
963
Симпатии
685
Пол
Мужской
Иди в раздел заказов.
 

Panzer

Пользователь
Регистрация
11 Июн 2017
Сообщения
259
Симпатии
-9
Пол
Мужской
@present,Ты еще 1.8.1 поставь или еще старее. У меня все компилируется
 

present

Пользователь
Регистрация
27 Сен 2017
Сообщения
87
Симпатии
-73
Panzer, причем тут я? первый пост смотри, мне вообще плевать что у тебя компилируется что нет, автор написал свои требования, а ты не внимателен.
 

tezz

Пользователь
Регистрация
22 Дек 2020
Сообщения
1
Симпатии
0
было бы круто если кто то бы сделал под 182.183 версию
 

danisimus

Пользователь
Регистрация
24 Мар 2018
Сообщения
10
Симпатии
0
А можно ли 4 слот запилить под телепорт-гранату?
 
Сверху Снизу