Raised This Month: $ Target: $400
 0% 

Play sound problem help please.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bilalpro
BANNED
Join Date: Jan 2011
Old 09-24-2011 , 06:37   Play sound problem help please.
Reply With Quote #1

PHP Code:
public plugin_precache()
{
 
precache_sound("misc/bonusxp.wav");
 
}
 
public 
EventDeathMsg()
{
 new 
killer read_data(1);
 new 
victim read_data(2);
 
 if( (
g_first_client <= killer <= g_max_clients) && victim != killer )
 {
  if( 
IsUserAuthorized(killer) )
  {
   
// regular kill
   
new xp get_pcvar_num(cvar_xp_kill);
   
   
   
g_xp[killer] += xp;
   
set_hudmessage(255255255, -1.0, -0.706.04.0);
   
show_hudmessage(killer"+100"MESSAGE_TAGxp);
   
emit_sound(killer"misc/bonusxp.wav");
   
   
Save(killer);
  }
 }
 else if( 
IsUserAuthorized(victim) )
 {
  
// victim died of map causes or killed self
  
new xp get_pcvar_num(cvar_xp_suicide);
  
  
g_xp[victim] -= xp;
  
  
ColorChat(victimGREY"^x04%s^x03 You lost^x04 %i XP^x03 for suicide!"MESSAGE_TAGxp);
  
  
Save(victim);
 }

This is not the full code because the plugin is private, i need help with playing the sound it wont play the error is: argument mismatch 2
bilalpro 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 19:38.


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