AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Playing Sound (https://forums.alliedmods.net/showthread.php?t=20105)

broertje 11-01-2005 16:31

Playing Sound
 
How can i play a sound,jus the code bender said its something with settask.

Hawk552 11-01-2005 16:47

.wav or .mp3?

broertje 11-01-2005 16:52

.mp3

Hawk552 11-01-2005 16:57

client_cmd(id,"mp3 play %s",sound_location);

client_cmd(id,"spk %s",sound_location);

Take your pick.

broertje 11-01-2005 17:01

thx,so i need to do this: client_cmd(id,"banana %s",sound_location);

Hawk552 11-01-2005 17:03

Err... no... use common sense

Code:
client_cmd(id,"spk misc/banana.mp3") // replace banana with your sound and folder

broertje 11-01-2005 17:05

thx

cTn 11-01-2005 18:12

great .. can i use this too in menu? just if someone pres button then play sound hmm pickup or i dont now what is good for this 8)


All times are GMT -4. The time now is 23:37.

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