AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   What is play sound command (https://forums.alliedmods.net/showthread.php?t=29105)

Rolnaaba 05-29-2006 15:53

What is play sound command
 
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?

Z@C 05-29-2006 15:57

play mp3 "path"

Hawk552 05-29-2006 16:04

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

You also have to precache it. NOT as a sound though, as generic.

Z@C 05-29-2006 16:08

oh,you right

Rolnaaba 05-29-2006 16:27

can you give me an example using this code Hawk? plz?

Hawk552 05-29-2006 16:29

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)

Rolnaaba 05-29-2006 16:38

ahh now I understand

allenwr 05-29-2006 16:43

lol

just to clarify if in misc folder

Code:
client_cmd(id,"mp3 play ^"sound/%s^"",g_szSound)


All times are GMT -4. The time now is 16:21.

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