Raised This Month: $32 Target: $400
 8% 

Music . MP3 Player!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stressful
Senior Member
Join Date: Feb 2011
Old 02-14-2011 , 04:04   Music . MP3 Player!
Reply With Quote #1

Can someone make this plugin? I've seen a lot of people suggesting this too.. But still , no one made it , I want a plugin which , when player connect , they will download the songs which i've put it @ "songs" folder. So when they connect , they type /music , a menu opens up and let them choose the music they would like to play it . Only they themselves can listen to it . Thanks.
__________________
Stressful is offline
Stressful
Senior Member
Join Date: Feb 2011
Old 02-28-2011 , 04:51   Re: Music . MP3 Player!
Reply With Quote #2

BUMP !~
__________________
Stressful is offline
3v0
Junior Member
Join Date: Feb 2011
Old 02-28-2011 , 17:21   Re: Music . MP3 Player!
Reply With Quote #3

Great Idea dude
im waiting for this plugin!!!
3v0 is offline
Stressful
Senior Member
Join Date: Feb 2011
Old 07-08-2011 , 01:23   Re: Music . MP3 Player!
Reply With Quote #4

Bump.
__________________
Stressful is offline
2reason2kill
Senior Member
Join Date: Feb 2011
Old 07-08-2011 , 01:30   Re: Music . MP3 Player!
Reply With Quote #5

Quote:
Originally Posted by Stressful View Post
Bump.
I made it But I dont know if it will work.

Make A Folder in your sound that called Song then put ur song there.

You need to rename them to song1 song2 and song3.

If you want more tell me.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Mp3 Player!"
#define VERSION "1.0"
#define AUTHOR "2Reason2kill"

new song1 [ ] =  "sound/song/song1"
new song2 [ ] =  "sound/song/song2"
new song3 [ ] =  "sound/song/song3"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /music","Musicmenu")
    
register_clcmd("say /Stop","Stopmusic")
}
public 
plugin_precache( )
{
    
precache_genericsong1 );
    
precache_genericsong2 );
    
precache_genericsong3 );
    
}
public 
Stopmusic(id)
{
    
client_cmd(id"Mp3 stop")
}
public 
Musicmenu(id)
{
    new 
Music menu_create"\w Wich Song Do you want?","Playmusic")
    
menu_additem(Music ,"song1""1"0)
    
menu_additem(Music ,"song2""2"0)
    
menu_additem(Music ,"song3""3"0)
    
menu_setprop(MusicMPROP_PERPAGE0);
    
menu_display(idMusic);
}    
public 
Playmusic(idMusicitem )
{
         if( 
item == MENU_EXIT )
    {
        
menu_destroy Music )
        return 
PLUGIN_HANDLED
    
}
    new 
data], iName64 ]
    new 
accesscallback
    menu_item_getinfo
Musicitemaccessdata5iName63callback )
    new 
key str_to_numdata )
    
    switch (
key)
    {
        case 
1:
        {
            
client_cmdid"mp3 play ^"%s^""song1);
        }
        case 
2:
        {
            
client_cmdid"mp3 play ^"%s^""song2);
        }
        case 
3:
        {
            
client_cmdid"mp3 play ^"%s^""song3);
        }
    }
    
menu_destroy(Music)
    return 
PLUGIN_HANDLED


Last edited by 2reason2kill; 07-08-2011 at 02:08.
2reason2kill is offline
Stressful
Senior Member
Join Date: Feb 2011
Old 07-08-2011 , 22:38   Re: Music . MP3 Player!
Reply With Quote #6

Hmm it works but other player can't listen to the music because they didn't download
__________________
Stressful is offline
2reason2kill
Senior Member
Join Date: Feb 2011
Old 07-11-2011 , 06:53   Re: Music . MP3 Player!
Reply With Quote #7

Quote:
Originally Posted by Stressful View Post
Hmm it works but other player can't listen to the music because they didn't download
sorry i will look to it Now.


Edit: I Fixt the Code But I recommend You To use Fast DL.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Mp3 Player!"
#define VERSION "1.0"
#define AUTHOR "2Reason2kill"

new song1 [ ] =  "sound/song/song1.Mp3"
new song2 [ ] =  "sound/song/song2.Mp3"
new song3 [ ] =  "sound/song/song3.Mp3"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /music","Musicmenu")
    
register_clcmd("say /Stop","Stopmusic")
}
public 
plugin_precache( )
{
    
precache_genericsong1 );
    
precache_genericsong2 );
    
precache_genericsong3 );
    
}
public 
Stopmusic(id)
{
    
client_cmd(id"Mp3 stop")
}
public 
Musicmenu(id)
{
    new 
Music menu_create"\w Wich Song Do you want?","Playmusic")
    
menu_additem(Music ,"song1""1"0)
    
menu_additem(Music ,"song2""2"0)
    
menu_additem(Music ,"song3""3"0)
    
menu_setprop(MusicMPROP_PERPAGE0);
    
menu_display(idMusic);
}    
public 
Playmusic(idMusicitem )
{
         if( 
item == MENU_EXIT )
    {
        
menu_destroy Music )
        return 
PLUGIN_HANDLED
    
}
    new 
data], iName64 ]
    new 
accesscallback
    menu_item_getinfo
Musicitemaccessdata5iName63callback )
    new 
key str_to_numdata )
    
    switch (
key)
    {
        case 
1:
        {
            
client_cmdid"mp3 play ^"%s^""song1);
        }
        case 
2:
        {
            
client_cmdid"mp3 play ^"%s^""song2);
        }
        case 
3:
        {
            
client_cmdid"mp3 play ^"%s^""song3);
        }
    }
    
menu_destroy(Music)
    return 
PLUGIN_HANDLED
}
public 
client_connect(id)
{
    
set_task(15.0 "howtoplay")
}
public 
howtoplay(id)
{
    
client_print(idprint_chat"[Mp3]:To Start a Song Type /Music.")


Last edited by 2reason2kill; 07-11-2011 at 07:24.
2reason2kill is offline
Stressful
Senior Member
Join Date: Feb 2011
Old 07-11-2011 , 07:40   Re: Music . MP3 Player!
Reply With Quote #8

Thanks ! Worked Anw if you free , Mind taking a look here? http://forums.alliedmods.net/showthread.php?t=161764
__________________
Stressful is offline
2reason2kill
Senior Member
Join Date: Feb 2011
Old 07-11-2011 , 10:43   Re: Music . MP3 Player!
Reply With Quote #9

Quote:
Originally Posted by Stressful View Post
Thanks ! Worked Anw if you free , Mind taking a look here? http://forums.alliedmods.net/showthread.php?t=161764
Sorry i Dont Know how.
2reason2kill is offline
Stressful
Senior Member
Join Date: Feb 2011
Old 07-11-2011 , 10:47   Re: Music . MP3 Player!
Reply With Quote #10

Ok Its ok Thanks though ^^
__________________
Stressful is offline
Reply


Thread Tools
Display Modes

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 11:48.


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