View Single Post
Electr000999
Senior Member
Join Date: Aug 2011
Old 05-21-2015 , 03:32   Re: [ANY] SoundCloud
Reply With Quote #11

good start, i am start use your plugin on my servers.
  • please add change track pos with view current pos in menu
  • cvar default for sound volume for newbies without record in clientprefs
  • add plugin options in clientprefs settings menu (!settings) with volume and motd visible:

for example how it..
Code:
start at OnPluginStart..
         volume_cookie = RegClientCookie("sm_soundcloud_volume", "Soundcloud player volume  preference (0-10)", CookieAccess_Protected);
	SetCookieMenuItem(Menu_OptionsCookie, 0, "Soundcloud");
}

public Menu_OptionsCookie(client, CookieMenuAction:action, any:info, String:buffer[], maxlen) // sm_settings command.
{
	switch(action)
	{
		case CookieMenuAction_DisplayOption:
			Format(buffer, maxlen, "Soundcloud", client);
		case CookieMenuAction_SelectOption:
			ShowOptionsMenu(client);
	}
}

ShowOptionsMenu(client)
{
	ETC...
}

Last edited by Electr000999; 05-21-2015 at 03:43.
Electr000999 is offline
Send a message via Skype™ to Electr000999