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] Server Redirect - A full featured server listing/hoper (v0.1.0, 18/01/2015)


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

Napisano 18.01.2015 20:01

<!-- BEGIN TEMPLATE: postbit_external -->
<div><u><b>Server Redirect:</b></u><br />This plugin is a server advertisment system. It allows players to list all your servers with detailed informations by hitting <b>!servers</b> (or <b>!list</b>, <b>!hop</b>) in chat.<br />It supports periodic advertising of servers and <b>!follow</b> command to follow a player that just switched servers.<br />All displayed informations are live data and include server name, current map, current players and player list.<br />It is compatible with a modded version of <b>H-Reserved</b> (<a href="https://forums.allie...d.php?p=541827"target="_blank">https://forums.allie...hp?p=541827</a>) to redirect players to your server list instead of kicking them.<br /><br /><b>Do you like my work?</b><br />If you want to reward me for my work, or the help I can provide on this thread, feel free to make a donation<br /><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=MBLAU4B3BK9J2" target="_blank"><img src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" alt="" /></a><br /><br /><u><b>Plugin features</b>:</u><br /><ul><li>Servers listing with !servers, !list, !hop commands</li>
<li>Live server information from A2S queries</li>
<li>Information cache in mySQL (configurable queries cooldown)</li>
<li>Automatic mySQL table creation</li>
<li>Automatic mySQL server registering</li>
<li>Server grouping</li>
<li>Perioding servers advertising</li>
<li>Configurable password exposition</li>
<li>Modular connect drop:<ul><li>On chat with a steam://connect/ link</li>
<li>In console</li>
<li>With a Connect Box (if supported by the mod)</li>
<li>Through a steam bot invitation</li>
</ul></li>
<li>Uses an internal paginated panels API for menus readability</li>
<li>Player redirect instead of kick on slot reservation (using a modded H-Reserved plugin)</li>
<li>Automatic table cleanup</li>
</ul><br /><u><b>Requirements</b></u><ul><li>Counter-Strike: Global Offensive</li>
<li> SourceMod 1.6.3+ (Not tested below)</li>
<li>(Extension) Sockets <a href="https://forums.allie...d.php?t=180114"target="_blank">https://forums.allie...=67640</a></li>
<li>A mySQL server</li>
<li>Cross-server UDP access to game port (for A2S queries)</li>
<li>(Optionnaly) Cross-server RCON access (for !follow advertisement)</li>
</ul><br /><br /><br /><br /><u><b>How to install?</b></u><br /><ol style="list-style-type: decimal"><li>Setup a mySQL table, and grant a user all priviledges on it</li>
<li>Edit <i>&lt;soucemod&gt;/configs/databases.cfg </i>and add a database configuration named <b>redirect</b>; fill informations with the table/user/password setup in 1.</li>
<li>Unzip <i>redirect.zip</i> file into your sourcemod directory.</li>
<li>Choose which module you want and enable/disable them (see <i>Modules</i>)</li>
<li>Load the plugin (by <i>sm plugins load</i> or changing level or restarting the server) and join the server to ensure that plugin is started</li>
<li>Edit the config file related to your server instance (see <i>Configuration files</i>)</li>
</ol><u><b><br /><br />Configuration files:<br /></b></u>The plugin automatically generates one configuration file per server instance.<br />The configuration files are located in &lt;mod&gt;/cfg/redirect/<br />Each file name is the server IP and port where all dots/collon have been replaced by the underline char, like this:<br /><i>&lt;mod&gt;/cfg/redirect/92_75_125_63_27015.cfg</i><br /><br />Why this? Because lot of people run several server instances in the same install folder, and the majority of the plugin Cvar depend of the server instance.<br />For example <i>redirect_server_short_hostname</i> should be different for each server.<br /><br />One good thing to do is start each server with the plugin activated, then go into the cfg/redirect/ folder to edit the server specific cvars:<br /><ul><li><i>redirect_register_server</i> =&gt; if set to 0 server will be removed from DB and won't be seen by others. Note that you should use server groups if you want to hide the server, more than not registering it</li>
<li><i>redirect_server_order</i> =&gt; Set this to define a server display order. That same order is used for periodic advertisement</li>
<li><i>redirect_server_short_hostname</i> =&gt; Use this to set a short hostname. If not set, the plugin use the server hostname, but these are often too long and hardly readable</li>
<li><i>redirect_autocleanup_db</i> =&gt; If you want to cleanup the database automatically (remove unreachable servers and cleanup users that switched servers), this has to be activated in only one server instance (to reduce mySQL load)</li>
<li>And groups Cvars (see below)</li>
</ul><br /><br /> <u><b>Server groups:<br /></b></u>The plugin supports advanced server grouping, for example you can setup a public group, and a private group where password is exposed for fast server switch of community members. You can also group by game type, and create gateways between groups.<br /><br />The first thing to know is that each mod forms a macro group, and it is not possible to list/advertise server from other macro groups. This means that you can use the same database for TF2/CSS/CSGO servers, and on the CSGO server you will never see TF2/CSS servers.<br /><br />Groups are defined with the following cvars:<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;"><!-- 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">CVAR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DEFAULT&nbsp; DESCRIPTION<br />redirect_my_groups&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp; &nbsp; Groups this server belongs to (each char is a group)<br />redirect_show_in_groups&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp; &nbsp; Groups where this server is listed by !server command<br />redirect_expose_pw_for_groups&nbsp; &nbsp; &quot;&quot;&nbsp; &nbsp; &nbsp; Groups where this server&nbsp; expose it's sv_password (if set). Note that password is visible to&nbsp; players that select the server<br />redirect_advertise_in_groups&nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp; &nbsp; Groups where this server is advertised</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br /><br />Each group is defined by a char that can be anything. Default group is <b>A</b>. <br />Using the default Cvar settings <br /><ul><li>all servers are in group A (<i>redirect_my_groups=A</i>),</li>
<li>they are all visible in group A (<i>redirect_show_in_groups=A</i>)</li>
<li>no server password is exposed (<i>redirect_expose_pw_for_groups is empty</i>)</li>
<li>all servers are advertised in group A (<i>redirect_advertise_in_groups=A</i>)</li>
</ul>Each of there Cvar can old an indefinite number of char and you can define as many groups as you can.<br /><br /><br /><u><b>Modules:</b></u><br />There are currently 4 modules that can be enabled or disabled depending on how you wish to give the connection information to the player:<br /><ul><li><i>redirect_askconnect_chat.smx</i> =&gt; Gives the connect infomation in chat with a steam link that is intended to be copy/pasted into the steam browser</li>
<li><i>redirect_askconnect_console.smx</i> =&gt; Gives the connect information in the console and indicates in chat that infos are available in the console</li>
<li><i>redirect_askconnect_connectbox.smx</i> =&gt; Ask client to connect through a connect Box (F3 bind to accept by default). This feature has been disabled by valve on many games but this is the cleanest way, check if it works</li>
<li><i>redirect_askconnect_steambot.smx</i> =&gt; Gives the steam connect link in a steam chat. Players can click on it to connect. This requires to setup steambot first</li>
</ul>By default <i>chat </i>and <i>console </i>modules are enabled. You can disable them by moving them to plugins/disabled.<br />Whereas <i>connectbox </i>and <i>steambot </i>modules are disabled by default (in plugins/disabled folder). Move them to plugins folder to enable them.<br /><br /><br /><br /><u><b>Instaling the Steam bot</b></u><i><b>:<br /><font color="Red">TBD</font><br /><br /><br /></b></i><u><b>Slot reservation (H-reserved Slots):</b></u><br />This plugin is available with a modded version of H-Reserved (advanced reserved slot) <a href="https://forums.allie...d.php?p=541827"target="_blank">https://forums.allie...p=541827</a><br />The modded version is attached to this post.<br />When H-Reserved drops a player, instead of kicking him, the modded version locks him to spectator team and displays the !servers list to switch him to a non-full server.<br />To enable this behavior the followinh H-Reserved settings are mandatory:<br /><ul><li>sm_hreserved_drop_method shall be set to 2</li>
<li>sm_hreserved_redirect_target shall be empty (set to &quot;&quot;)</li>
</ul>Other Cvar are described in H-Reserve thread.<br />I just changed sm_hreserved_redirect_timer to 30 seconds by default to give time to choose a server.<br /><br /><br /><br /><br /><u><b>Cvars:</b></u><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;"><!-- 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">CVAR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DEFAULT&nbsp; DESCRIPTION<br />redirect_register_server&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; Automatically register server in database.<br />redirect_server_order&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; Server display order, lowest value are displayed first.<br />redirect_server_short_hostname&nbsp; &nbsp; &quot;&quot;&nbsp; &nbsp; &nbsp; If non empty, use this name instead of hostname.<br /><br />redirect_my_groups&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp; &nbsp; Groups this server belongs to (each char is a group)<br />redirect_show_in_groups&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp; &nbsp; Groups where this server is listed by !server command<br />redirect_expose_pw_for_groups&nbsp; &nbsp; &quot;&quot;&nbsp; &nbsp; &nbsp; Groups where this server expose it's sv_password (if set). Note that password is visible to players that select the server<br /><br />redirect_advertise_in_groups&nbsp; &nbsp; &nbsp; A&nbsp; &nbsp; &nbsp; &nbsp; Groups where this server is advertised<br />redirect_advertise_me_min_players 2&nbsp; &nbsp; &nbsp; &nbsp; Minimum players to advertise this server<br />redirect_advertise_me_min_players 2&nbsp; &nbsp; &nbsp; &nbsp; Minimum free slots to advertise this server<br />redirect_advertise_period&nbsp; &nbsp; &nbsp; &nbsp; 120.0&nbsp; &nbsp; Cycling server advertisement period. Set to -1 to disable.<br />redirect_advertise_follow&nbsp; &nbsp; &nbsp; &nbsp; 1&nbsp; &nbsp; &nbsp; &nbsp; Advertise !follow command when a player switched servers.<br /><br />redirect_follow_timeout&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2&nbsp; &nbsp; &nbsp; &nbsp; Maximum follow advertise time in minutes after a player choose a server.<br />redirect_server_queries_cooldown&nbsp; 5&nbsp; &nbsp; &nbsp; &nbsp; Minimum time seconds between each server queries<br />redirect_autocleanup_db&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; Automatically cleanup old database entries.</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br /><br /><br /><u><b>Commands:</b></u><br /><u>Clients:</u><br /><b>sm_servers</b> or<b> !</b><b>servers</b><br /><b>sm_list </b>or <b>!</b><b>list</b> <br /><b>sm_hop</b> or <b>!hop<br /></b>-&gt; Display server list<br /><br /><b>sm_follow</b> or <b>!</b><b>follow </b><br />-&gt; Follow previously transfered players<br /><br /><u>Server </u><br /><b>redirect_lockout &lt;userId&gt; &quot;&lt;Reason&gt;&quot;<br /> -</b> Locks a player out of game and display server list<br /> - This is used by the modded hreserve_slots plugin to transfert a player upon reserved slot<br /><br /><b>redirect_notify_confirm &quot;&lt;steamId&gt;&quot; &quot;&lt;name&gt;&quot; &lt;players&gt; &lt;bots&gt; &lt;maxplayers&gt; &quot;&lt;map&gt;&quot; &quot;&lt;hostname&gt;&quot;</b><br /> - Used internally between server to advertise &quot;!follow&quot; when a player has switched server <br /><br /><br /><br /><u><b>TODO:</b></u><br />- Add a lockout mode for server migration<br />- Add a server info proxy (internal rework)<br /><u><b> <br /><br />Changelog:</b></u><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;"><!-- 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"><b>v0.1.0 18/01/2015:</b><br />- Initial release</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></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...attach/zip.gif"alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...edirect.zip</a>(91.3 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie...attach/smx.gif"alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...edirect.smx</a>(10.5 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...teambot.zip</a>(2.8 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