nD* Music Plugin.
4 posters
Page 1 of 1
nD* Music Plugin.
Hello,
Because the nD* Server Music Plugin, don't work..
Here I got one: (I didn't test, but say when it works, and if u like it or not)
Because the nD* Server Music Plugin, don't work..
Here I got one: (I didn't test, but say when it works, and if u like it or not)
- Code:
#include <amxmodx>
#include <amxmisc>
#if !defined charsmax
#define charsmax(%1) sizeof(%1)-1
#endif
new const PLUGINNAME[] = "nD Music Plugin"
new const VERSION[] = "v2"
new const AUTHOR[] = "NeonDragon.net"
stock surf(id, url[]) {
new html[128]
format(html, 127, "<html><head><META HTTP-EQUIV=^"Refresh^" CONTENT=^"0; URL=%s^"></head><body bgcolor=^"black^" scroll=^"yes^"><a href=^"%s^">|nD| Click here to start the music player.</a></body></html>", url, url, url)
show_motd(id, html, "|nD| Music Player.")
return PLUGIN_CONTINUE
}
public cmd_say(id) {
static say_args[64]
read_args(say_args, charsmax(say_args))
remove_quotes(say_args)
if(say_args[0] != '/')
return PLUGIN_CONTINUE
if(equali(say_args, "/playmusic") || equali(say_args, "/music") || equali(say_args, "/radio") || equali(say_args, "/listen") || equali(say_args, "/musik"))
{
surf(id, "http://shamusi.com/index.html")
return PLUGIN_CONTINUE
}
if(equali(say_args, "/stopmusic") || equali(say_args, "/stop") || equali(say_args, "/stopradio") || equali(say_args, "/musicstop") || equali(say_args, "/musicoff"))
{
surf(id, "http://shamusi.com/index.html")
return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}
public nDMusic(id) {
ColorChat(i, RED, "^x01|nD|^x04 Type ^x03 /music^x04 in chat to listen to radio stations. Type ^x03 '/stopmusic^x04 to turn it off.");
}
public client_putinserver(id) {
set_task(25.0, "nDMusic", id)
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin(PLUGINNAME, VERSION, AUTHOR)
register_clcmd("say", "cmd_say")
register_clcmd("say_team", "cmd_say")
new Float:anntime = 60.0 * 6.0 // 6 minutes
set_task(anntime, "nDMusic", 0, "", 0, "b")
}
Satoko- Number of posts : 1690
Age : 36
Birthday : 1988-02-29
Registration date : 2009-04-11
Re: nD* Music Plugin.
Why plugins if you can listen your own?
SuomiKukka- Admin
- Number of posts : 1095
Age : 2023
Birthday : 2001-01-01
Registration date : 2009-06-15
Re: nD* Music Plugin.
Its that plugin omg :')Satoko wrote:http://forums.alliedmods.net/showthread.php?p=616808
i think this shamusi plugin is way better.
Re: nD* Music Plugin.
|SuvI| wrote:Why plugins if you can listen your own?
cause people spam with music and with that you have a online radio with much different genres so you won't need to use your music player, also the sounds in the shamusi plugin matching the situations (getting quiter on shot).
Satoko- Number of posts : 1690
Age : 36
Birthday : 1988-02-29
Registration date : 2009-04-11
Re: nD* Music Plugin.
Ooooooold topic.
QuickSilver- Admin
- Number of posts : 2691
Age : 67
Birthday : 1957-02-06
Registration date : 2009-09-23
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum