Raised This Month: $ Target: $400
 0% 

HeadShot Sounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
reinert
Veteran Member
Join Date: Feb 2007
Old 05-09-2010 , 10:51   Re: HeadShot Sounds
Reply With Quote #2

Sorry, i forgot what read_data(?) is victim but killer is 1...
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN    "HS Sounds by Mroz!k"
#define AUTHOR    "Mroz!k"
#define VERSION    "1.0"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_event("DeathMsg","hs","a","3=1")
}

public 
hs(id)
{

    new 
killer read_data(1)

    new 
rand random_num(05)
    switch(
rand) {
        case 
0: {
            
client_cmd(killer"stopsound")
            
client_cmd(killer"spk cyr4x/bezdech")
        }
        case 
1: {
            
client_cmd(killer"stopsound")
            
client_cmd(killer"spk cyr4x/cyr4x_001")
        }
        case 
2: {
            
client_cmd(killer"stopsound")
            
client_cmd(killer"spk cyr4x/cyr4x_006")
        }
        case 
3: {
            
client_cmd(killer"stopsound")
            
client_cmd(killer"spk cyr4x/mk")
        }
        case 
4: {
            
client_cmd(killer"stopsound")
            
client_cmd(killer"spk cyr4x/zobacz")
        }

    }
}

public 
plugin_precache()
{
    
precache_sound("cyr4x/bezdech.wav")
    
precache_sound("cyr4x/cyr4x_001.wav")
    
precache_sound("cyr4x/cyr4x_006.wav")
    
precache_sound("cyr4x/mk.wav")
    
precache_sound("cyr4x/zobacz.wav")

now it will only play for killer
reinert is offline
 



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