Raised This Month: $ Target: $400
 0% 

play a sound.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
neogeo
Senior Member
Join Date: Jul 2005
Old 06-30-2008 , 13:20   Re: play a sound.
Reply With Quote #3

Quote:
Originally Posted by grimvh2 View Post
This will play a sound to evryone on the server

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plugin"
#define VERSION "1.0"
#define AUTHOR "Grim"

#define wavfile "misc/soundname"
#define mp3file "sound/misc/soundname"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event("DeathMsg""eDeath""a"
    
register_event("Damage""damage""b""2!0""3=0""4!0")
}

public 
eDeath()
{
    
client_cmd(0"spk %s"wavfile)
    
client_cmd(0"mp3 play %s"mp3file)
}

public 
damage()
{
    
client_cmd(0"spk %s"wavfile)
    
client_cmd(0"mp3 play %s"mp3file)

thanks but is it possible to add different sounds when a player die and when a player is hited ?
neogeo is offline
 


Thread Tools
Display Modes

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 08:16.


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