•  
     

Death Sounds - O boneco grita quando morre na faca ou HE - AMXX

HS tem sangue extra
Granada explode o cara
Facadas mostra um boneco (humilhação) para todos

Código: Selecionar todos

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <hlsdk_const> 
#define TEMP_MSG	16
#define TEMP_MSG2	1936
#define DMG_GRENADE (1<<24)
new msg;
public plugin_init(){
register_plugin("Death Sounds","1.0","Anderson");
register_event("DeathMsg","hook_death","a");
RegisterHam(Ham_TakeDamage,"player","CBasePlayer_TakeDamage",false) 
set_msg_block(get_user_msgid("ClCorpse"),BLOCK_SET);
msg=CreateHudSyncObj();
}
new const knifeounds[11][]={
"guruqa/nemesis1.wav",
"guruqa/human_pain1.wav",
"guruqa/scream1.wav",
"guruqa/scream2.wav",
"guruqa/scream3.wav",
"guruqa/scream4.wav",
"guruqa/nade.wav",
"guruqa/suicide2.wav",
"guruqa/suicide4.wav",
"guruqa/mkjhdeath.wav",
"guruqa/survivor2.wav"
};
public plugin_precache(){
for(new i=0;i<11;i++){
precache_sound(knifeounds[i]);
}
}
public hook_death(){
new wpn[3],vOrigin[3],coord[3],name[32],name_v[32];
new id = read_data(1);
new victim = read_data(2);
get_user_name(id,name,31);
get_user_name(victim,name_v,31);
read_data(4,wpn,2);
get_user_origin(victim,vOrigin);
vOrigin[2] -= 26
coord[0] = vOrigin[0] + 150;
coord[1] = vOrigin[1] + 150;
coord[2] = vOrigin[2] + 800;
if(read_data(3)){
message_begin(MSG_PVS,SVC_TEMPENTITY,vOrigin);
write_byte(TE_BLOODSTREAM);
write_coord(vOrigin[0]);
write_coord(vOrigin[1]);
write_coord(vOrigin[2] + 30);
write_coord(random_num(-20,20));
write_coord(random_num(-20,20));
write_coord(random_num(50,300));
write_byte(70);
write_byte(random_num(100,200));
message_end();
message_begin(MSG_PVS,SVC_TEMPENTITY,vOrigin);
write_byte(TE_BLOODSTREAM);
write_coord(vOrigin[0]);
write_coord(vOrigin[1]);
write_coord(vOrigin[2] + 10);
write_coord(random_num(-360,360));
write_coord(random_num(-360,360));
write_coord(-10);
write_byte(70);
write_byte(random_num(50,100));
message_end();
}
if(wpn[0] == 'k'){
set_hudmessage(255,0,0,-1.0,-0.52,1,6.0,5.0);
show_hudmessage(0,"(0)^n--0--[0]--0--^n[0]^n0 0^n_/  \_");
set_hudmessage(255,0,0,-1.0,-0.50,1,6.0,5.0);
ShowSyncHudMsg(0,msg,"%s humilhou %s!",name,name_v);
client_cmd(0,"spk %s",knifeounds[random_num(0,sizeof knifeounds - 1)]);
}
if(wpn[1] == 'r'){
client_cmd(0,"spk guruqa/mkjhdeath.wav");
message_begin(MSG_PVS, SVC_TEMPENTITY,vOrigin);
write_byte(TE_LAVASPLASH);
write_coord(vOrigin[0]);
write_coord(vOrigin[1]);
write_coord(vOrigin[2] - 26);
message_end()
}
return PLUGIN_CONTINUE;
}
public CBasePlayer_TakeDamage(id,iInflictor,iAttacker,Float:flDamage,bitsDamageType){ 
if(bitsDamageType & DMG_GRENADE){ 
SetHamParamInteger(5,DMG_GRENADE | DMG_ALWAYSGIB)
} 
}


sound.rar
 
Use esse plugin se você não quiser sangue no HS:

Código: Selecionar todos


#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <hlsdk_const> 
#define TEMP_MSG	16
#define TEMP_MSG2	1936
#define DMG_GRENADE (1<<24)
new msg;
public plugin_init(){
register_plugin("Death Sounds","1.0","Anderson");
register_event("DeathMsg","hook_death","a");
RegisterHam(Ham_TakeDamage,"player","CBasePlayer_TakeDamage",false) 
set_msg_block(get_user_msgid("ClCorpse"),BLOCK_SET);
msg=CreateHudSyncObj();
}
new const knifeounds[11][]={
"guruqa/nemesis1.wav",
"guruqa/human_pain1.wav",
"guruqa/scream1.wav",
"guruqa/scream2.wav",
"guruqa/scream3.wav",
"guruqa/scream4.wav",
"guruqa/nade.wav",
"guruqa/suicide2.wav",
"guruqa/suicide4.wav",
"guruqa/mkjhdeath.wav",
"guruqa/survivor2.wav"
};
public plugin_precache(){
for(new i=0;i<11;i++){
precache_sound(knifeounds[i]);
}
}
public hook_death(){
new wpn[3],vOrigin[3],coord[3],name[32],name_v[32];
new id = read_data(1);
new victim = read_data(2);
get_user_name(id,name,31);
get_user_name(victim,name_v,31);
read_data(4,wpn,2);
get_user_origin(victim,vOrigin);
vOrigin[2] -= 26
coord[0] = vOrigin[0] + 150;
coord[1] = vOrigin[1] + 150;
coord[2] = vOrigin[2] + 800;
if(wpn[0] == 'k'){
set_hudmessage(255,0,0,-1.0,-0.52,1,6.0,5.0);
show_hudmessage(0,"(0)^n--0--[0]--0--^n[0]^n0 0^n_/  \_");
set_hudmessage(255,0,0,-1.0,-0.50,1,6.0,5.0);
ShowSyncHudMsg(0,msg,"%s humilhou %s!",name,name_v);
client_cmd(0,"spk %s",knifeounds[random_num(0,sizeof knifeounds - 1)]);
}
if(wpn[1] == 'r'){
client_cmd(0,"spk guruqa/mkjhdeath.wav");
message_begin(MSG_PVS, SVC_TEMPENTITY,vOrigin);
write_byte(TE_LAVASPLASH);
write_coord(vOrigin[0]);
write_coord(vOrigin[1]);
write_coord(vOrigin[2] - 26);
message_end()
}
return PLUGIN_CONTINUE;
}
public CBasePlayer_TakeDamage(id,iInflictor,iAttacker,Float:flDamage,bitsDamageType){ 
if(bitsDamageType & DMG_GRENADE){ 
SetHamParamInteger(5,DMG_GRENADE | DMG_ALWAYSGIB)
} 
}  
 
Teria como mostra umas print anderson?
 
[N]oviinhoo[O] Escreveu:Teria como mostra umas print anderson?



Ele faz o boneco gritar quando morre na faca ou HE
 
Anderson Escreveu:
[N]oviinhoo[O] Escreveu:Teria como mostra umas print anderson?



Ele faz o boneco gritar quando morre na faca ou HE


Os sons está dando erro quando tento baixar...

Teria como upar novamente?