Обратите внимание, если вы хотите заключить сделку с этим пользователем, он заблокирован
- Ошибка
-
Ошибки нету компилиться без ошибок.
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5221
- Билд
-
ReHLDS version: 3.4.0.664-dev
- ReGamedll
-
ReGameDLL version: 5.7.0.313-dev
- Версия Metamod
-
Metamod-r v1.3.0.128, API
- Список метамодулей
-
[ 1] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5221 ini Start ANY
[ 2] Reunion RUN - reunion_mm_i386.so v0.1.0.92 ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 4] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 5] Revoice RUN - revoice_mm_i386.so v0.1.0.32 ini Start Never
[ 6] MySQL RUN - mysql_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[ 7] ReAPI RUN - reapi_amxx_i386.so v5.6.0.158-dev pl1 ANY Never
[ 8] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl1 ANY Never
[ 9] Fun RUN - fun_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[10] Engine RUN - engine_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[11] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[13] CSX RUN - csx_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
[14] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5221 pl1 ANY ANY
- Список плагинов
-
atus
[ 1] AMXBans Core 6.13 YamiKaitou amxbans_core.am ru nning
[ 2] AMXBans Main 6.13 YamiKaitou amxbans_main.am de bug
[ 3] Admin Commands 1.9.0.5221 AMXX Dev Team admincmd.amxx ru nning
[ 4] Admin Help 1.9.0.5221 AMXX Dev Team adminhelp.amxx ru nning
[ 5] Slots Reservation 1.2 pUzzlik admin_slots.amx ru nning
[ 6] Menus Front-End 1.9.0.5221 AMXX Dev Team menufront.amxx ru nning
[ 7] Commands Menu 1.9.0.5221 AMXX Dev Team cmdmenu.amxx ru nning
[ 8] Players Menu 1.9.0.5221 AMXX Dev Team plmenu.amxx ru nning
[ 9] Maps Menu 1.9.0.5221 AMXX Dev Team mapsmenu.amxx ru nning
[ 10] Plugin Menu 1.9.0.5221 AMXX Dev Team pluginmenu.amxx ru nning
[ 11] Admin Chat 1.9.0.5221 AMXX Dev Team adminchat.amxx ru nning
[ 12] Lite Translit 2.8 neygomon lite_translit_c de bug
[ 13] Anti Flood 1.9.0.5221 AMXX Dev Team antiflood.amxx ru nning
[ 14] Admin Votes 1.9.0.5221 AMXX Dev Team adminvote.amxx ru nning
[ 15] Pause Plugins 1.9.0.5221 AMXX Dev Team pausecfg.amxx ru nning
[ 16] Stats Configuration 1.9.0.5221 AMXX Dev Team statscfg.amxx ru nning
[ 17] Restrict Weapons 1.9.0.5221 AMXX Dev Team restmenu.amxx ru nning
[ 18] CSStatsX SQL 0.7.4 serfreeman1337 csstatsx_sql.am ru nning
[ 19] AES: StatsX 0.5 Vega serfreeman1337 aes_statsx_cstr ru nning
[ 20] StatsX 1.9.0.5221 AMXX Dev Team statsx.amxx ru nning
[ 21] Top Awards 1.0 neygomon top_awards.amxx ru nning
[ 22] [ReAPI] Admin Models 0.0.2 Vaqtincha reapi_adminvipm ru nning
[ 23] Smoke: HealthNade 0.0.3 wopox1337 smkhlndvip.amxx ru nning
[ 24] [ReAPI]No Team Flash 1.0 ReHLDS Team notmflashvip.am ru nning
[ 25] molodejj_damager 1.1 sector damagervip.amxx ru nning
[ 26] [ReAPI] AimEspFix VIP 1.0 ? fix_vip_tab.amx ru nning
[ 27] Masofke.eu Signed Scre 1.0 ThE_ChOSeN_OnE msfk_snapshot.a ru nning
[ 28] Show Motd 0.1 unnamed motdpriv.amxx ru nning
[ 29] Map Manager 2.5.61 Mistrick mapmanager.amxx ru nning
[ 30] Map Manager: Sub Plugi 0.1 Mistrick mapmanager_subp ru nning
[ 31] AFK Control 1.4.1 [Rnd neygomon afk_control.amx ru nning
[ 32] ReAimDetector API 0.2.2 ReHLDS Team reaimdetector.a ru nning
[ 33] Knife warmup 0.1 Subb98 knife_warmup.am de bug
[ 34] Auto Demo Recorder 2.2.1 F@nt0M demo_recorder.a ru nning
[ 35] Radio Hudmsg Block 1.0 AcE radiohudmsgbloc ru nning
[ 36] Adverts 1.0 pUzzlik adverts_message ru nning
[ 37] Dead Messages 2.0 maFFyoZZyk dead.amxx de bug
[ 38] Real Damage [ReApi] 2.0 Leo_[BH] real_damage.amx ru nning
[ 39] unknown unknown unknown ShowChangerName ru nning
[ 40] [ReAPI] AWPoff 1.4.3 PAffAEJIkA :3 awp_off.amxx st opped
[ 41] [ReAPI] AdminFreeLook 1.0 ReHLDS Team adminfreelook.a ru nning
[ 42] Rat Bomb 1.0 Seroff mfsc4mdl.amxx ru nning
[ 43] C4 Timer 0.1 Lightman bombtimer.amxx st opped
[ 44] resetscore(ReAPI) 1.0 Phantom resetscore.amxx ru nning
[ 45] Killer ScreenFade 0.0.5 Vaqtincha reapi_killer_sc ru nning
[ 46] unknown unknown unknown mg_sound.amxx ru nning
[ 47] AFK Bomb Transfer 0.4 VEN afkbombtransfer ru nning
[ 48] Best Player 0.2b Subb98 best_player.amx ru nning
[ 49] [ReVIP] System Core 2.5 free pUzzlik re_vip_core.amx ru nning
[ 50] [ReVIP] Menu 2.5 free pUzzlik re_vip_menu.amx ru nning
[ 51] [ReVIP] Connected Info 2.5 free pUzzlik re_vip_connect_ ru nning
[ 52] [ReVIP] Tab Info 2.5 free pUzzlik re_vip_tab_info ru nning
[ 53] [ReVIP] Add HP 2.5 free pUzzlik re_vip_hp_add.a st opped
[ 54] Advanced Experience Sy 0.5 Vega serfreeman1337 aes_main.amxx ru nning
[ 55] AES: CStrike Addon 0.5 Vega serfreeman1337 aes_exp_cstrike ru nning
- Автор плагина
- maFFyoZZyk
- Версия плагина
- 2.0
- Исходный код
-
#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[i]);
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", "aim", "awp", "he_"};
get_mapname(sMapName, charsmax(sMapName));
for(new i; i < sizeof sMapPrefix; i++)
{
if(containi(sMapName, sMapPrefix[i]) != -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_pdata_int(iVictim, m_bitsDamageType) & DMG_GRENADE)
{
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]);
}
}
Сама проблема: При отнимание ХП игроку с гранаты а патом добивании с оружия воспроизводиться звук ( Звук должен воспроизводиться только при убийстве с гранаты то есть надо убить с гранаты игрока чтобы прозвучал звук.
В этой теме было размещено решение! Перейти к решению.