AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Music Menu (https://forums.alliedmods.net/showthread.php?t=112866)

Merc3y 12-21-2009 18:09

Music Menu
 
There some problem with the music.

I tested the music it work perfectly in zombieplague during the some event.

But why it just won't play using this ?

PHP Code:

#include <amxmodx> 
 
new GiantEnemyCrab[ ] = { "music/GiantEnemyCrab.mp3" 
 
public 
plugin_init( ) 
{
         
register_plugin"Music Player""1.0""ƒa†es" )
 
         
register_clcmd"say /music""Music_Player" )
}
 
public 
plugin_precache( ) 

         
precache_genericGiantEnemyCrab 
}
 
public 
Music_Playerid )
{
         new 
menu menu_create"Music Menu""music_menu_handler" )
         
menu_additemmenu"Giant Enemy Crab""1")
 
         
menu_setpropmenuMPROP_EXITMEXIT_ALL )
         
menu_displayidmenu)
}
 
public 
music_menu_handleridmenuitem )
{
         if( 
item == MENU_EXIT )
         {
                   
menu_destroymenu )
                   return 
PLUGIN_HANDLED
         
}
 
         new 
data], iName64 ]
         new 
accesscallback
         menu_item_getinfo
menuitemaccessdata5iName63callback )
         new 
key str_to_numdata )
 
         switch( 
key )
         {
                   case 
1:
                   {
                             
client_cmdid"mp3 play %s"GiantEnemyCrab )
                   }
         }
 
         
menu_destroymenu )
         return 
PLUGIN_HANDLED



cikjam 12-21-2009 21:47

Re: Music Menu
 
I tried with a different sound because I dont have that sound, worked fine.

Did you put the music folder in cstrike or in sound?

It should be in cstrike.

Merc3y 12-21-2009 22:54

Re: Music Menu
 
Quote:

Originally Posted by cikjam (Post 1026292)
I tried with a different sound because I dont have that sound, worked fine.

Did you put the music folder in cstrike or in sound?

It should be in cstrike.

Yea i put in the correct location.


All times are GMT -4. The time now is 04:13.

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