View Single Post
Author Message
Alienmario
Senior Member
Join Date: Aug 2013
Old 05-14-2015 , 19:06   [ANY] SoundCloud ( v1.7.3 Updated 7/10/2017 )
Reply With Quote #1

Lets players listen to any music from soundcloud in the background.
Possible replacement for the grooveshark plugin.

Player Commands:
Quote:
  • !sc - Play a song on soundcloud. Format: !sc song_name
  • !scnext - Plays next song from last played song
  • !sclisten - Listen to current song set by admin (with !scset).
  • !scstop - Stops song playback
  • !scvol, !scvolume - Sets soundcloud volume (0-10). This is saved in clientprefs (see databases.cfg)
  • !scopen, !scbring - Opens the playing window
  • !schelp - Prints out plugin commands in chat
Admin Commands (kick flag) :
Quote:
  • !scall - Play a song on soundcloud to all players. Format: !scall song_name
  • !scset - Sets the song that others can !sclisten to. Format: !scset song_name
  • !scstopall - Stops song playback for everyone
Cvars:
Quote:
sm_soundcloud_version Plugin version
sm_sc_url yourhost.com/soundcloud.php Soundcloud php script location. Needs to follow the default format
sm_sc_visible [def=0] 1 = makes the window popup, 0 = plays in background
sm_sc_volume [def=3] 0-10 default volume

Installation:
Drop soundcloud.smx in addons/sourcemod/plugins.
You will need to host the included php script and then set sm_sc_url to match your host (must match the default format) in server.cfg
You can use any free web-host you can find that supports PHP.

To verify your php script is hosted correctly, in your browser go to yourhost.com/soundcloud.php?search=epic%20sax
Attached Files
File Type: sp Get Plugin or Get Source (soundcloud.sp - 2223 views - 12.9 KB)
File Type: zip soundcloud.zip (869 Bytes, 564 views)

Last edited by Alienmario; 12-02-2018 at 11:57. Reason: Updated
Alienmario is offline