Raised This Month: $ Target: $400
 0% 

PainSounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BFK_GoNER
Junior Member
Join Date: Feb 2009
Location: Holland
Old 05-31-2009 , 10:19   Re: PainSounds
Reply With Quote #7

If you want the sound to be heard by one player, use "spk":

PHP Code:
// precache the sound first
public plugin_precache()
{
    
precache_sound ("player/pl_pain2.wav")

    return 
PLUGIN_CONTINUE
}

// and then play it:
public hurt_me(id)
{
           
client_cmd(id"spk ^"player/pl_pain2.wav^"")
           return 
PLUGIN_CONTINUE


Last edited by BFK_GoNER; 05-31-2009 at 10:22.
BFK_GoNER 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 13:55.


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