Raised This Month: $ Target: $400
 0% 

Music Game


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
retoxx
Junior Member
Join Date: Jul 2012
Old 08-18-2012 , 06:12   Music Game
Reply With Quote #1

The thing is that I have a Music Game where you can start music and stop the music but when I click "STOP" the music keeps playing.

PHP Code:
public Dans_handler(idmenuitem)
{
    if (
item == MENU_EXIT)
        {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[6], iName[64]
    new 
accescallback
    menu_item_getinfo
(menuitemaccesdata,5iName63callback)
    
    new 
key str_to_num(data)
    
    switch(
key)
    { 
        case 
1
        {
            
client_cmd(0"spk %s"g_szSound3)
            
set_dhudmessage(255850, -1.00.1222.02.0)
            
show_dhudmessage(id"[OG-G] DaysMenu ^n Dance until the music stops!"
        }
        case 
2:    client_cmd(0"spk stop")
    
        
    }
    
    return 
PLUGIN_HANDLED

retoxx 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 05:41.


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