Thread: Play()
View Single Post
  #2  
Old 08-23-2009, 10:56 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
The file should be in levels/sounds/ folder or similar. Then in folder config just do file sounds/*.wav (no "levels/" in front). Now let's say you named it as "kick.wav":
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
  if (
player.chat == "/playsound")
    
play("kick.wav");

__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote