 |
|
Senior Member
|

06-30-2008
, 13:20
Re: play a sound.
|
#3
|
Quote:
Originally Posted by grimvh2
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(PLUGIN, VERSION, AUTHOR)
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 ?
|
|
|
|