Raised This Month: $ Target: $400
 0% 

Music Menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Merc3y
Member
Join Date: Dec 2009
Old 12-21-2009 , 18:09   Music Menu
Reply With Quote #1

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

Merc3y is offline
 



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 04:13.


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