<div>Hi !<br /><br />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<br /><br /><font size="4"><font face="Book Antiqua">User Commands</font></font><ul><li>sm_slink <url without http:// or https:// prefix> - Shares a WebURL.</li>
<li>sm_vlink <playername or its few characters> - Views the shared WebURL.</li>
<li>sm_clink - deletes the shared link</li>
</ul><font size="4"><font face="Book Antiqua">Admin Commands</font></font><ul><li>lm_enabled <0|1> Activates or disables the plugin.</li>
<li>lm_notification <0|1> Activates or disables the notification to all players when someone shares a link.</li>
</ul><font size="4"><font face="Book Antiqua">Requirements</font></font><ul><li> PHP WebServer - Since Valve screwed up the ShowMOTDPanel() function. I had to find a solution. Found it <a href="https://forums.allie...38;postcount=4"target="_blank">here</a>. Thats why you have to host a php file in your web server.</li>
</ul><font size="4"><font face="Book Antiqua">Settings File</font></font><ul><li>enabled - Plugin enabled status</li>
<li>ShareNotification - Notification Status</li>
<li>WebURL - the address that your php file located.</li>
<li>FileName - PHP File name</li>
<li>Parameter - Parameter for querystring</li>
</ul>If you are not sure what FileName and Parameter options are, just leave them like that and don't change anything in php file.<br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #DD0000">"LinkManager"
<br /></span><span style="color: #007700">{
<br /> </span><span style="color: #DD0000">"Settings"
<br /> </span><span style="color: #007700">{
<br /> </span><span style="color: #DD0000">"enabled" "1"
<br /> "ShareNotification" "0"
<br /> "WebURL" "http://mywebsite.com"
<br /> "FileName" "go.php"
<br /> "Parameter" "url"
<br /> </span><span style="color: #007700">}
<br />}
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>Amazingly serious footnote: This is my first plugin, i probably made some mistakes, please let me know the parts that i can do better.<br /><br />Cheerz</div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><img class="inlineimg" src="https://forums.allie...attach/zip.gif"alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="https://forums.allie...manager.zip</a>(11.4 KB)
</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.sourcemod...62"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1448575364">GetSource</a> (linkmanager.sp - 6.3 KB)
</td>
</tr>
</table>
</fieldset>
</div>
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
[Any]Link Manager
Temat rozp.
Adminek AMXX.PL
, 26.11.2015 23:04
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych