Raised This Month: $ Target: $400
 0% 

Headshot Sound !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 05-11-2013 , 08:28   Re: Headshot Sound !
Reply With Quote #1

PHP Code:
#include <amxmodx>

#define VERSION "1.0" 

new const g_szSound[][] = {
    
"headshot/headshot1",
    
"headshot/headshot2",
    
"headshot/headshot3"
}

public 
plugin_precache() {
    for(new 
0sizeof(g_szSound); i++) {
        
precache_sound(g_szSound[i]);
    }
}


public 
plugin_init() { 
    
register_plugin("Headshot Sound"VERSION"NapoleoN#"); 
    
    
register_event("DeathMsg""eDeath""a""1>0""2>0""3=1");



public 
eDeath() {
    
client_cmd0"spk ^"%s^""g_szSoundrandom_num0sizeof g_szSound ) ] );

Old plugin from me... Got some help from xPaw with this so we were discussing what's the best way to make a headshot sound plugin, and it looks like this way is the best way
__________________

Last edited by Napoleon_be; 05-11-2013 at 08:29.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 05-11-2013 , 08:32   Re: Headshot Sound !
Reply With Quote #2

Quote:
Originally Posted by Napoleon_be View Post
Old plugin from me... Got some help from xPaw with this so we were discussing what's the best way to make a headshot sound plugin, and it looks like this way is the best way
By reading what he has posted it's clear that he only wants the sound played to the killer and victim.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet 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 16:22.


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