<!-- BEGIN TEMPLATE: postbit_external -->
<div><font size="6"><b><div align="center">adminWatch v1.0</div></b></font><br /><br /><b><font size="4"><font color="orange">Description:</font></font></b><br />I have been developing small little plugins for my community and I thought I should share this one. Modify how you would like, just please give credit when necessary. What this plugin does is for a certain admin flag, it tracks and stores the total minutes an admin is connected to the server and the total time played (non-spec) in the database. This can be useful for many reasons such as in my case I like to track how active my admins in my servers. I will be requesting suggestions and I will update this plugin when needed, so any suggestions are more than welcome.<br /><br /><b><font size="4"><font color="orange">Cvars:</font></font></b><br /><!-- BEGIN TEMPLATE: bbcode_php_printable -->
<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">sm_adminwatch_version </span><span style="color: #FF8000">// Prints the plugin version
<br /></span><span style="color: #0000BB">sm_adminwatch_enabled </span><span style="color: #007700"><</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">0</span><span style="color: #007700">> </span><span style="color: #FF8000">// Enables or disables the plugin
<br /></span><span style="color: #0000BB">sm_adminwatch_adminflag </span><span style="color: #007700"><</span><span style="color: #0000BB">1</span><span style="color: #007700">/</span><span style="color: #0000BB">FLAGS</span><span style="color: #007700">> </span><span style="color: #FF8000">// 1 - All Admins, FLAGS = Flags to use such as "z" being root
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><b><font size="4"><font color="orange">Install:</font></font></b><ol style="list-style-type: decimal"><li>Download the latest version of adminwatch.smx.</li>
<li>Upload the plugin to your sourcemod/plugins/ directory.</li>
<li>Add a database listing in /sourcemod/configs/databases.cfg with "adminwatch" (Example Below).</li>
<li>Restart your server or use "sm plugins load adminwatch" in rcon.</li>
<li>Edit the config in /cfg/sourcemod/adminwatch.cfg.</li>
<li>Voila! You're good to go.</li>
</ol><br /><b><font size="4"><font color="orange">Databases.cfg Example:</font></font></b><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left"> "adminwatch"<br /> {<br /> "driver" "default"<br /> "host" "localhost"<br /> "database" "database"<br /> "user" "username"<br /> "pass" "password"<br /> //"timeout" "0"<br /> //"port" "0"<br /> }</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b><font size="4"><font color="orange">Bugs:</font></font></b><ul><li>None</li>
</ul><br /><b><font size="4"><font color="orange">ToDo:</font></font></b><ul><li>Display admin stats to root using in-game menu.</li>
</ul><br /><b><font size="4"><font color="orange">Version Log:</font></font></b><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br /><b>1.0</b><br />- Initial release.<br /></div>
</div>
</div></div>
<br /> <div style="padding:6px">
<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.sourcemod...?file_id=120891"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1370471690">Get Source</a> (adminwatch.sp - 8.7 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>
</div>
<!-- END TEMPLATE: postbit_external -->
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] adminWatch (v1.0)
Temat rozp. Adminek AMXX.PL, 05.06.2013 23:35
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych