Raised This Month: $51 Target: $400
 12% 

Music . MP3 Player!


Post New Thread Reply   
 
Thread Tools Display Modes
Stressful
Senior Member
Join Date: Feb 2011
Old 07-21-2011 , 06:13   Re: Music . MP3 Player!
Reply With Quote #21

Quote:
Originally Posted by Shadymn View Post
is it possible to without download and player just use only motd to listen music??
yeah can , its possible .
__________________
Stressful is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 07-22-2011 , 06:02   Re: Music . MP3 Player!
Reply With Quote #22

okay please make us plugin
Shadymn is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 07-22-2011 , 06:28   Re: Music . MP3 Player!
Reply With Quote #23

http://forums.alliedmods.net/showthr...highlight=hlmp ?
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Mofforg
Senior Member
Join Date: Aug 2010
Location: Moscow, Russia
Old 07-23-2011 , 04:30   Re: Music . MP3 Player!
Reply With Quote #24

Quote:
Originally Posted by 2reason2kill View Post
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

Hello.

Is it possbile to make plugin detect all .mp3 files in directory /sound/Song and make a list of it.


If it`s not possible, maybe give possibility for player to write name of the Song himself? I mean, that the player will play the song name, which player type.
Mofforg is offline
Send a message via ICQ to Mofforg Send a message via Skype™ to Mofforg
Shadymn
Senior Member
Join Date: Sep 2010
Old 07-23-2011 , 10:31   Re: Music . MP3 Player!
Reply With Quote #25

thanks drek i will test it when i get back my computer
Shadymn 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:05.


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