Raised This Month: $ Target: $400
 0% 

Music Menu


Post New Thread Reply   
 
Thread Tools Display Modes
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
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 12-21-2009 , 21:47   Re: Music Menu
Reply With Quote #2

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.
__________________
R.I.P Aziz 'Zyzz' Sergeyevich Shavershian
cikjam is offline
Merc3y
Member
Join Date: Dec 2009
Old 12-21-2009 , 22:54   Re: Music Menu
Reply With Quote #3

Quote:
Originally Posted by cikjam View Post
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.
Merc3y is offline
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 04:13.


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