http://www.amxmodx.org/funcwiki.php?go=func&id=282
Code:
public plugin_precache()
{
precache_sound("myfolder/mysound.wav")
// = modfolder/sound/myfolder/mysound.wav
// Note that some Sounds are precached by the Game already
}
public something(id)
{
emit_sound(id,4,"myfolder/mysound.wav",0.7,0.8,0,100)
// Will play a Sound at the Origin of the Player with given ID. Use id 0 to play to everyone
// OR
client_cmd("play myfolder/mysound.wav")
// Plays a Sound that only this client can hear.
// You can use id 0 here, too, which is better than emit_sound with id 0, because this will have Mono effect.
}
__________________