<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=X7airworker</id>
	<title>Onset Developer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=X7airworker"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/wiki/Special:Contributions/X7airworker"/>
	<updated>2026-04-29T22:49:23Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetPlayerPing&amp;diff=2893</id>
		<title>GetPlayerPing</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetPlayerPing&amp;diff=2893"/>
		<updated>2019-11-19T13:47:41Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Get the ping of the specified player.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetPlayerPing(playerid)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|playerid|The player identifier.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns the player ping in integer.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;gt;&lt;br /&gt;
CreateTimer(function()&lt;br /&gt;
	local ping = ServerData[&amp;quot;max_ping&amp;quot;]&lt;br /&gt;
	for k, v in ipairs(GetAllPlayers()) do&lt;br /&gt;
		if GetPlayerPing(v) &amp;gt; ping then&lt;br /&gt;
			KickPlayer(v, &amp;quot;You were kicked for high ping.&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end, 10000)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{Template:PlayerFunctions}}&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetTime&amp;diff=2669</id>
		<title>SetTime</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetTime&amp;diff=2669"/>
		<updated>2019-11-14T16:42:51Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Set the specified time for the client.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetTime(time)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|time|Float value between 0 to 24.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
code&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
* [[GetTime]]&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=ServerExit&amp;diff=2341</id>
		<title>ServerExit</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=ServerExit&amp;diff=2341"/>
		<updated>2019-09-28T21:38:37Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Shutdowns the server.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|ServerExit([, ExitMessage])}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParamOptional|ExitMessage|A shutdown message.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|This function doesn&#039;t have a return value.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=ExecuteWebJS&amp;diff=2340</id>
		<title>ExecuteWebJS</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=ExecuteWebJS&amp;diff=2340"/>
		<updated>2019-09-28T20:24:05Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Executes Javascript in the WebUI.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|ExecuteWebJS(web, Javascript)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|web|The web identifier.}}&lt;br /&gt;
{{FuncParam|Javascript|The Javascript source.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetPlayerCount&amp;diff=2339</id>
		<title>GetPlayerCount</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetPlayerCount&amp;diff=2339"/>
		<updated>2019-09-28T19:27:05Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server &amp;amp; Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Gets the count of the online players.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetPlayerCount()}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncNoParam}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Count of players.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=KickPlayer&amp;diff=2338</id>
		<title>KickPlayer</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=KickPlayer&amp;diff=2338"/>
		<updated>2019-09-28T19:25:34Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Kicks a player with a reason, colors are &#039;&#039;&#039;not&#039;&#039;&#039; supported.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|KickPlayer(player, reason)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|The player identifier.}}&lt;br /&gt;
{{FuncParam|reason|The reason}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|This function doesn&#039;t have a return value.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetPlayerArmor&amp;diff=2337</id>
		<title>SetPlayerArmor</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetPlayerArmor&amp;diff=2337"/>
		<updated>2019-09-28T19:25:21Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetPlayerArmor(player, armor)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|The player identifier.}}&lt;br /&gt;
{{FuncParam|armor|The armor value.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|This function doesn&#039;t have a return value.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
[[GetPlayerArmor]]&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetNetworkStats&amp;diff=2336</id>
		<title>GetNetworkStats</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetNetworkStats&amp;diff=2336"/>
		<updated>2019-09-28T19:21:40Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server &amp;amp; Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Gets the clients&#039; NetworkStats}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetNetworkStats()}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncNoParam}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|packetlossTotal, packetlossLastSecond, messagesInResendBuffer, bytesInResendBuffer, bytesSend, bytesReceived, bytesResent, bytesSendTotal, bytesReceivedTotal, bytesResentTotal, isLimitedByCongestionControl, isLimitedByOutgoingBandwidthLimit}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetPing&amp;diff=2335</id>
		<title>GetPing</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetPing&amp;diff=2335"/>
		<updated>2019-09-28T19:20:09Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Gets the client ping.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetPing()}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncNoParam}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|The clients ping.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
[[GetNetworkStats]]&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetDistance3D&amp;diff=2334</id>
		<title>GetDistance3D</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetDistance3D&amp;diff=2334"/>
		<updated>2019-09-28T19:18:38Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server &amp;amp; Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Gets the distance between to 3 dimensional points.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetDistance3D(x, y, z, x2, y2, z2)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|x|x of the first point.}}&lt;br /&gt;
{{FuncParam|y|y of the first point.}}&lt;br /&gt;
{{FuncParam|z|z of the first point.}}&lt;br /&gt;
{{FuncParam|x2|x of the second point.}}&lt;br /&gt;
{{FuncParam|y2|y of the second point.}}&lt;br /&gt;
{{FuncParam|z2|u of the second point.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|The distance between the 2 points.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
[[GetDistanceSquared3D]]&lt;br /&gt;
[[GetDistance2D]]&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetDistance2D&amp;diff=2333</id>
		<title>GetDistance2D</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetDistance2D&amp;diff=2333"/>
		<updated>2019-09-28T19:15:59Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server &amp;amp; Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Calculates the distance between 2 points.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetDistance2D(x, y, x2, y2)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|x|x of the first point.}}&lt;br /&gt;
{{FuncParam|y|y of the first point.}}&lt;br /&gt;
{{FuncParam|x2|x of the second point.}}&lt;br /&gt;
{{FuncParam|y2|y of the second point.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|The distance between the 2 points.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
[[GetDistance3D]]&lt;br /&gt;
[[GetDistanceSquared3D]]&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetServerName&amp;diff=2332</id>
		<title>GetServerName</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetServerName&amp;diff=2332"/>
		<updated>2019-09-28T19:11:58Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Gets the servers display name.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetServerName()}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncNoParam}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|The name of the server}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
[[SetServerName]]&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetServerName&amp;diff=2331</id>
		<title>SetServerName</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetServerName&amp;diff=2331"/>
		<updated>2019-09-28T19:11:12Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Sets the display name of the server.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetServerName(ServerName)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|ServerName|The name of the server.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|This function doesn&#039;t return a value.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
[[GetServerName]]&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetServerName&amp;diff=2330</id>
		<title>SetServerName</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetServerName&amp;diff=2330"/>
		<updated>2019-09-28T19:10:54Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: Documented parameters, return value and added realtedFunction&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetServerName(ServerName)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|ServerName|The name of the server.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|This function doesn&#039;t return a value.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
[[GetServerName]]&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetPlayerArmor&amp;diff=2329</id>
		<title>GetPlayerArmor</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetPlayerArmor&amp;diff=2329"/>
		<updated>2019-09-28T19:08:53Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: Documented parameters, return value and added realtedFunction&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server &amp;amp; Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetPlayerArmor(player)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|The player identifier.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|The armor value.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
[[SetPlayerArmor]]&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetPlayerArmor&amp;diff=2328</id>
		<title>SetPlayerArmor</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetPlayerArmor&amp;diff=2328"/>
		<updated>2019-09-28T19:08:04Z</updated>

		<summary type="html">&lt;p&gt;X7airworker: Documented parameters, return value and added realtedFunction&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetPlayerArmor(player, armor)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|The player identifier.}}&lt;br /&gt;
{{FuncParam|armor|The armor value.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|This function doesn&#039;t doesn&#039;t have a return value.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
[[GetPlayerArmor]]&lt;/div&gt;</summary>
		<author><name>X7airworker</name></author>
	</entry>
</feed>