Suicide sound поправить

artiom555

Пользователь
Регистрация
2 Мар 2018
Сообщения
150
Симпатии
2
Пол
Мужской
#1
Учитесь пользоваться спойлером
OS
Linux
Amx Mod X
AMXX 1.8.3-dev
Билд
ReHLDS version: 3.4.0.668-dev
ReGamedll
ReGameDLL version: 5.7.0.318-dev
Metamod
Metamod-r v1.3.0.128
Мета модули
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 2] WHBlocker RUN - whblocker_mm_i386.so v1.5.695 ini Chlvl ANY
[ 3] SoftBlocker RUN - softblocker_mm_i386.so v1.1g ini ANY Never
[ 4] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 5] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 6] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[ 7] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC3 ini ANY ANY
[ 8] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5221 ini Start ANY
[ 9] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl8 ANY Never
[10] ReAPI RUN - reapi_amxx_i386.so v5.6.0.160-dev pl8 ANY Never
[11] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5221 pl8 ANY ANY
[12] CSX RUN - csx_amxx_i386.so v1.9.0.5221 pl8 ANY ANY
[13] Fun RUN - fun_amxx_i386.so v1.9.0.5221 pl8 ANY ANY
[14] Engine RUN - engine_amxx_i386.so v1.9.0.5221 pl8 ANY ANY
[15] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5221 pl8 ANY ANY
[16] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5221 pl8 ANY ANY
[17] MySQL RUN - mysql_amxx_i386.so v1.9.0.5221 pl8 ANY ANY
17 plugins, 17 running
Плагины
C++:
map_manager_core.amxx
map_manager_scheduler.amxx
map_manager_rtv.amxx
map_manager_nomination.amxx
map_manager_blocklist.amxx
map_manager_online_sorter.amxx
map_manager_effects.amxx
map_manager_informer.amxx
map_manager_adv_lists.amxx
re_vip_core.amxx    ; Vip Core
re_vip_menu.amxx            ; Weapons menu & Bonus Spawn
re_vip_connect_info.amxx    ; Vips connect info chat;re_vip_reset_score.amxx    ; Reset Score for vip
re_vip_tab_info.amxx        ; Score Tab Info VIP
re_vip_hp_add.amxx            ; Add Hp (Vampire)
[ 18] AES: StatsX             0.5 Vega    serfreeman1337    aes_statsx_cstr  running
[ 19] StatsX                  1.9.0.5221  AMXX Dev Team     statsx.amxx      running
[ 20] Announcer Killstreak    2.0         Jumper & mx?!     killsound.amxx   running
[ 21] [ReAPI] Admin Models    0.0.2       Vaqtincha         reapi_adminvipm  debug
[ 22] Smoke: HealthNade       0.0.3       wopox1337         smkhlndvip.amxx  debug
[ 23]  [ReAPI]No Team Flash   1.0         ReHLDS Team       notmflashvip.am  debug
[ 24] molodejj_damager        1.1         sector            damagervipz.amx  debug
[ 25] PrizeAwp                0.1         Demonx            prizeawp.amxx    debug
[ 26] [ReAPI] AimEspFix VIP   1.0         ?                 fix_vip_tab.amx  debug
[ 27] Prize Knife             0.1         Safety1st         knifeflags.amxx  debug
[ 28] [ReAPI] AdminFreeLook   1.0         ReHLDS Team       adminfreelook.a  debug
[ 29] Show Motd               0.1         unnamed           motdpriv.amxx    debug
[ 30] Show IP                 1.0         $uicid3           amx_ip.amxx      debug
[ 31] antikill                1.0         Portugal          antikill.amxx    debug
[ 32] Masofke.eu Signed Scre  1.0         ThE_ChOSeN_OnE    msfk_snapshot.a  debug
[ 33] Advanced Gag            1.9.0       neygomon          amx_gag.amxx     debug
[ 34] AFK Control             1.4.1 [Rnd  neygomon          afk_control.amx  debug
[ 35] Random Skies            1.1         tuty              randomskies.amx  debug
[ 36] ReAimDetector API       0.2.2       ReHLDS Team       reaimdetector.a  debug
[ 37] Knife warmup            0.1         Subb98            knife_warmup.am  debug
[ 38] Auto Demo Recorder      2.2.1       F@nt0M            demo_recorder.a  debug
[ 39] Radio Hudmsg Block      1.0         AcE               radiohudmsgbloc  debug
[ 40] Adverts                 1.0         pUzzlik           adverts_message  debug
[ 41] Dead Messages           2.0         maFFyoZZyk        dead.amxx        debug
[ 42] Aim Hud Info            1.0         Yakess            aimhudinfo_smas  debug
[ 43] Music Connect           1.1         Leo_[BH]          music_connect.a  debug
[ 44] Real Damage [ReApi]     2.0         Leo_[BH]          real_damage.amx  debug
[ 45] unknown                 unknown     unknown           ShowChangerName  debug
[ 46] Bestplayer              0.2         Huntai            bestplayer.amxx  debug
[ 47] [ReAPI] AWPoff          1.4.3       PAffAEJIkA :3     awp_off.amxx     debug
[ 48] Rat Bomb                1.0         Seroff            mfsc4mdl.amxx    debug
[ 49] C4 Timer                0.1         Lightman          bombtimer.amxx   debug
[ 50] resetscore(ReAPI)       1.0         Phantom           resetscore.amxx  debug
[ 51] Killer ScreenFade       0.0.5       Vaqtincha         reapi_killer_sc  debug
[ 52] unknown                 unknown     unknown           mg_sound.amxx    debug
[ 53] AFK Bomb Transfer       0.4         VEN               afkbombtransfer  debug
[ 54] Team menu               1.1         NobodyInTeam      teammenu.amxx    debug
[ 55] Icon Color              1.0         AcE               icon_color.amxx  debug
[ 56] Pop Grenades            1.2         EFFx/HamletEagle  GrenadePop.amxx  debug
[ 57] GameName Changer        1.0         neugomon          gamename_change  debug
[ 58] MSFK VTB                1.4         neygomon          lite_voteban.am  debug
[ 59] Map Manager: Core       3.0.0       Mistrick          map_manager_cor  running
[ 60] Map Manager: Scheduler  0.1.0       Mistrick          map_manager_sch  running
[ 61] Map Manager: Rtv        0.0.4       Mistrick          map_manager_rtv  running
[ 62] Map Manager: Nominatio  0.0.8       Mistrick          map_manager_nom  running
[ 63] Map Manager: BlockList  0.0.3       Mistrick          map_manager_blo  running
[ 64] Map Manager: Online so  0.0.2       Mistrick          map_manager_onl  running
[ 65] Map Manager: Effects    0.0.8       Mistrick          map_manager_eff  running
[ 66] Map Manager: Informer   0.0.5       Mistrick          map_manager_inf  running
[ 67] Map Manager: Advanced   0.0.4       Mistrick          map_manager_adv  running
[ 68] [ReVIP] System Core     2.5 free    pUzzlik           re_vip_core.amx  running
[ 69] [ReVIP] Menu            2.5 free    pUzzlik           re_vip_menu.amx  running
[ 70] [ReVIP] Connected Info  2.5 free    pUzzlik           re_vip_connect_  running
[ 71] [ReVIP] Tab Info        2.5 free    pUzzlik           re_vip_tab_info  running
[ 72] [ReVIP] Add HP          2.5 free    pUzzlik           re_vip_hp_add.a  running
[ 73] Advanced Experience Sy  0.5 Vega    serfreeman1337    aes_main.amxx    running
[ 74] AES: CStrike Addon      0.5 Vega    serfreeman1337    aes_exp_cstrike  running[/SPOILER]
Модули
C++:
[ 1] ReAimDetector           0.2.2       ReHLDS Team          running
[ 2] ReAPI                   5.6.0.160-  Asmodai & s1lent     running
[ 3] CStrike                 1.9.0.5221  AMX Mod X Dev Team   running
[ 4] CSX                     1.9.0.5221  AMX Mod X Dev Team   running
[ 5] Fun                     1.9.0.5221  AMX Mod X Dev Team   running
[ 6] Engine                  1.9.0.5221  AMX Mod X Dev Team   running
[ 7] FakeMeta                1.9.0.5221  AMX Mod X Dev Team   running
[ 8] nVault                  1.9.0.5221  AMX Mod X Dev Team   running
[ 9] Ham Sandwich            1.9.0.5221  AMX Mod X Dev Team   running
[10] MySQL                   1.9.0.5221  AMX Mod X Dev Team   running
10 modules, 10 correct
Ошибка
Ошибок при компилировании нету .
Исходник
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "Dead Messages"
#define VERSION "2.0"
#define AUTHOR "maFFyoZZyk"

#define MinRound 3 // С какого раунда работать

#define m_bitsDamageType 76

#define DMG_GRENADE (1<<24)

new iRoundNum;

new const g_szSounds[][] =
{
"ghzwtf/msfkzsuic",
"ghzwtf/msfkknfz",
"ghzwtf/msfkgrndz"
};

public plugin_precache()
{
new sPathSound[128];

for(new i = 0; i < sizeof(g_szSounds); i++)
{
format(sPathSound, charsmax(sPathSound), "%s.wav", g_szSounds);
precache_sound(sPathSound);
}
}


public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);

