yes that is the same code, i didnt get your question very well, i though you wanted to remove the chat messages.
Could you make a list of everything you want. so i could do my best to help you out?
i read your question again and if i'm right you want:
1: no chat messages
2: no given weapons to the victim
so here is the code without given weapons and chat messages:
PHP Code:
/*
I'm hurt! HE make me can't listen for while!
Extra stuff for Grenade Enhancer by anakin_cstrike
This plugins will play sound when HE throw and player get
damage from HE. Hurt Sound will be played.
More real style HE damage like Half-Life 2 and Call of Duty 4
Download: http://forums.alliedmods.net/showthread.php?p=651536
© Copyright 2008 ANiME clan.
Visit: http://ilham92-cc-sakura.webs/
Under License GNU
English help by: [ANiME|ADMiN][5hp-Evolution]
Created by: [ANiME|ADMiN][Ilham Sakura] aka ilham92-cc-sakura
Scripting Help: SnoW (Damage Event)
Scripting Help: Tuty (Stock)
*/
#include <amxmodx>
#include <fakemeta>
#include <csx>
#define SND1 "player/player_listen.wav"
#define SND2 "player/breathe1noloop.wav"
#define fm_create_entity(%1) engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, %1))
new amx_pcvar_0;
public plugin_init()
{
register_plugin("HE Player Damage Snd", "1.0","ilham92-cc-sakura");
amx_pcvar_0 = register_cvar("he_hit_respawn","1");
}
public plugin_precache()
{
precache_sound(SND1);
precache_sound(SND2);
}
public client_damage(attacker,victim,damage,wpnindex,hitplace,TA)
{
if(get_pcvar_num(amx_pcvar_0) != 0 && wpnindex != CSW_HEGRENADE)
return PLUGIN_HANDLED;
new sound1[129];
copy(sound1,128,SND1);
if(contain(sound1,".wav"))
{
replace(sound1,128,".wav","");
client_cmd(victim, "spk %s",sound1);
}
new sound2[131];
copy(sound2,130,SND2);
if(contain(sound2,".wav"))
{
replace(sound1,130,".wav","");
client_cmd(victim, "spk %s",sound2);
}
new pl_name[32];
get_user_name(victim,pl_name, 31);
if(!is_user_alive(victim))
{
set_task(0.6,"respawnagain",victim);
}
return PLUGIN_CONTINUE;
}
public respawnagain(victim)
{
fm_cs_user_spawn(victim);
}
stock fm_cs_user_spawn(index)
{
set_pev(index, pev_deadflag, DEAD_RESPAWNABLE);
dllfunc(DLLFunc_Spawn, index);
set_pev(index, pev_iuser1, 0);
return 1;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
__________________