AlliedModders
XFactor Servers

Radio


Post New Thread Reply   
 
Thread Tools Display Modes
Author
dubbeh
Senior Member
Join Date: Jul 2007
Location: UK
Plugin ID:
115
Plugin Version:
1.0.0.12
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Approver:
    Plugin Description:
    Adds a radio player to SourceMod
    Servers with this Plugin:
    419 
    Old 08-03-2007 , 13:03   Radio
    Reply With Quote #1

    SourceMod Radio v1.0.0.11

    Adds !radio / !radiooff support to SourceMod
    Little added extra is the sm_browse command that allows a user to browse there website of choice or listen to a custom radio station

    Server Console Commands:
    sm_radio_enable 1/0 - Enable the radio plugin
    sm_radio_advert 1/0 - Enable advertising the users radio station choice & the welcome message
    sm_radio_welcome 1/0 - Enable the welcome message

    Client Console Commands:
    sm_browse "www.site.com" - browse www.site.com
    sm_radio - Pop up the radio station selection menu
    sm_radiooff - Display a blank MOTD window (turns off the radio)

    Supported Languages:
    English
    German - Thanks to sessus

    Usage:
    !radio or /radio - Pops up a radio stations selection menu configurable through radiostations.ini
    !radiooff or /radiooff - Switches off the radio
    !browse "www.site.com" or /browse "www.site.com" - Browse a website of choice

    Install:
    radio.smx -> addons\sourcemod\plugins
    radio.sp -> addons\sourcemod\scripting
    radio.phrases.txt -> addons\sourcemod\translations
    plugin.radio.cfg -> cfg\sourcemod
    radiostations.ini -> cfg\sourcemod

    All radio station links can be setup in radiostations.ini

    Version History:
    v1.0.0.12
    - Unlimited number of radio stations now supported - switched to adt array
    - SetFailState is now ran if the plugin cant find the radiostations.ini
    v1.0.0.11
    - Increased the buffer sizes for storing the radio station URL's - fixes a bug with the new radiostations.ini & much longer URL's
    v1.0.0.10
    - Update the radiostations.ini - Thanks to SourceTunes
    v1.0.0.9
    - Added a convar to switch the welcome message on & off
    v1.0.0.8
    - Re-added the tagged coloured chat strings - Forgot to add them back with the translation file
    v1.0.0.7
    - Plugin now supports translations ;)
    - Added a welcome message to clients
    - New radiostations.ini - Thanks to bolinux
    v1.0.0.6
    - Changed the radiostations.ini file location - requested by tcviper
    - Added 3 more radio stations to radiostations.ini - thanks to everyone that recommended new stations
    v1.0.0.5
    - Removed sm_radio_off_page was a bit problematic
    - Custom off page can now be setup like
    "Off Page" http://www.customwebsite.com
    Inside radiostations.ini file
    v1.0.0.4
    - Custom radio off page can now be set using sm_radio_off_page - "about:blank" is set as default
    v1.0.0.3
    - New command sm_radiooff switches off the radio & displays the user an about:blank MOTD page
    v1.0.0.2
    - Changed the format style from "%x" to "%d" to fix the menu problem
    v1.0.0.1
    - New commands sm_browse & sm_radio
    v1.0.0.0
    - Small update to allow clients to view the users station choice

    Have fun dubbeh
    Attached Files
    File Type: cfg plugin.radio.cfg (262 Bytes, 7548 views)
    File Type: sp Get Plugin or Get Source (radio.sp - 13994 views - 8.9 KB)
    File Type: txt radio.phrases.txt (797 Bytes, 7029 views)
    File Type: ini radiostations.ini (7.2 KB, 7403 views)
    __________________

    Last edited by dubbeh; 03-06-2008 at 04:29. Reason: Plugin update
    dubbeh is offline
    xYx
    Member
    Join Date: Jul 2005
    Old 08-03-2007 , 14:02   Re: Radio
    Reply With Quote #2

    lo,

    kewl plugin in test it later!!
    xYx is offline
    dubbeh
    Senior Member
    Join Date: Jul 2007
    Location: UK
    Old 08-03-2007 , 14:53   Re: Radio - v1.0.0.0
    Reply With Quote #3

    added a small update ;)

    users radio station choices can be advertised to the whole server
    __________________
    dubbeh is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 08-03-2007 , 15:11   Re: Radio - v1.0.0.0
    Reply With Quote #4

    Look up the command:RegConsoleCmd

    This would automatically create the !radio and /radio commands for chat and still allow access for "console" access by doing "sm_radio".
    __________________
    Sourcemod Plugin Author and Plugin Approver
    "The correct way is MAXPLAYERS + 1"
    I will not take bugs/new idea reports over the forums. Please use the issue list.
    ^BuGs^ is offline
    dubbeh
    Senior Member
    Join Date: Jul 2007
    Location: UK
    Old 08-03-2007 , 16:10   Re: Radio - v1.0.0.0
    Reply With Quote #5

    Thanks for the info bugs

    I'll have an update out soon ;)
    __________________
    dubbeh is offline
    Extreme_One
    Veteran Member
    Join Date: Nov 2006
    Old 08-04-2007 , 09:53   Re: Radio
    Reply With Quote #6

    Great plugin!

    The menu system is borked though. If you go back and forward through the next/ prev menus the listings change.

    Originally reported here
    __________________
    Extreme_One is offline
    dubbeh
    Senior Member
    Join Date: Jul 2007
    Location: UK
    Old 08-06-2007 , 04:25   Re: Radio
    Reply With Quote #7

    Made a slight change in how it formats the array location from "%x" to "%d". Hopefully it fixes the menu corruption bug
    __________________
    dubbeh is offline
    [Arnold]
    Senior Member
    Join Date: May 2004
    Location: Hannover, Germany
    Old 08-06-2007 , 05:40   Re: Radio
    Reply With Quote #8

    Great plugin, thx! One thing is missing, people need to be given the opportunity to turn the radio off again!
    __________________
    [Arnold] is offline
    Send a message via ICQ to [Arnold]
    dubbeh
    Senior Member
    Join Date: Jul 2007
    Location: UK
    Old 08-06-2007 , 09:12   Re: Radio
    Reply With Quote #9

    i was doing it the hard way by selecting the station again & pressing stop in wmp

    I'll see if i can find a more efficient way in the next update ;)
    __________________
    dubbeh is offline
    [Arnold]
    Senior Member
    Join Date: May 2004
    Location: Hannover, Germany
    Old 08-06-2007 , 16:31   Re: Radio
    Reply With Quote #10

    Ok, it's much simpler to just make a menu entry with an empty html page like this. Maybe you just take that hint up in your sample config (and not my html page, please :-) ).

    Arnold
    __________________
    [Arnold] is offline
    Send a message via ICQ to [Arnold]
    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 05:36.


    Powered by vBulletin® Version 3.8.1
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
    Theme made by Freecode Sponsored by Layered Technologies