<!-- 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"> "reguservoiceenabler"<br /> {<br /> "driver" "mysql"<br /> "host" ""<br /> "database" ""<br /> "user" ""<br /> "pass" ""<br /> "timeout" "30"<br /> "port" "3306"<br /> }</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 1<br />reguservoiceenabler_query ""<br />reguservoiceenabler_muteondbfailure 1<br />reguservoiceenabler_steamidformat 1<br />reguservoiceenabler_alwaysshowmessage 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 "76561197968573709"<br />2 - Steam2 rendered format, ex "STEAM_1:1:4153990"<br />3 - Steam3 rendered format, ex "[U:1:8307981]"<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 <reguservoiceenabler>)<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 /> * Checks if the clients steamid is registered on your forums<br /> *<br /> * @param client The client index to check<br /> * @return Returns true if the client has registered<br /> */<br />functag public bool:IsClientRegisteredOnForums(client);<br /><br />/**<br /> * Called when the clients forum registration status has been retrieved.<br /> *<br /> * @param client The client index<br /> * @param registered The clients forum registration status<br /> */<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">"Phrases"<br />{<br /> "IsMutedChatText"<br /> {<br /> "en" "[SM] You need to register on our forums before you can use your microphone."<br /> }<br /> "IsMutedCenterText"<br /> {<br /> "en" "You have been muted."<br /> }<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ł
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] Registered User Voice Enabler
Temat rozp. Adminek AMXX.PL, 01.01.2015 01:14
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych