Raised This Month: $ Target: $400
 0% 

amx === > amxx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Jks_
Junior Member
Join Date: Apr 2007
Old 10-07-2007 , 06:49   amx === > amxx
Reply With Quote #1

Can you give me the AMXX radio_menu plugin from the amx plugin?
please !

Quote:
/********************************************* ********************************************* *************
AMX Radio Menu


Author: O'neill
Version: 1.4

Description:

Vous pouvez ecouter la radio pendant une partie de counter-strike sans laguer


>>0.1<<
Release

>>0.2<<
Rajoute lien direct des radio

>>0.3<<
Ajoute Fun radio

>>0.4<<
Ajoute Rire et chanson

>>0.5<<
Ajoute Rfm

>>0.6<<
Changement du menu

>>0.7<<
Ajoute la commande say_team

>>0.8<<
Mes de la couleur au menu

>>0.9<<
Modifie la page "coupez la radio"

>>1.0<<
Monte le son de demarage

>>1.1<<
Enleve les CVARs

>>1.2<<
Retire les images

>>1.3<<
Version finale

>>1.4<<
Ajoute un message toute les minutes



Commande:

say /radio - Ouvre le menu des radios
say_team /radio - Ouvre le menu des radios
radio_menu - Ouvre le menu des radios



Setup:

(Radio_Menu.sma) dans cstrike/addons/amx/exemple/source
(Radio_Menu.amx) dans cstrike/addons/amx/plugins


Radio:

1. Nrj, 2. Europe 1, 3. Skyrock, 4. Cherie fm, 5. Nostalgie, 6. Fun radio, 7. Rire et chanson,
8. Rfm

********************************************* ********************************************* *************/
#include <amxmod>

#define MENU_KEYS MENU_KEY_0|MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|M ENU_KEY_4|MENU_KEY_5|MENU_KEY_6|MENU_KEY_7|ME NU_KEY_8|MENU_KEY_9

#define PLUGIN_NOM "Radio Menu"
#define PLUGIN_VERSION "1.4"
#define PLUGIN_AUTEUR "O'neill"

#define LOOP_TIME 100
#define MAX_MSGS 1

new motd[1024]
new len = 1300
new menutext[512];
new n = 0
new buffer[1301]
new g_msg[MAX_MSGS][] = {
"!g[!tRADIO!g] !wEcoute la radio en tapent !tradio_menu !wdans la console ou !tsay /radio!w, pour ouvrire le menu des radios."
}
new gmsgSayText
new g_msgNum

public plugin_init() {
register_plugin(PLUGIN_NOM, PLUGIN_VERSION, PLUGIN_AUTEUR)
register_clcmd("say /radio", "creerMenu");
register_clcmd("say_team /radio", "creerMenu");
register_clcmd("radio_menu", "creerMenu", 0, "Show Radio Menu");
register_menucmd(register_menuid("radio"), 511, "actionMenu")
gmsgSayText = get_user_msgid("SayText")
g_msgNum = 0
set_task(float(LOOP_TIME), "displayMsg", 5487989, _, _, "b")
}

public creerMenu(id) {
new longueur = format(menutext, 511, "\yRadio Menu 1.4 by O'neill^n^n")
longueur += format(menutext[longueur], 511-longueur,"\rQuelle radio voulez-vous ??^n^n")
longueur += format(menutext[longueur], 511-longueur,"\r1.\w Nrj^n")
longueur += format(menutext[longueur], 511-longueur,"\r2.\w Europe 1^n")
longueur += format(menutext[longueur], 511-longueur,"\r3.\w Skyrock^n")
longueur += format(menutext[longueur], 511-longueur,"\r4.\w Cherie FM^n")
longueur += format(menutext[longueur], 511-longueur,"\r5.\w Nostalgie^n")
longueur += format(menutext[longueur], 511-longueur,"\r6.\w Fun radio^n")
longueur += format(menutext[longueur], 511-longueur,"\r7.\w Rire et chanson^n")
longueur += format(menutext[longueur], 511-longueur,"\r8.\w Rfm^n^n")
longueur += format(menutext[longueur], 511-longueur,"\r9.\w Coupez la radio^n^n")
longueur += format(menutext[longueur], 511-longueur,"\r0.\w Sortie")
show_menu(id, MENU_KEYS, menutext, -1, "radio")
}

