neonDragon.net
Would you like to react to this message? Create an account in a few clicks or log in to continue.

nD* Music Plugin.

4 posters

Go down

nD* Music Plugin. Empty nD* Music Plugin.

Post by Merciless Tue Jul 21, 2009 1:44 pm

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)

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")
}
Merciless
Merciless

Male Number of posts : 226
Age : 29
Birthday : 1995-04-26
Location : Belgium, Merksplas
Job/hobbies : Making maps for nD, Football
Registration date : 2009-07-13

http://www.NeonDragon.net

Back to top Go down

nD* Music Plugin. Empty Re: nD* Music Plugin.

Post by Satoko Tue Jul 21, 2009 2:04 pm

http://forums.alliedmods.net/showthread.php?p=616808

i think this shamusi plugin is way better.
Satoko
Satoko

Male Number of posts : 1690
Age : 36
Birthday : 1988-02-29
Registration date : 2009-04-11

Back to top Go down

nD* Music Plugin. Empty Re: nD* Music Plugin.

Post by SuomiKukka Tue Jul 21, 2009 2:21 pm

Why plugins if you can listen your own?

SuomiKukka
Admin
Admin

Female Number of posts : 1095
Age : 2023
Birthday : 2001-01-01
Registration date : 2009-06-15

Back to top Go down

nD* Music Plugin. Empty Re: nD* Music Plugin.

Post by Merciless Tue Jul 21, 2009 2:35 pm

Satoko wrote:http://forums.alliedmods.net/showthread.php?p=616808

i think this shamusi plugin is way better.
Its that plugin omg :')
Merciless
Merciless

Male Number of posts : 226
Age : 29
Birthday : 1995-04-26
Location : Belgium, Merksplas
Job/hobbies : Making maps for nD, Football
Registration date : 2009-07-13

http://www.NeonDragon.net

Back to top Go down

nD* Music Plugin. Empty Re: nD* Music Plugin.

Post by Satoko Tue Jul 21, 2009 2:40 pm

|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
Satoko

Male Number of posts : 1690
Age : 36
Birthday : 1988-02-29
Registration date : 2009-04-11

Back to top Go down

nD* Music Plugin. Empty Re: nD* Music Plugin.

Post by QuickSilver Sat Jul 17, 2010 6:01 am

Ooooooold topic.
QuickSilver
QuickSilver
Admin
Admin

Male Number of posts : 2691
Age : 67
Birthday : 1957-02-06
Registration date : 2009-09-23

Back to top Go down

nD* Music Plugin. Empty Re: nD* Music Plugin.

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum