Raised This Month: $ Target: $400
 0% 

Music


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
caked
Member
Join Date: Dec 2012
Old 01-07-2013 , 03:33   Music
Reply With Quote #1

When I open the menu i want songs pop up for my last request (lr) for my jailbreak mod thx. What is the code for it?
caked is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 01-07-2013 , 03:52   Re: Music
Reply With Quote #2

What?
Explane
__________________
simanovich is offline
caked
Member
Join Date: Dec 2012
Old 01-07-2013 , 03:59   Re: Music
Reply With Quote #3

When you type /lr the menu comes up with automatic music without picking wat music u want
coz lr is where u pick ur last opponent u want to to e.g knife fight

Last edited by caked; 01-07-2013 at 04:00.
caked is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 01-07-2013 , 04:51   Re: Music
Reply With Quote #4

Didn't understand a sh*t
__________________
simanovich is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 01-07-2013 , 08:16   Re: Music
Reply With Quote #5

like this? and next time post in Suggestions / Requests

Code:
public plugin_init()
{
    register_logevent( "LEV_RoundEnd", 2, "1=Round_End" )
 
}
public LEV_RoundEnd()
{
 client_cmd(0, "mp3 stop")
}
public plugin_precache()
{     
        precache_generic("sound/music.mp3")
        precache_generic("sound/music2.mp3")
        precache_generic("sound/music3.mp3")   
}
public MusicGame(id)
{
    new iPlayers[32]
    new iNum
    new id
 
    get_players( iPlayers, iNum )
 
    for( new i = 0; i < iNum; i++ )
    {
        id = iPlayers[i]
        if( !is_user_alive( id ) )
        {
            continue;
        }
 
        set_hudmessage ( 255, 255, 255, -1.0, 0.35, 0, 0.1, 1.0, 0.1, 0.1, 4 )  
        show_hudmessage ( 0, "[PREFIX]: Music Game Started!")
 
        if (is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_T)
        {
        musicmenu(id)
        }      
    }
}
 
public musicmenu(id)
{
        new music_menu = menu_create( "\w Music Game", "sub_music" )
        menu_additem(music_menu, "\yWhistle - Flo Rida", "1", 0 );
        menu_additem(music_menu, "\yTacata - Tacabro", "2", 0 );
        menu_additem(music_menu, "\yShot - LMFAO", "3", 0 );
        menu_additem(music_menu, "\rStop Music", "4", 0 );
 
        menu_setprop(music_menu, MPROP_EXIT, MEXIT_ALL );
        menu_display(id, music_menu, 0);
}
 
public sub_music(id, music_menu, item)
{    
    if( item == MENU_EXIT )
    {
        menu_destroy(music_menu);
        return PLUGIN_HANDLED;
    }
 
    new data[6], iName[64];
    new access, callback;
    menu_item_getinfo( music_menu, item, access, data, 6, iName, 63, callback )
 
    new key = str_to_num(data);
 
    switch( key )
    {
        case 1:
        {
            client_cmd(0, "mp3 play ^"sound/music1.mp3^"")
        }
        case 2:
        {
            client_cmd(0, "mp3 play ^"sound/music2.mp3^"")
        }
        case 3:
        {
            client_cmd(0, "mp3 play ^"sound/music3.mp3^"")
        }
        case 4:
        {
            client_cmd(0, "mp3 stop")
        }
    }
    menu_destroy(music_menu);
    return PLUGIN_HANDLED;
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.

Last edited by ironskillz1; 01-07-2013 at 08:20.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
caked
Member
Join Date: Dec 2012
Old 01-07-2013 , 17:40   Re: Music
Reply With Quote #6

k sorry
caked 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 13:29.


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