register_event("TextMsg", "Event_RoundRestart", "a", "2&#Game_C", "2&#Game_w");
register_event("HLTV", "Event_RoundStart", "a", "1=0", "2=0");

RegisterHam(Ham_Killed, "player", "fw_KilledPlayerPost", true);

new sMapName[32], sMapPrefix[][] = {"1hp", "35hp", "he_"};
get_mapname(sMapName, charsmax(sMapName));

for(new i; i < sizeof sMapPrefix; i++)
{
if(containi(sMapName, sMapPrefix) != -1)
pause("ad");
}
}


public Event_RoundRestart() iRoundNum = 0;
public Event_RoundStart() iRoundNum++;


public fw_KilledPlayerPost(iVictim, iAttacker, iCorpse)
{
if(!is_user_connected(iVictim) || !is_user_connected(iAttacker))
return;

if (iRoundNum < MinRound)
return;

new iRed = random_num(0, 255);
new iGreen = random_num(0, 255);
new iBlue = random_num(0, 255);

if(iVictim == iAttacker)
{
set_hudmessage(iRed, iGreen, iBlue, -1.0, 0.85, 0, 0.1, 5.0, 0.1, 0.1, -1);
//show_hudmessage(0, "Dar vienas kamikadzė atkeliavo -_-");


client_cmd(0,"spk %s", g_szSounds[0]);

return;
}

if(get_user_weapon(iAttacker) == CSW_KNIFE && pev(iVictim, pev_dmg_inflictor) == iAttacker)
{
set_hudmessage(iRed, iGreen, iBlue, -1.0, 0.85, 0, 0.1, 5.0, 0.1, 0.1, -1);
//show_hudmessage(0, "Whosyourdaddy Baby ? ^^");


client_cmd(0,"spk %s", g_szSounds[1]);

return;
}

if(get_ent_data(iVictim, "CBasePlayer", "m_bKilledByGrenade") == true)
{
set_hudmessage(iRed, iGreen, iBlue, -1.0, 0.85, 0, 0.1, 5.0, 0.1, 0.1, -1);
//show_hudmessage(0, "Are you okay TAM? :]");


client_cmd(0,"spk %s", g_szSounds[2]);
}
}
Привет ребят подскажите какую тут проверку нужно добавить чтобы когда игрок умирал от взрыва c4 или допустим его убил админ команндой "slay" или когда игрок переходил в спектры , чтобы звук суицыда не проигрывался так как я бы хотел чтобы звук суицыда работал только тогда когда игрок упадёт с высоты и разобьётся:).?​