<!-- BEGIN TEMPLATE: postbit_external -->
<div>I just had to move servers to a new IP. So I setup a VPS and bound my old IP's to it, setup a 2 slot server mimicing the old ones. Threw this plugin on them and added this line to the server.cfg file.<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">sm_autoredirect_addr "127.0.0.1:27015"</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Obviously replacing the localhost with the new IP.<br /><br />When a player joins the server they will be asked to connect to the new server. If they do not accept within the time limit, they will be kicked.<br /><br />This is a direct mod of this plugin: <a href="https://forums.allie...535645?p=535645" target="_blank">https://forums.allie...p=535645</a><br /><br />That plugin's functionality is still entirely intact.<br /><br />Cvars:<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">sm_autoredirect_version: Plugin version<br />sm_autoredirect: 1/0 Enable/Disable the automated prompt. Default: 1<br />sm_autoredirect_addr: "ip:port" for the server to migrate to.<br />sm_autoredirect_time: Seconds allowed to accept before kick. Default: 25.0<br />sm_autoredirect_reason: Message displayed in the redirect prompt. Also used as the kick message. Default: "Please accept the server redirect prompt!"</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></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...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=133297"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1399502374">Get Source</a> (autoredirect.sp - 4.3 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] Server Migration (Changing IP?)
Temat rozp. Adminek AMXX.PL, 07.05.2014 23:37
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych