Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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] Registered User Voice Enabler


  • 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:7178
  • Lokalizacja:AMXX.PL
Offline

Napisano 01.01.2015 01:14

<!-- BEGIN TEMPLATE: postbit_external -->
<div><font size="5">[ANY] Registered User Voice Enabler</font><br /><br />This plugin will mute players who have not registered in your forum software. <br /><br />When a player connects, their steamid is matched with a MySQL query to your forum software database. If the steamid is unable to match, the player will be muted.<br /><br />This plugin will never lift a mute, it only applies mutes to unregistered users.<br /><br /><font size="5">Features:</font><br /><br />* The database coding is 100% threaded. There will be no server lag during query executions.<br />* Database failure recovery. The database code is 100% rocksolid including automatic recovery.<br />* Native and Forward for other plugins to listen for / check a clients registration status.<br /><br /><font size="5">Installation:</font><br /><br />Copy the contents of the attached .zip file into your main game directory.<br /><br /><font size="5">Database Setup:</font><br /><br />Add the following entry into Sourcemod's database.cfg<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">&nbsp; &nbsp; &quot;reguservoiceenabler&quot;<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;driver&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;mysql&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;host&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;database&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;user&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;pass&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;timeout&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;30&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;port&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;3306&quot;<br />&nbsp; &nbsp; }</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font size="5"> Config Setup:</font><br /><br />You need to add and configure the following convars to you server's configs (eg. cfg/gamemode_casual_server.cfg).<br /><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">reguservoiceenabler_enabled&nbsp; &nbsp; &nbsp; &nbsp; 1<br />reguservoiceenabler_query&nbsp; &nbsp; &nbsp; &nbsp; &quot;&quot;<br />reguservoiceenabler_muteondbfailure&nbsp; &nbsp; 1<br />reguservoiceenabler_steamidformat&nbsp; &nbsp; 1<br />reguservoiceenabler_alwaysshowmessage&nbsp; &nbsp; &nbsp; 1</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font size="5"><font size="2"><font size="5">SteamID formats are:<font size="2"><br /><br /></font></font> 1 - A SteamID64 (uint64) as a String, ex &quot;76561197968573709&quot;<br />2 - Steam2 rendered format, ex &quot;STEAM_1:1:4153990&quot;<br />3 - Steam3 rendered format, ex &quot;[U:1:8307981]&quot;<br /><br /></font>How do I set the query?<font size="2"><br /><br />Each forum software is different. The second post contains a list of queries based on your forum software and setup.<br /><br /><font size="5">API:</font><br /><br />This plugin contains a native and forward as shown below. (#include &lt;reguservoiceenabler&gt;)<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">/**<br />&nbsp;* Checks if the clients steamid is registered on your forums<br />&nbsp;*<br />&nbsp;* @param client&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The client index to check<br />&nbsp;* @return&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Returns true if the client has registered<br />&nbsp;*/<br />functag public bool:IsClientRegisteredOnForums(client);<br /><br />/**<br />&nbsp;* Called when the clients forum registration status has been retrieved.<br />&nbsp;*<br />&nbsp;* @param client&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; The client index<br />&nbsp;* @param registered&nbsp; &nbsp; &nbsp; &nbsp; The clients forum registration status<br />&nbsp;*/<br />forward OnGotClientRegistrationStatus(client, bool:registered);</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font size="5">How do I change the message which is displayed to users?<font size="2"><br /><br /></font></font> Edit the translation file found at addons/sourcemod/translations/reguservoiceenabler.phrases.txt<br /><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">&quot;Phrases&quot;<br />{<br />&nbsp; &nbsp; &quot;IsMutedChatText&quot;<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;en&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;[SM] You need to register on our forums before you can use your microphone.&quot;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; &quot;IsMutedCenterText&quot;<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;en&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;You have been muted.&quot;<br />&nbsp; &nbsp; }<br />}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></font> <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/zip.gif"alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...enabler.zip</a>(11.7 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