Thought you only wanted to remove round end sounds, try this, all sounds removed now:
PHP Code:
#include < amxmodx >
#include < amxmisc >
enum _:ustats
{
kills, heads
}
new UserData [ 33 ][ ustats ], objHud
public plugin_init ( )
{
register_plugin ( "Effects plug-in", "1.0", "OverGame" )
register_event ( "DeathMsg", "EventKilling", "a", "1>0" )
register_logevent ( "logevent_round_start", 2, "1=Round_Start" )
register_cvar ( "effects_screen", "1" )
register_cvar ( "effects_killing_count", "1" )
objHud = CreateHudSyncObj ( )
plugin_cfg ()
if ( get_cvar_num ( "effects_killing_count" ) )
set_task ( 1.0, "killing_count", _, _, _, "b" )
}
public plugin_cfg ( )
{
new szCfgDir [ 64 ], szFile [ 192 ]
get_configsdir ( szCfgDir, charsmax ( szCfgDir ) )
formatex ( szFile, charsmax ( szFile ), "%s/Effects/effects.cfg", szCfgDir )
if ( file_exists ( szFile ) )
server_cmd ( "exec %s", szFile )
}
public client_putinserver ( id )
{
UserData [ id ][ kills ] = 0
UserData [ id ][ heads ] = 0
}
public logevent_round_start ( )
{
for ( new id; id <= get_maxplayers ( ); id++ )
{
UserData [ id ][ kills ] = 0
UserData [ id ][ heads ] = 0
}
}
public EventKilling ( )
{
new iKiller = read_data ( 1 )
new iVictim = read_data ( 2 )
new iHead = read_data ( 3 )
if ( get_cvar_num ( "effects_killing_count" ) )
{
if ( iHead )
{
UserData [ iKiller ][ kills ]++
UserData [ iKiller ][ heads ]++
} else {
UserData [ iKiller ][ kills ]++
}
}
if ( get_cvar_num ( "effects_screen" ) )
show_screen ( iVictim, 255, 0, 0 )
if ( get_cvar_num ( "effects_screen" ) )
show_screen ( iKiller, 0, 255, 0 )
return PLUGIN_HANDLED
}
public killing_count ( )
{
for ( new id = 0; id <= get_maxplayers ( ); id++ )
{
if ( !is_user_bot ( id ) && is_user_connected ( id ) && UserData [ id ][ kills ] > 0 || UserData [ id ][ heads ] > 0 )
{
new buffer [ 128 ], len
set_hudmessage ( 100, 100, 100, 0.06, 0.7, 0, 4.0, 1.0, _, _, -1 )
len = format ( buffer, charsmax ( buffer ), "Kills: %d^n", UserData [ id ][ kills ] )
len += format ( buffer [ len ], charsmax ( buffer ) - len, "Headshots: %d", UserData [ id ][ heads ] )
ShowSyncHudMsg ( id, objHud, buffer )
}
}
return PLUGIN_CONTINUE
}
stock show_screen ( const id, const r, const g, const b )
{
message_begin ( MSG_ONE, get_user_msgid ( "ScreenFade" ) , { 0, 0, 0 }, id )
write_short ( 1<<10 )
write_short ( 1<<10 )
write_short ( 0x0000 )
write_byte ( r )
write_byte ( g )
write_byte ( b )
write_byte ( 100 )
message_end ()
}