<?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=TPlayers.GetByIP</id>
		<title>TPlayers.GetByIP - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=TPlayers.GetByIP"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TPlayers.GetByIP&amp;action=history"/>
		<updated>2026-05-26T05:30:42Z</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=TPlayers.GetByIP&amp;diff=683&amp;oldid=prev</id>
		<title>Mighty: new page</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=TPlayers.GetByIP&amp;diff=683&amp;oldid=prev"/>
				<updated>2013-07-25T06:46:43Z</updated>
		
		<summary type="html">&lt;p&gt;new page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; '''''function GetByIP(IP: string): [[TActivePlayer]]'''''&lt;br /&gt;
  IP: IP to be searched for&lt;br /&gt;
&lt;br /&gt;
==Description==&lt;br /&gt;
Returns a [[TActivePlayer]] whose IP is equal to the searched one.&amp;lt;br&amp;gt;&lt;br /&gt;
Returns '''Nil''' if a player was not found.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Warning''': Trying to work on a &amp;quot;Nil-player&amp;quot; (result of the function when a player was not found) might throw exceptions or be critical. Remember to make sure a player was found before you try to do anything with him.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Example is trying to find an IP among players and kicks a player if he was found.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
const&lt;br /&gt;
  BADGUY = '192.168.1.1';&lt;br /&gt;
var &lt;br /&gt;
  p: TActivePlayer;&lt;br /&gt;
begin&lt;br /&gt;
  p := Players.GetByIP(BADGUY);&lt;br /&gt;
  if p &amp;lt;&amp;gt; Nil then // important&lt;br /&gt;
    p.Kick();&lt;br /&gt;
end;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:TPlayers]]&lt;/div&gt;</summary>
		<author><name>Mighty</name></author>	</entry>

	</feed>