http://wiki.amxmodx.org/Half-Life_1_...vents#DeathMsg
read_data( 1 ) is Killer and read_data( 2 ) is Victim
but if you want try this,
PHP Code:
#include < amxmodx >
new const g_szSounds[ ][ ] = {
"cyr4x/bezdech.wav",
"cyr4x/cyr4x_001.wav",
"cyr4x/cyr4x_006.wav",
"cyr4x/mk.wav",
"cyr4x/zobacz.wav"
}
public plugin_init()
register_event( "DeathMsg", "EventDeathMsg", "a", "3=1" );
public plugin_precache( )
for( new i = 0; i < sizeof g_szSounds; i++ )
precache_sound( g_szSounds[ i ] );
public EventDeathMsg( ) {
new iKiller = read_data( 1 ), iVictim = read_data( 2 );
client_cmd( iKiller, "stopsound" ); client_cmd( iVictim, "stopsound" );
client_cmd( iKiller, "spk %s", g_szSounds[ random( sizeof g_szSounds ) ] );
client_cmd( iVictim, "spk %s", g_szSounds[ random( sizeof g_szSounds ) ] );
}
__________________