Raised This Month: $ Target: $400
 0% 

Sound won't play


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-07-2007 , 18:37   Sound won't play
Reply With Quote #1

I want to play a sound file (wav) for a client when he gains XP in a mod I'm working on... But the sound won't play (or atleast I can't hear it)...

Here's my hook_death code:
PHP Code:
public hook_death() {
 new 
Killer read_data(1)
 new 
Victim read_data(2)
 
 new 
KillerName[32], VictimName[32]
 
get_user_name(KillerKillerName31)
 
get_user_name(VictimVictimName31)
 
 if(
is_user_connected(Killer) && !is_user_alive(Victim)) {
  
p_xp[Killer] += XP_PER_KILL
  client_print
(Killerprint_chat"[%s] %s recieved %d XP for killing %s"MODKillerNameXP_PER_KILLVictimName)
 
  
emit_sound(Killer,CHAN_ITEM"sound/mymod/gainxp.wav"1.0ATTN_NORM0PITCH_NORM)
 } 
...and yeah, the wav file exist... ;)
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry 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 01:14.


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