Raised This Month: $ Target: $400
 0% 

What is play sound command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-29-2006 , 15:53   What is play sound command
Reply With Quote #1

I am making a plugin that brings up a menu and plays a sound when you pick the sound to play. but I don't know what the comand to play a sound is, i got the menu and everything I can do that myself but what is comand to make a .mp3 sound play?
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Z@C
Member
Join Date: May 2006
Location: Moscow, Russia
Old 05-29-2006 , 15:57  
Reply With Quote #2

play mp3 "path"
__________________
HLDS protocol 48 (CS 1.1.2.6 build 4883 on FreeBSD 9.0)
AMXX v1.8.1.3746 | METAMOD v1.19p32 | DProto 0.9.87
Web: Nginx 1.0.10 (build 1.1), Apache 2.2.21, PHP 5.3.8, MySQL 5.5.17
Z@C is offline
Send a message via ICQ to Z@C
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-29-2006 , 16:04  
Reply With Quote #3

Isn't it "mp3 play <path>"?

You also have to precache it. NOT as a sound though, as generic.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Z@C
Member
Join Date: May 2006
Location: Moscow, Russia
Old 05-29-2006 , 16:08  
Reply With Quote #4

oh,you right
__________________
HLDS protocol 48 (CS 1.1.2.6 build 4883 on FreeBSD 9.0)
AMXX v1.8.1.3746 | METAMOD v1.19p32 | DProto 0.9.87
Web: Nginx 1.0.10 (build 1.1), Apache 2.2.21, PHP 5.3.8, MySQL 5.5.17
Z@C is offline
Send a message via ICQ to Z@C
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-29-2006 , 16:27  
Reply With Quote #5

can you give me an example using this code Hawk? plz?
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 05-29-2006 , 16:29  
Reply With Quote #6

Quote:
Originally Posted by Rolnaaba
can you give me an example using this code Hawk? plz?
Code:
new g_szSound[] = "sound/misc/sound.mp3" // ... public plugin_precache() {      precache_generic(g_szSound) } // ... client_cmd(id,"mp3 play ^"%s^"",g_szSound)
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Rolnaaba
Veteran Member
Join Date: May 2006
Old 05-29-2006 , 16:38  
Reply With Quote #7

ahh now I understand
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 05-29-2006 , 16:43  
Reply With Quote #8

lol

just to clarify if in misc folder

Code:
client_cmd(id,"mp3 play ^"sound/%s^"",g_szSound)
__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
Old 05-29-2006, 16:47
Hawk552
This message has been deleted by Hawk552.
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 16:21.


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