Skocz do zawartości

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.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[Any][SQL]VIP-Manager


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 476
  • Lokalizacja:AMXX.PL
Offline

Napisano 02.08.2014 18:56

<!-- BEGIN TEMPLATE: postbit_external -->
<div><font size="5">Description</font><br /><br />Add VIPs for a specified days to your server.<br />Added VIPs are stored in the sourcemod SQL admin database with flag 'a'.<br /><br /><font size="5">Features</font><ul><li>Automatic VIP removing</li>
<li>Add, substract or set the time for VIPs</li>
<li>Execution of custom SQL queries on VIP adding or removing</li>
<li>Easy ingame VIP editing</li>
<li>Logging of all VIPs changes</li>
</ul><br /><font size="5">Installation</font><br /><br /><b>1.</b> Setup sourcemod sql admins <a href="https://wiki.alliedm...mins_(SourceMod)" target="_blank">(instructions)</a>.<br /><br /><b>2.</b> Execute the vip-manager.sql file on your database. Use a gui like phpmyadmin or the SQL shell.<br /><br /><b>3.</b> Put the VIP-Manager files in the sourcemod folder.<br />VIP-Manager.smx -&gt; &quot;addons/sourcemod/plugins&quot;<br />VIP-Manager.cfg -&gt; &quot;cfg/sourcemod&quot;<br />VIP-Manager-OnAdd.cfg -&gt; &quot;cfg/sourcemod&quot;<br />VIP-Manager-OnRemove.cfg -&gt; &quot;cfg/sourcemod&quot;<br /><br /><b>4.</b> Configure VIP-Manager.<br /><br /><b>5.</b> Configure your plugins for your VIPs by using the reservation (a) flag.<br /><br /><font size="5">CVars</font><br /><br /><b>vipm_check_activated (0-1, default 1)</b>: Activating checking for outdated VIPs<br /><b>vipm_check_time (1&lt;, default 720)</b>: Time duration, in minutes, to check for outdated VIPs<br /><b>vipm_log (0-1, default 0)</b>: Activate logging. Logs all VIP changes<br /><br /><font size="5">Commands</font><br /><br /><font size="3">For all commands you need the admin root flag!</font><br /><b>vipm_help </b> | Show the help text.<br /><b>vipm_add &lt;name&gt; &lt;days&gt; [&quot;SteamID&quot;]</b> | Adds a new VIP for give days.<br /><b>vipm_rm &lt;name&gt;</b> | Remove a VIP.<br /><b>vipm_time &lt;set|add|sub&gt; &lt;&quot;name&quot;&gt; &lt;time&gt;</b> | Change time of a VIP.<br /><b>vipm_check </b> | Checks for outdated VIPs.<br /><br /><font size="5">Custom SQL queries</font><br /><br />If you have other plugins that use SQL and have uses for your VIP, for example a joinsound plugin that stores all soundfile paths for the given steamid you don't need to add the entries separately.<br /><br />Add the SQL queries into VIP-Manager-OnAdd.cfg and VIP-Manager-OnRemove.cfg. (One line is one query)<br />VIP-Manager have some placeholder which can be used in your queries.<br /><b>{steamid}</b>: replace with the SteamID of the added or removed VIP<br /><b>{name}</b>: replace with the name of the added or removed VIP<br /><b>{time}</b>: replace with the time of the added VIP<br /><br /><font size="5">Source Code</font><br />The source code is available under <a href="https://github.com/ShadowMen/VIPManager" target="_blank">github</a>.<br />Feel free to fork and edit for your purpose!<br /><br /><b>Note</b><br />I don't have much knowledge with sourcemod plugins, so there can be some ugly solutions in my code.<br />If you have a nice solution then please make an issue or a pull request on <a href="https://github.com/ShadowMen/VIPManager" target="_blank">github</a>.</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/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=1407008630">VIP-Manager.zip</a> (17.2 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- 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=136522"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1407008630">Get Source</a> (VIP-Manager.sp - 24.1 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>


</div>

<!-- END TEMPLATE: postbit_external -->

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych