I only changed this to work with the new Tinysong API.
YOU NEED A TINYSONG API KEY, OBTAINABLE AT http://tinysong.com/api
Original Post at http://forums.alliedmods.net/showthread.php?t=142920
Listen to songs in-game from Grooveshark's massive music database.
This plugin will allow you to play specific songs in game, and it will broadcast the song information in chat, which includes: the name of the song, artist, and a Song ID that other players can use to listen to the same song.
sm_grooveshark (No Parameters) - Launch Grooveshark.com in MOTD browser for manual usage. *
sm_grooveshark <Name of Song> - Play song that best matches your query
sm_gs <Name of Song> - Alias for sm_grooveshark
sm_gsstop - Stop currently playing song
sm_gsplay - Replay the last song you selected with sm_grooveshark
sm_gscurrent - Displays information about the last song you selected with sm_grooveshark
|N| Octo-dhd - Thanks for the snippet.
All the jumpers that helped beta test.
Grooveshark and TinySong - Thanks for being awesome!
There is a pretty hard client-side lag every time you attempt to play a song. As far as I can tell it seems to be caused by the outdated MOTD browser trying to load the fancy Grooveshark website. But it only lasts a few seconds so it's not the worst thing in the world.
* This works alright to queue up a few songs instead of one at a time, but it won't display song information in chat. Also, you won't be able to go back to the page (to modify your queue for example) without the page reloading. Maybe I'll add the ability to open the motd panel without loading anything (if possible) so you can modify your queue.
Possible issues with L4D2. Workaround: Type !gs in chat with no parameters first, then close the motd window and you should be able to use it normally.
If you enjoy the content delivered by this plugin, you should check out Grooveshark.com when you aren't in game, to support their site (banner ads). Maybe even consider VIP for $3/mo. I personally have VIP just so I could use their awesome Android App, but there are other benefits too. (Note: I am not affiliated with the site and any bits paid to Grooveshark has nothing to do with me or this plugin).
I've only tested this plugin on TF2, but I don't see any reason why it wouldn't work on all mods.
* Added sm_gsstop command to stop the music.
* Initial public release
Cvars added : sm_tinysong_api_key
Absolutely required for the plugin to properly work.
Changed the version cvar.