create a plug-in to play a sound to all players happen to be running the server after say / play
After you do yourself say / play is the sound will play, other players will not play
What do I do?
Quote:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("PlaySound", "1.0", "PlaySound")
register_clcmd("say /play", "PlaySound")
}
public plugin_precache()
{
precache_sound("misc/sound.wav")
}
public PlaySound(id)
{
client_cmd(id, "speak misc/sound.wav")
}
|