Raised This Month: $ Target: $400
 0% 

HeadShot Sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mifuntm
Senior Member
Join Date: Feb 2008
Location: in space...
Old 05-09-2010 , 11:55   Re: HeadShot Sounds
Reply With Quote #1

Quote:
Originally Posted by master4life View Post
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 
0sizeof g_szSoundsi++ )    
        
precache_soundg_szSounds] );

public 
EventDeathMsg( ) {
    new 
iKiller read_data), iVictim read_data);

    
client_cmdiKiller"stopsound" ); client_cmdiVictim"stopsound" );
    
client_cmdiKiller"spk %s"g_szSoundrandomsizeof g_szSound ) ] );
    
client_cmdiVictim"spk %s"g_szSoundrandomsizeof g_szSound ) ] );




Code:
Your plugin failed to compile! Read the errors below:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team

/groups/amxmodx/tmp3/textuDThRy.sma(22) : error 017: undefined symbol "g_szSound"
/groups/amxmodx/tmp3/textuDThRy.sma(22) : error 072: "sizeof" operator is invalid on "function" symbols
/groups/amxmodx/tmp3/textuDThRy.sma(22) : error 029: invalid expression, assumed zero
/groups/amxmodx/tmp3/textuDThRy.sma(22) : fatal error 107: too many error messages on one line

Compilation aborted.
4 Errors.
__________________
Only God can judge me...
Mifuntm is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode