<?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=MovePlayer</id>
		<title>MovePlayer - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.soldat.pl/index.php?action=history&amp;feed=atom&amp;title=MovePlayer"/>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=MovePlayer&amp;action=history"/>
		<updated>2026-05-26T04:00:07Z</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=MovePlayer&amp;diff=98&amp;oldid=prev</id>
		<title>Freeman: Created page with &quot;===From the Scripting Manual===  ''procedure MovePlayer(ID: byte; X, Y: single);''    '''Parameter Info:'''   ID (Byte): Player ID of the target to be moved elsewhere.   X (Si...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.soldat.pl/index.php?title=MovePlayer&amp;diff=98&amp;oldid=prev"/>
				<updated>2012-08-15T09:26:59Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;===From the Scripting Manual===  &amp;#039;&amp;#039;procedure MovePlayer(ID: byte; X, Y: single);&amp;#039;&amp;#039;    &amp;#039;&amp;#039;&amp;#039;Parameter Info:&amp;#039;&amp;#039;&amp;#039;   ID (Byte): Player ID of the target to be moved elsewhere.   X (Si...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===From the Scripting Manual===&lt;br /&gt;
 ''procedure MovePlayer(ID: byte; X, Y: single);''&lt;br /&gt;
 &lt;br /&gt;
 '''Parameter Info:'''&lt;br /&gt;
  ID (Byte): Player ID of the target to be moved elsewhere.&lt;br /&gt;
  X (Single): X coordinate to be moved to.&lt;br /&gt;
  Y (Single): Y coordinate to be moved to.&lt;br /&gt;
 &lt;br /&gt;
 '''Description:'''&lt;br /&gt;
  This function will move player(ID) to the specified location (X/Y) instantly.&lt;br /&gt;
  NOTE: This function will NOT work on bots - only players.&lt;br /&gt;
 &lt;br /&gt;
==Examples==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;pascal&amp;quot;&amp;gt;&lt;br /&gt;
var&lt;br /&gt;
  Temp1, Temp2: string;&lt;br /&gt;
  BlueFlagX, BlueFlagY, RedFlagX, RedFlagY: single;&lt;br /&gt;
begin&lt;br /&gt;
  // This function is Copyright© Nick Cooper - It is displayed here for illustration purposes ONLY&lt;br /&gt;
  // (Code taken from my multi-server script seen @ [eC] Trenchwars/Dodgeball/Climb)&lt;br /&gt;
  if Copy(uppercase(Text), 1, 6) = '/MOVE ' then begin&lt;br /&gt;
    try				// Usage: /move PlayerToMove TargetPlayer (or red/blue for flags)&lt;br /&gt;
      Temp1 := GetPiece(Text, ' ', 2); // Player to be moved&lt;br /&gt;
      Temp2 := GetPiece(Text, ' ', 3); // &amp;quot;PlayerToMove&amp;quot; will be moved to this player's position&lt;br /&gt;
      if (Temp2 = 'red') or (Temp2 = 'blue') then begin&lt;br /&gt;
        // If &amp;quot;TargetPlayer&amp;quot; is set to red/blue, &amp;quot;PlayerToMove&amp;quot; will be moved to the red/blue flag instead&lt;br /&gt;
        if GetPlayerStat(strtoint(Temp1), 'active') = true then begin&lt;br /&gt;
          GetFlagsSpawnXY(BlueFlagX, BlueFlagY, RedFlagX, RedFlagY);&lt;br /&gt;
          WriteConsole(0, GetPlayerStat(strtoint(Temp1), 'name') + ' has been moved by ' + GetPlayerStat(ID, 'name'), RGB(255, 255, 255));&lt;br /&gt;
          // Player will now be moved to the red/blue flag!&lt;br /&gt;
          MovePlayer(strtoint(Temp1), iif(Temp2 = 'red', RedFlagX, BlueFlagX), iif(Temp2 = 'red', RedFlagY, BlueFlagY));&lt;br /&gt;
        end;&lt;br /&gt;
      end else&lt;br /&gt;
        if (GetPlayerStat(strtoint(Temp1), 'active') = true) and (GetPlayerStat(strtoint(Temp2), 'active') = true) then begin&lt;br /&gt;
          WriteConsole(0, GetPlayerStat(strtoint(Temp1), 'name') + ' has been moved by ' + GetPlayerStat(ID, 'name'), RGB(255, 255, 255));&lt;br /&gt;
          // Player will now be moved to the other player&lt;br /&gt;
          MovePlayer(strtoint(Temp1), GetPlayerStat(strtoint(Temp2), 'x'), GetPlayerStat(strtoint(Temp2), 'y'));&lt;br /&gt;
        end;&lt;br /&gt;
    except&lt;br /&gt;
    // If theres an error with the admin's input, it wont show any errors. Just ignores the command.&lt;br /&gt;
    end;&lt;br /&gt;
  end;&lt;br /&gt;
end;&lt;br /&gt;
&lt;br /&gt;
// ph33r my skillz0r -EnEsCe&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
* [http://enesce.com/help/index.html?Functions/MovePlayer.html Scripting Manual page for MovePlayer]&lt;br /&gt;
&lt;br /&gt;
[[Category:Server Scripting]][[Category:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Freeman</name></author>	</entry>

	</feed>