<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=ForwardClient</id>
		<title>ForwardClient - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=ForwardClient"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=ForwardClient&amp;action=history"/>
		<updated>2026-05-26T00:17:12Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.soldat.pl/index.php?title=ForwardClient&amp;diff=53&amp;oldid=prev</id>
		<title>Freeman: Created page with &quot;===Scripting Manual Style===  ''procedure ForwardClient(SrcIP: string; SrcPort: integer; TargetIP: string; TargetPort: integer; Message: string);''    '''Parameter Info:'''   ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=ForwardClient&amp;diff=53&amp;oldid=prev"/>
				<updated>2012-08-15T08:24:14Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===Scripting Manual Style===  &amp;#039;&amp;#039;procedure ForwardClient(SrcIP: string; SrcPort: integer; TargetIP: string; TargetPort: integer; Message: string);&amp;#039;&amp;#039;    &amp;#039;&amp;#039;&amp;#039;Parameter Info:&amp;#039;&amp;#039;&amp;#039;   ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===Scripting Manual Style===&lt;br /&gt;
 ''procedure ForwardClient(SrcIP: string; SrcPort: integer; TargetIP: string; TargetPort: integer; Message: string);''&lt;br /&gt;
 &lt;br /&gt;
 '''Parameter Info:'''&lt;br /&gt;
  SrcIP (String): Player IP&lt;br /&gt;
  SrcPort (Integer): Player port&lt;br /&gt;
  TargetIP (String): Server IP to redirect to&lt;br /&gt;
  TargetPort (Integer): Server port to redirect to&lt;br /&gt;
  Message (String): Message to be displayed in the client popup&lt;br /&gt;
 &lt;br /&gt;
 '''Description:'''&lt;br /&gt;
  Disconnects a player, fills in the IP and port slots, and asks if they want to join the server.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' You can get the ''SrcPort'' of a connected player using ''GetPlayerStat(ID, 'port')''.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' TargetIP '''must''' be an IP address, hostnames don't work.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;pascal&amp;quot;&amp;gt;function OnRequestGame(IP: string; State: integer): integer;&lt;br /&gt;
begin&lt;br /&gt;
  // ask the person who join to join 127.0.0.1:23074, with a message for him&lt;br /&gt;
  ForwardClient(IP, 23073, '127.0.0.1', 23074, 'Join this server instead!');&lt;br /&gt;
  Result := State;&lt;br /&gt;
end;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Scripting]][[Category:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Freeman</name></author>	</entry>

	</feed>