Quote:
Originally Posted by csa.lt
And how to make this plugin don`t stop play radio on every new map?
|
That can be easily fixed with CS:GO, need to save clients radio choice before map changes, then load them back up after new map has reload. Would be easy to add to the plugin.
Been running some tests today, seems like it's impossible to run a custom php script that wraps over the MOTD, it basically blocks all other input except for the MOTD panel.
Code:
<html>
<head>
<script type="text/javascript">
window.onload = function()
{
var popup=window.open("<?php echo $szStationURL = $_GET['radiourl']; ?>","SourceMod Radio","height=720,width=1280");
};
</script>
</head>
<body>
</body>
</html>
Called it inside game with
www.domain.com/radiofix.php?radiourl=www.customradio.com/play.php=station, I know my PHP sucks too xD
Will have to use it for a wrap around in the sm_browse command in CS:GO, server admins can host it on their own and not have to worry about any malicious 3rd party site.
The radio player seems to work ok, sometimes you might need to wait a little for the station to load up and can only use direct playlists, that will auto-play. Because with CS:GO the MOTD panel doesn't display anymore, unless you use the javascript popup window trick, but then all game input gets blocked. So using it as a way to play the radio is infeasible, moment you close the MOTD panel, station stops playing.
Edit:
Quick thing i forgot to mention, if you're running the radio plugin on CS:GO - remove "All Channels" because only direct playing links will work
__________________