<div><font face="Trebuchet MS"><div align="center"><font size="4"><font color="green">qServerinfo [MYSQL]</font><br /><font color="red">v 0.1 by quark</font></font></div><br /><font size="3"><font color="blue">-> Description</font></font><br />This plugin will insert into a MYSQL Database server information as hostname, map and players.<br /><br /><font size="3"><font color="blue">-> Changelog</font></font><br />*0.1 - First release.<br /><br /><font size="3"><font color="blue">-> Cvars</font></font><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"> </span><span style="color: #FF8000">/* SQL CONFIGURATION */<br /><br /></span><span style="color: #0000BB">qSi_host </span><span style="color: #DD0000">"localhost" </span><span style="color: #FF8000">// Host<br /></span><span style="color: #0000BB">qSi_user </span><span style="color: #DD0000">"user" </span><span style="color: #FF8000">// db username<br /></span><span style="color: #0000BB">qSi_pass </span><span style="color: #DD0000">"password" </span><span style="color: #FF8000">// db password<br /></span><span style="color: #0000BB">qSi_db </span><span style="color: #DD0000">"db" </span><span style="color: #FF8000">// db name<br /></span><span style="color: #0000BB">qSi_sid </span><span style="color: #DD0000">"1" </span><span style="color: #FF8000">// Server ID
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><font size="3"><font color="blue">-> Configuration</font></font><br />You can insert the cvars in amxx.cfg or just edit it in plugin.<br /><br /><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"></span><span style="color: #FF8000">//#define IGNORE
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable -->If you uncomment that line, the player counting will ignore HLTV / BOTS.<br /><br /><font size="3"><font color="blue">-> Requirements</font></font><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"></span><span style="color: #FF8000">#include <amxmodx><br />#include <sqlx>
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><font size="3"><font color="blue">-> PHP Script</font></font><br /><br /><a href="http://qserverinfo.pt.vu/" target="_blank">>>>> Live Preview <<<<</a><br /><br />To make it work, you have to edit the following lines:<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">$host</span><span style="color: #007700">=</span><span style="color: #DD0000">"localhost"</span><span style="color: #007700">; </span><span style="color: #FF8000">// Host<br /></span><span style="color: #0000BB">$username</span><span style="color: #007700">=</span><span style="color: #DD0000">"user"</span><span style="color: #007700">; </span><span style="color: #FF8000">// Mysql username<br /></span><span style="color: #0000BB">$password</span><span style="color: #007700">=</span><span style="color: #DD0000">"password"</span><span style="color: #007700">; </span><span style="color: #FF8000">// Mysql password<br /></span><span style="color: #0000BB">$db_name</span><span style="color: #007700">=</span><span style="color: #DD0000">"db"</span><span style="color: #007700">; </span><span style="color: #FF8000">// Database name<br /></span><span style="color: #0000BB">$tbl_name</span><span style="color: #007700">=</span><span style="color: #DD0000">"qserverinfo"</span><span style="color: #007700">; </span><span style="color: #FF8000">// Table name
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>
<!-- END TEMPLATE: bbcode_php_printable --><a href="https://forums.allie...38;d=1377970229" target="_blank">

</ul><br /><font size="3"><font color="blue">-> Contacts</font></font><br />* Steam: <a href="http://steamcommunit...561198055132277" target="_blank">grdPTFMAPS</a><br />* Mail: <a href="mailto:[email protected]">[email protected]</a><br />* Website: <a href="http://www.joserodrigues.tk" target="_blank">www.joserodrigues.tk</a><br /><br /><br /></font></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.../attach/sma.gif" alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.amxmodx.o...?file_id=125092"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1377965561">Get Source</a> (qServerinfo.sma - 6.8 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<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...38;d=1377970184">qserverinfo.zip</a> (179.8 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>
</div>
<!-- END TEMPLATE: postbit_external -->
Wyświetl pełny artykuł