public actionMenu(id, key) {

switch(key) {
case 0:{
radio_show(id)
format(motd, 1023, "%s<param name=^"AutoStart^" value=^"1^"><param name=^"URL^" value=^"http://cache.yacast.fr/V4/nrj/nrj.asx^"></object></span>", motd)
radio2_show(id)
}
case 1:{
radio_show(id)
format(motd, 1023, "%s<param name=^"AutoStart^" value=^"1^"><param name=^"URL^" value=^"http://cache.yacast.fr/V4/europe1/europe1.asx^"></object></span>", motd)
radio2_show(id)
}
case 2:{
radio_show(id)
format(motd, 1023, "%s<param name=^"AutoStart^" value=^"1^"><param name=^"URL^" value=^"http://cache.yacast.fr/V4/skyrock/skyrock.asx^"></object></span>", motd)
radio2_show(id)
}
case 3:{
radio_show(id)
format(motd, 1023, "%s<param name=^"AutoStart^" value=^"1^"><param name=^"URL^" value=^"http://cache.yacast.fr/V4/cheriefm/cheriefm.asx^"></object></span>", motd)
radio2_show(id)
}
case 4:{
radio_show(id)
format(motd, 1023, "%s<param name=^"AutoStart^" value=^"1^"><param name=^"URL^" value=^"http://cache.yacast.fr/V4/nostalgie/nostalgie.asx^"></object></span>", motd)
radio2_show(id)
}
case 5:{
radio_show(id)
format(motd, 1023, "%s<param name=^"AutoStart^" value=^"1^"><param name=^"URL^" value=^"http://streaming.radio.funradio.fr/fun-1-44-96^"></object></span>", motd)
radio2_show(id)
}
case 6:{
radio_show(id)
format(motd, 1023, "%s<param name=^"AutoStart^" value=^"1^"><param name=^"URL^" value=^"http://cache.yacast.fr/V4/rireetchansons/rireetchansons.asx^"></object></span>", motd)
radio2_show(id)
}
case 7:{
radio_show(id)
format(motd, 1023, "%s<param name=^"AutoStart^" value=^"1^"><param name=^"URL^" value=^"http://www.tv-radio.com/station/rfm/rfm-20k.asx^"></object></span>", motd)
radio2_show(id)
}
case 8:quitter_radioMenu(id)

case 9:return PLUGIN_CONTINUE
}
return PLUGIN_CONTINUE
}

public quitter_radioMenu(id){

n += copy( buffer[n],len-n,"<html><head><style type=^"text/css^">pre{color:#FFB000;}body{background:#000 000;margin-left:8px;margin-top:0px;}</style></head><body><pre>")
n += copy( buffer[n],len-n, "Vous pouvez appuyer sur la touche OK pour quitter la page.")
n += copy( buffer[n],len-n,"</pre></body></html>")
show_motd(id,buffer, "Coupez la radio")
}

public radio_show(id){

format(motd, 1023, "<html><head><meta http-equiv=^"content-type^" content=^"text/html; charset=UTF-8^"></head><body bgcolor=^"#000000^" align=^"center^"><span style=^"color: #FFB000; font-size: 9pt^">Radio Menu 1.4 by O'neill<br>")
format(motd, 1023, "%s<object classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6 codebase=http://www.microsoft.com/ntserver/netshow/download/en/nsmp2inf.cab#Version=5,1,51,415 type=application/x-oleobject name=msplayer width=256 height=65 align=^"middle^" id=msplayer>", motd)
format(motd, 1023, "%s<param name=^"enableContextMenu^" value=^"0^"><param name=^"stretchToFit^" value=^"1^">", motd)
format(motd, 1023, "%s<param name=^"AutoRewind^" value=^"1^">", motd)
format(motd, 1023, "%s<param name=^"Volume^" value=^"50^">", motd)
}

public radio2_show(id){

format(motd, 1023, "%s<param name=^"uiMode^" value=^"full^"><param name=^"width^" value=^"256^"><param name=^"height^" value=^"65^">", motd)
format(motd, 1023, "%s<param name=^"TransparentAtStart^" value=^"1^"></object><br>%s</span>", motd)
format(motd, 1023, "%s</body></html>", motd)
show_motd(id, motd, "Radio Media Player")
}

public displayMsg() {
new message_to_send[256]
copy(message_to_send, 255, g_msg[g_msgNum])
while(containi(message_to_send,"!t") != -1)
{
replace(message_to_send,128,"!t","^x03")
}
while(containi(message_to_send,"!g") != -1)
{
replace(message_to_send,128,"!g","^x04")
}
while(containi(message_to_send,"!w") != -1)
{
replace(message_to_send,128,"!w","^x01")
}

new players[32], inum
get_players(players, inum)
for(new i = 0; i < inum; ++i)
{
message_begin(MSG_ONE, gmsgSayText, {0,0,0}, players[i])
write_byte(players[i])
write_string(message_to_send)
message_end()
}

if(++g_msgNum >= MAX_MSGS) {
g_msgNum = 0
}
}
Thanks for helping me
Jks_ is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-07-2007 , 08:00   Re: amx === > amxx
Reply With Quote #2

Use this plugin that is much better :

http://forums.alliedmods.net/showthread.php?p=150489
ConnorMcLeod is offline
P0u$$!n
Senior Member
Join Date: Sep 2009
Old 09-25-2009 , 20:16   Re: amx === > amxx
Reply With Quote #3

I found your happiness:

http://gforce-corporation.fr/jeux/pl...ddons/amxmodx/

P0u$$!n is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-26-2009 , 02:37   Re: amx === > amxx
Reply With Quote #4

This thread is old.
The plugin you linked uses old radio links that don't work anymore.

I suggest to use This Plugin in wich you can add as many radios as you like.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 16:05.


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