Raised This Month: $ Target: $400
 0% 

Playing Sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
broertje
Senior Member
Join Date: Mar 2005
Old 11-01-2005 , 16:31   Playing Sound
Reply With Quote #1

How can i play a sound,jus the code bender said its something with settask.
broertje is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-01-2005 , 16:47  
Reply With Quote #2

.wav or .mp3?
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
broertje
Senior Member
Join Date: Mar 2005
Old 11-01-2005 , 16:52  
Reply With Quote #3

.mp3
broertje is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-01-2005 , 16:57  
Reply With Quote #4

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

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

Take your pick.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
broertje
Senior Member
Join Date: Mar 2005
Old 11-01-2005 , 17:01  
Reply With Quote #5

thx,so i need to do this: client_cmd(id,"banana %s",sound_location);
broertje is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-01-2005 , 17:03  
Reply With Quote #6

Err... no... use common sense

Code:
client_cmd(id,"spk misc/banana.mp3") // replace banana with your sound and folder
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
broertje
Senior Member
Join Date: Mar 2005
Old 11-01-2005 , 17:05  
Reply With Quote #7

thx
broertje is offline
cTn
Senior Member
Join Date: Oct 2005
Old 11-01-2005 , 18:12  
Reply With Quote #8

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
__________________
cTn is offline
Send a message via ICQ to cTn Send a message via MSN to cTn
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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