Hi !
This is a pretty simple, easy to use plugin that allows users to share, view web urls without leaving the game. Since, i couldn't find anyway to make urls clickable, i had to handle them via commands
User Commands- sm_slink <url without http:// or https:// prefix> - Shares a WebURL.
- sm_vlink <playername or its few characters> - Views the shared WebURL.
- sm_clink - deletes the shared link
Admin Commands- lm_enabled <0|1> Activates or disables the plugin.
- lm_notification <0|1> Activates or disables the notification to all players when someone shares a link.
Requirements- PHP WebServer - Since Valve screwed up the ShowMOTDPanel() function. I had to find a solution. Found it here. Thats why you have to host a php file in your web server.
Settings File- enabled - Plugin enabled status
- ShareNotification - Notification Status
- WebURL - the address that your php file located.
- FileName - PHP File name
- Parameter - Parameter for querystring
If you are not sure what FileName and Parameter options are, just leave them like that and don't change anything in php file.
PHP Code:
"LinkManager"
{
"Settings"
{
"enabled" "1"
"ShareNotification" "0"
"WebURL" "http://mywebsite.com"
"FileName" "go.php"
"Parameter" "url"
}
}
Amazingly serious footnote: This is my first plugin, i probably made some mistakes, please let me know the parts that i can do better.
Cheerz