<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.vc-mp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Decent+946</id>
	<title>Vice City Multiplayer - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.vc-mp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Decent+946"/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/wiki/Special:Contributions/Decent_946"/>
	<updated>2026-04-05T17:15:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnSphereEntered&amp;diff=20090</id>
		<title>OnSphereEntered</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnSphereEntered&amp;diff=20090"/>
		<updated>2017-08-07T15:56:55Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is called when a player enters any sphere.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
function OnSphereEntered( player, sphere )&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
* &#039;&#039;Player&#039;&#039; Who enteres into the sphere.&lt;br /&gt;
* &#039;&#039;Sphere&#039;&#039; The Sphere in which player entered.&lt;br /&gt;
&lt;br /&gt;
== Example == &lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onSphereEntered( player, sphere )&lt;br /&gt;
{&lt;br /&gt;
   MessagePlayer(&amp;quot;You&#039;ve entered in a sphere! ID: &amp;quot; + sphere.ID , player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Sphere_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Sphere_Events]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=SetWhiteScanLines&amp;diff=20089</id>
		<title>SetWhiteScanLines</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=SetWhiteScanLines&amp;diff=20089"/>
		<updated>2017-08-04T19:48:42Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function is used to set white scan lines for a specific player. &lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;SetWhiteScanLines( player, true );&lt;br /&gt;
SetWhiteScanLines( player, false );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] - &#039;&#039;Player&#039;&#039; to set whitescanlines for.&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; - true/false.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this example, we are going to set white scan lines when a player joins and remove them when the player spawns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = squirrel&amp;gt;&lt;br /&gt;
function onPlayerJoin( player )&lt;br /&gt;
{&lt;br /&gt;
SetWhiteScanLines( player, true );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function onPlayerSpawn( player )&lt;br /&gt;
{&lt;br /&gt;
SetWhiteScanLines( player, false );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
call [[onPlayerJoin]] and [[onPlayerSpawn]] were used in this example.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=SetGreenScanLines&amp;diff=20088</id>
		<title>SetGreenScanLines</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=SetGreenScanLines&amp;diff=20088"/>
		<updated>2017-08-04T19:44:45Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function is used to set green scan lines for the specific player. In single player when we enter the elavator of bank-2 we see these scanlines.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;SetGreenScanLines( player, true ); and&lt;br /&gt;
SetGreenScanLines( player, false );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] - &#039;&#039;Player&#039;&#039; to set greenscanlines for.&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; - true/false.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this example, we are going to set green scan lines when a player joins and remove them when the player spawns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = squirrel&amp;gt;&lt;br /&gt;
function onPlayerJoin( player )&lt;br /&gt;
{&lt;br /&gt;
SetGreenScanLines( player, true );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function onPlayerSpawn( player )&lt;br /&gt;
{&lt;br /&gt;
SetGreenScanLines( player, false );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
call [[onPlayerJoin]] and [[onPlayerSpawn]] were used in this example.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=SetCinematicBorder&amp;diff=20087</id>
		<title>SetCinematicBorder</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=SetCinematicBorder&amp;diff=20087"/>
		<updated>2017-08-04T19:40:20Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function is used to set cinematic borders for the specific player.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;SetCinematicBorder( player, true );&lt;br /&gt;
SetCinematicBorder( player, false );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] - &#039;&#039;Player&#039;&#039; to set borders for.&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; - true/false.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this example, we are going to set cinematic borders when a player joins and remove them when the player spawns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang = squirrel&amp;gt;&lt;br /&gt;
function onPlayerJoin( player )&lt;br /&gt;
{&lt;br /&gt;
SetCinematicBorder( player, true );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function onPlayerSpawn( player )&lt;br /&gt;
{&lt;br /&gt;
SetCinematicBorder( player, false );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
call [[onPlayerJoin]] and [[onPlayerSpawn]] were used in this example.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerCommand&amp;diff=20086</id>
		<title>OnPlayerCommand</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerCommand&amp;diff=20086"/>
		<updated>2017-08-04T19:28:24Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This is called when a player uses a command.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerCommand( player, cmd, parameters )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The player that used the command.&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;cmd&#039;&#039;&#039; - The command that player used.&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;text&#039;&#039;&#039; - List of command parameters as string.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example command heal the player if they type &#039;&#039;&#039;/heal&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
 if ( cmd == &amp;quot;heal&amp;quot; )&lt;br /&gt;
 {&lt;br /&gt;
  if ( player.Health == 100 ) PrivMessage( player, &amp;quot;You have the health to maximum.&amp;quot;);&lt;br /&gt;
  else &lt;br /&gt;
  {&lt;br /&gt;
   PrivMessage( player, &amp;quot;You healed successfully.&amp;quot;);&lt;br /&gt;
   player.Health = 100;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Call [[Scripting/Squirrel/Events/Player/onPlayerCommand|onPlayerCommand]] and functions [[Scripting/Squirrel/Functions/PrivMessage|PrivMessage]] + [[Scripting/Squirrel/Functions/Player.Health|player.Health]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Player_Events]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Typing&amp;diff=20085</id>
		<title>Scripting/Squirrel/Functions/Player.Typing</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Typing&amp;diff=20085"/>
		<updated>2017-08-04T19:22:24Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Result */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will inform you whether a player is typing or not.&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; This function is triggered when a player starts typing.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
player.Typing&lt;br /&gt;
&lt;br /&gt;
player.Typing = true;&lt;br /&gt;
&lt;br /&gt;
player.Typing = false;&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
Bool - true or false.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this Example, We are going to check if the specified player is typing or not. it will either return as true or false. Where true means yes and false means not.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
  if ( cmd == &amp;quot;istyping&amp;quot; )&lt;br /&gt;
  {&lt;br /&gt;
    if ( text == null ) PrivMessage( player, &amp;quot;SYNTAX: /istyping &amp;lt; player ID &amp;gt;&amp;quot; );&lt;br /&gt;
    else if ( !IsNum(text) ) PrivMessage( player, &amp;quot;Error - Please Sepcify player&#039;s ID&amp;quot; ); //ID selects the distnict player.&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
      local plr = FindPlayer( text.tointeger() );&lt;br /&gt;
      &lt;br /&gt;
      if ( !plr ) PrivMessage( player, &amp;quot;No such player...&amp;quot; );&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
         MessagePlayer( &amp;quot;Is &amp;quot;+plr+&amp;quot; typing: &amp;quot;+plr.Typing, player ); // true = yes &amp;amp; false = no.&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Call [[onPlayerCommand]], functions [[Scripting/Squirrel/Functions/FindPlayer|FindPlayer]], [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and [[Scripting/Squirrel/Functions/MessagePlayer|&#039;&#039;MessagePlayer&#039;&#039;]] were used in this example&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Typing&amp;diff=20084</id>
		<title>Scripting/Squirrel/Functions/Player.Typing</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Typing&amp;diff=20084"/>
		<updated>2017-08-04T19:22:04Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will inform you whether a player is typing or not.&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; This function is triggered when a player starts typing.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
player.Typing&lt;br /&gt;
&lt;br /&gt;
player.Typing = true;&lt;br /&gt;
&lt;br /&gt;
player.Typing = false;&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
Toggle - true or false.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this Example, We are going to check if the specified player is typing or not. it will either return as true or false. Where true means yes and false means not.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
  if ( cmd == &amp;quot;istyping&amp;quot; )&lt;br /&gt;
  {&lt;br /&gt;
    if ( text == null ) PrivMessage( player, &amp;quot;SYNTAX: /istyping &amp;lt; player ID &amp;gt;&amp;quot; );&lt;br /&gt;
    else if ( !IsNum(text) ) PrivMessage( player, &amp;quot;Error - Please Sepcify player&#039;s ID&amp;quot; ); //ID selects the distnict player.&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
      local plr = FindPlayer( text.tointeger() );&lt;br /&gt;
      &lt;br /&gt;
      if ( !plr ) PrivMessage( player, &amp;quot;No such player...&amp;quot; );&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
         MessagePlayer( &amp;quot;Is &amp;quot;+plr+&amp;quot; typing: &amp;quot;+plr.Typing, player ); // true = yes &amp;amp; false = no.&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Call [[onPlayerCommand]], functions [[Scripting/Squirrel/Functions/FindPlayer|FindPlayer]], [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and [[Scripting/Squirrel/Functions/MessagePlayer|&#039;&#039;MessagePlayer&#039;&#039;]] were used in this example&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Typing&amp;diff=20083</id>
		<title>Scripting/Squirrel/Functions/Player.Typing</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Typing&amp;diff=20083"/>
		<updated>2017-08-04T19:21:40Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will inform you whether a player is typing or not.&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; This function is triggered when a player starts typing.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
player.Typing&lt;br /&gt;
player.Typing = true;&lt;br /&gt;
player.Typing = false;&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
Toggle - true or false.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this Example, We are going to check if the specified player is typing or not. it will either return as true or false. Where true means yes and false means not.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
  if ( cmd == &amp;quot;istyping&amp;quot; )&lt;br /&gt;
  {&lt;br /&gt;
    if ( text == null ) PrivMessage( player, &amp;quot;SYNTAX: /istyping &amp;lt; player ID &amp;gt;&amp;quot; );&lt;br /&gt;
    else if ( !IsNum(text) ) PrivMessage( player, &amp;quot;Error - Please Sepcify player&#039;s ID&amp;quot; ); //ID selects the distnict player.&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
      local plr = FindPlayer( text.tointeger() );&lt;br /&gt;
      &lt;br /&gt;
      if ( !plr ) PrivMessage( player, &amp;quot;No such player...&amp;quot; );&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
         MessagePlayer( &amp;quot;Is &amp;quot;+plr+&amp;quot; typing: &amp;quot;+plr.Typing, player ); // true = yes &amp;amp; false = no.&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Call [[onPlayerCommand]], functions [[Scripting/Squirrel/Functions/FindPlayer|FindPlayer]], [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and [[Scripting/Squirrel/Functions/MessagePlayer|&#039;&#039;MessagePlayer&#039;&#039;]] were used in this example&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.GameKeys&amp;diff=20082</id>
		<title>Scripting/Squirrel/Functions/Player.GameKeys</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.GameKeys&amp;diff=20082"/>
		<updated>2017-08-04T19:21:06Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Result */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will inform you the ID(s) of they keys that player has pressed at the current moment.&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; This function is triggered whenever a player presses any key of keyboard.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; It can also be used to check ID of any key of the keyboard in vcmp.&lt;br /&gt;
&lt;br /&gt;
Note: Each keyborad key has its different gamekey ID.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
player.GameKeys&lt;br /&gt;
player.GameKeys = ID(s)&lt;br /&gt;
&lt;br /&gt;
== Parameterand result ==&lt;br /&gt;
ID(s) of the Key pressed.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this Example, We are going to check Which key(s) are being pressed by the specified user at the current moment ( at the time of use of command ).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
  if ( cmd == &amp;quot;getkeys&amp;quot; )&lt;br /&gt;
  {&lt;br /&gt;
    if ( text == null ) PrivMessage( player, &amp;quot;SYNTAX: /getkeys &amp;lt; player ID &amp;gt;&amp;quot; );&lt;br /&gt;
    else if ( !IsNum(text) ) PrivMessage( player, &amp;quot;Error - Please Sepcify player&#039;s ID&amp;quot; ); //ID selects the distnict player.&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
      local plr = FindPlayer( text.tointeger() );&lt;br /&gt;
      &lt;br /&gt;
      if ( !plr ) PrivMessage( player, &amp;quot;No such player...&amp;quot; );&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
         MessagePlayer( &amp;quot;The ID(s) of the keys &amp;quot;+plr+&amp;quot; is pressing: &amp;quot;+plr.GameKeys, player );&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Call [[onPlayerCommand]], functions [[Scripting/Squirrel/Functions/FindPlayer|FindPlayer]], [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and [[Scripting/Squirrel/Functions/MessagePlayer|&#039;&#039;MessagePlayer&#039;&#039;]] were used in this example&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.GameKeys&amp;diff=20081</id>
		<title>Scripting/Squirrel/Functions/Player.GameKeys</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.GameKeys&amp;diff=20081"/>
		<updated>2017-08-04T19:20:27Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will inform you the ID(s) of they keys that player has pressed at the current moment.&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; This function is triggered whenever a player presses any key of keyboard.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; It can also be used to check ID of any key of the keyboard in vcmp.&lt;br /&gt;
&lt;br /&gt;
Note: Each keyborad key has its different gamekey ID.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
player.GameKeys&lt;br /&gt;
player.GameKeys = ID(s)&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
ID(s) of the Key pressed.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this Example, We are going to check Which key(s) are being pressed by the specified user at the current moment ( at the time of use of command ).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
  if ( cmd == &amp;quot;getkeys&amp;quot; )&lt;br /&gt;
  {&lt;br /&gt;
    if ( text == null ) PrivMessage( player, &amp;quot;SYNTAX: /getkeys &amp;lt; player ID &amp;gt;&amp;quot; );&lt;br /&gt;
    else if ( !IsNum(text) ) PrivMessage( player, &amp;quot;Error - Please Sepcify player&#039;s ID&amp;quot; ); //ID selects the distnict player.&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
      local plr = FindPlayer( text.tointeger() );&lt;br /&gt;
      &lt;br /&gt;
      if ( !plr ) PrivMessage( player, &amp;quot;No such player...&amp;quot; );&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
         MessagePlayer( &amp;quot;The ID(s) of the keys &amp;quot;+plr+&amp;quot; is pressing: &amp;quot;+plr.GameKeys, player );&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Call [[onPlayerCommand]], functions [[Scripting/Squirrel/Functions/FindPlayer|FindPlayer]], [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and [[Scripting/Squirrel/Functions/MessagePlayer|&#039;&#039;MessagePlayer&#039;&#039;]] were used in this example&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.GameKeys&amp;diff=20080</id>
		<title>Scripting/Squirrel/Functions/Player.GameKeys</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.GameKeys&amp;diff=20080"/>
		<updated>2017-08-03T19:42:57Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Result */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will inform you the ID(s) of they keys that player has pressed at the current moment.&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; This function is triggered whenever a player presses any key of keyboard.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; It can also be used to check ID of any key of the keyboard in vcmp.&lt;br /&gt;
&lt;br /&gt;
Note: Each keyborad key has its different gamekey ID.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
player.GameKeys&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
ID(s) of the Key pressed.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this Example, We are going to check Which key(s) are being pressed by the specified user at the current moment ( at the time of use of command ).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
  if ( cmd == &amp;quot;getkeys&amp;quot; )&lt;br /&gt;
  {&lt;br /&gt;
    if ( text == null ) PrivMessage( player, &amp;quot;SYNTAX: /getkeys &amp;lt; player ID &amp;gt;&amp;quot; );&lt;br /&gt;
    else if ( !IsNum(text) ) PrivMessage( player, &amp;quot;Error - Please Sepcify player&#039;s ID&amp;quot; ); //ID selects the distnict player.&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
      local plr = FindPlayer( text.tointeger() );&lt;br /&gt;
      &lt;br /&gt;
      if ( !plr ) PrivMessage( player, &amp;quot;No such player...&amp;quot; );&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
         MessagePlayer( &amp;quot;The ID(s) of the keys &amp;quot;+plr+&amp;quot; is pressing: &amp;quot;+plr.GameKeys, player );&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Call [[onPlayerCommand]], functions [[Scripting/Squirrel/Functions/FindPlayer|FindPlayer]], [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and [[Scripting/Squirrel/Functions/MessagePlayer|&#039;&#039;MessagePlayer&#039;&#039;]] were used in this example&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Typing&amp;diff=20079</id>
		<title>Scripting/Squirrel/Functions/Player.Typing</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Typing&amp;diff=20079"/>
		<updated>2017-08-03T19:42:27Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will inform you whether a player is typing or not.&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; This function is triggered when a player starts typing.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
player.Typing&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
Toggle - true or false.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this Example, We are going to check if the specified player is typing or not. it will either return as true or false. Where true means yes and false means not.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
  if ( cmd == &amp;quot;istyping&amp;quot; )&lt;br /&gt;
  {&lt;br /&gt;
    if ( text == null ) PrivMessage( player, &amp;quot;SYNTAX: /istyping &amp;lt; player ID &amp;gt;&amp;quot; );&lt;br /&gt;
    else if ( !IsNum(text) ) PrivMessage( player, &amp;quot;Error - Please Sepcify player&#039;s ID&amp;quot; ); //ID selects the distnict player.&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
      local plr = FindPlayer( text.tointeger() );&lt;br /&gt;
      &lt;br /&gt;
      if ( !plr ) PrivMessage( player, &amp;quot;No such player...&amp;quot; );&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
         MessagePlayer( &amp;quot;Is &amp;quot;+plr+&amp;quot; typing: &amp;quot;+plr.Typing, player ); // true = yes &amp;amp; false = no.&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Call [[onPlayerCommand]], functions [[Scripting/Squirrel/Functions/FindPlayer|FindPlayer]], [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and [[Scripting/Squirrel/Functions/MessagePlayer|&#039;&#039;MessagePlayer&#039;&#039;]] were used in this example&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.GameKeys&amp;diff=20078</id>
		<title>Scripting/Squirrel/Functions/Player.GameKeys</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.GameKeys&amp;diff=20078"/>
		<updated>2017-08-03T19:40:11Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: Created page with &amp;quot;This function will inform you the ID(s) of they keys that player has pressed at the current moment.  -&amp;gt; This function is triggered whenever a player presses any key of keyboar...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will inform you the ID(s) of they keys that player has pressed at the current moment.&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; This function is triggered whenever a player presses any key of keyboard.&lt;br /&gt;
&lt;br /&gt;
--&amp;gt; It can also be used to check ID of any key of the keyboard in vcmp.&lt;br /&gt;
&lt;br /&gt;
Note: Each keyborad key has its different gamekey ID.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
player.GameKeys&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
ID of the Key pressed.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this Example, We are going to check Which key(s) are being pressed by the specified user at the current moment ( at the time of use of command ).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
  if ( cmd == &amp;quot;getkeys&amp;quot; )&lt;br /&gt;
  {&lt;br /&gt;
    if ( text == null ) PrivMessage( player, &amp;quot;SYNTAX: /getkeys &amp;lt; player ID &amp;gt;&amp;quot; );&lt;br /&gt;
    else if ( !IsNum(text) ) PrivMessage( player, &amp;quot;Error - Please Sepcify player&#039;s ID&amp;quot; ); //ID selects the distnict player.&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
      local plr = FindPlayer( text.tointeger() );&lt;br /&gt;
      &lt;br /&gt;
      if ( !plr ) PrivMessage( player, &amp;quot;No such player...&amp;quot; );&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
         MessagePlayer( &amp;quot;The ID(s) of the keys &amp;quot;+plr+&amp;quot; is pressing: &amp;quot;+plr.GameKeys, player );&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Call [[onPlayerCommand]], functions [[Scripting/Squirrel/Functions/FindPlayer|FindPlayer]], [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and [[Scripting/Squirrel/Functions/MessagePlayer|&#039;&#039;MessagePlayer&#039;&#039;]] were used in this example&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Typing&amp;diff=20077</id>
		<title>Scripting/Squirrel/Functions/Player.Typing</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Typing&amp;diff=20077"/>
		<updated>2017-08-03T19:19:46Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: Created page with &amp;quot;__NOTOC__ This function will inform you whether a player is typing or not.  -&amp;gt; This function is triggered when a player starts typing.  == Syntax == player.Typing  == Result =...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function will inform you whether a player is typing or not.&lt;br /&gt;
&lt;br /&gt;
-&amp;gt; This function is triggered when a player starts typing.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
player.Typing&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
Toggle - true or false.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this Example, We are going to check if the specified player is typing or not. it will either return as true or false. Where true means yes and false means not.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
  if ( cmd == &amp;quot;istyping&amp;quot; )&lt;br /&gt;
  {&lt;br /&gt;
    if ( text == null ) PrivMessage( player, &amp;quot;SYNTAX: /istyping &amp;lt; player ID &amp;gt;&amp;quot; );&lt;br /&gt;
    else if ( !IsNum(text) ) PrivMessage( player, &amp;quot;Error - Please Sepcify player&#039;s ID&amp;quot; ); //ID selects the distnict player.&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
      local plr = FindPlayer( text.tointeger() );&lt;br /&gt;
      &lt;br /&gt;
      if ( !plr ) PrivMessage( player, &amp;quot;No such player...&amp;quot; );&lt;br /&gt;
      else&lt;br /&gt;
      {&lt;br /&gt;
         MessagePlayer( &amp;quot;Is &amp;quot;+plr+&amp;quot; typing: &amp;quot;+plr.Typing, player ); // true = yes &amp;amp; false = no.&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Call [[onPlayerCommand]], functions [[Scripting/Squirrel/Functions/FindPlayer|FindPlayer]], [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and [[Scripting/Squirrel/Functions/MessagePlayer|&#039;&#039;MessagePlayer&#039;&#039;]] were used in this example&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.StreamedToPlayer&amp;diff=20076</id>
		<title>Scripting/Squirrel/Functions/Checkpoint.StreamedToPlayer</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.StreamedToPlayer&amp;diff=20076"/>
		<updated>2017-08-03T18:40:17Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function checks if a checkpoint is only streamed for a Player or for everyone.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Checkpoint.StreamedToPlayer&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
	CheckpointWhite &amp;lt;- CreateCheckpoint( null, 0, false, Vector( 876.45, 432.54, 12.34 ), RGB(255, 255, 255), 2);&lt;br /&gt;
&lt;br /&gt;
	if(CheckpointWhite.StreamedToPlayer == true)&lt;br /&gt;
	{&lt;br /&gt;
		print(&amp;quot;This Checkpoint is only Streamed for a Player.&amp;quot;);&lt;br /&gt;
	}&lt;br /&gt;
	else&lt;br /&gt;
	{&lt;br /&gt;
		print(&amp;quot;This Checkpoint is Streamed for everyone.&amp;quot;);&lt;br /&gt;
	}&lt;br /&gt;
	return 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Call [[onScriptLoad]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Checkpoint_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Checkpoint_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.Remove&amp;diff=20075</id>
		<title>Scripting/Squirrel/Functions/Checkpoint.Remove</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.Remove&amp;diff=20075"/>
		<updated>2017-08-03T17:47:15Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function removes a checkpoint.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Checkpoint.Remove()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
	CheckpointGreen &amp;lt;- CreateCheckpoint( null, 0, false, Vector( -378.79, -537.962, 17.2832 ), RGB(255, 0, 255), 2);&lt;br /&gt;
	CheckpointWhite &amp;lt;- CreateCheckpoint( null, 0, true, Vector( 876.45, 432.54, 12.34 ), RGB(255, 255, 255), 2);&lt;br /&gt;
	return 1;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function onScriptUnload()&lt;br /&gt;
{&lt;br /&gt;
	CheckpointGreen.Remove();&lt;br /&gt;
	CheckpointWhite.Remove();&lt;br /&gt;
	return 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Call [[onScriptLoad]] and [[onScriptUnload]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Checkpoint_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Checkpoint_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.Radius&amp;diff=20074</id>
		<title>Scripting/Squirrel/Functions/Checkpoint.Radius</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.Radius&amp;diff=20074"/>
		<updated>2017-08-03T17:46:46Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function changes the size of a Checkpoint.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;Checkpoint.Radius&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
*&#039;&#039;int&#039;&#039; &#039;&#039;&#039;Radius&#039;&#039;&#039; - The size/Radius of the checkpoint&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onScriptLoad()&lt;br /&gt;
{ &lt;br /&gt;
	CheckpointGreen &amp;lt;- CreateCheckpoint( null, 0, false, Vector( -378.79, -537.962, 17.2832 ), RGB(255, 0, 255), 2);&lt;br /&gt;
	return 1;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function onPlayerCommand( player, command, arguments )&lt;br /&gt;
{&lt;br /&gt;
	if(cmd == &amp;quot;setcpsize&amp;quot;)&lt;br /&gt;
	{&lt;br /&gt;
		CheckpointGreen.Radius = 5;&lt;br /&gt;
		//NOTE: The Checkpoint might disappear use /kill to respawn, the Checkpoint will be visible again and the size will be updated&lt;br /&gt;
	}&lt;br /&gt;
	return 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Call [[onScriptLoad]] and [[onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Checkpoint_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Checkpoint_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.Pos&amp;diff=20073</id>
		<title>Scripting/Squirrel/Functions/Checkpoint.Pos</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.Pos&amp;diff=20073"/>
		<updated>2017-08-03T17:45:54Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function changes the Position of a Checkpoint.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;Checkpoint.Pos&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
*[[Scripting/Squirrel/Functions/Vector|&#039;&#039;Vector&#039;&#039;]] &#039;&#039;&#039;pos&#039;&#039;&#039; - The checkpoint position&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onScriptLoad()&lt;br /&gt;
{ &lt;br /&gt;
	CheckpointGreen &amp;lt;- CreateCheckpoint( null, 0, false, Vector( -378.79, -537.962, 17.2832 ), RGB(255, 0, 255), 2);&lt;br /&gt;
	return 1;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function onPlayerCommand( player, command, arguments )&lt;br /&gt;
{&lt;br /&gt;
	if(cmd == &amp;quot;setcppos&amp;quot;)&lt;br /&gt;
	{&lt;br /&gt;
		CheckpointGreen.Pos = Vector(player.Pos.x, player.Pos.y, player.Pos.z);&lt;br /&gt;
		//NOTE: The Checkpoint might disappear use /kill to respawn, the Checkpoint will be visible again and the Position will be updated&lt;br /&gt;
	}&lt;br /&gt;
	return 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Call [[onScriptLoad]] and [[onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Checkpoint_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Checkpoint_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.Owner&amp;diff=20072</id>
		<title>Scripting/Squirrel/Functions/Checkpoint.Owner</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.Owner&amp;diff=20072"/>
		<updated>2017-08-03T17:08:12Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function gets the Owner of a checkpoint.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;Checkpoint.Owner&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Note: If there is no Owner set for the Checkpoint this function will return: (null : 0x0000000000000000)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerCommand(player, command, arguments)&lt;br /&gt;
{&lt;br /&gt;
	if(cmd == &amp;quot;playercp&amp;quot;)&lt;br /&gt;
	{&lt;br /&gt;
		CheckpointTest &amp;lt;- CreateCheckpoint(player, 0, false, player.Pos, RGB(255, 0, 255), 2);&lt;br /&gt;
		ClientMessage(&amp;quot;[#ffffff]Checkpoint Owner: &amp;quot; + CheckpointTest.Owner,player,255,255,255);&lt;br /&gt;
	}&lt;br /&gt;
	return 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[onPlayerCommand]] and function [[Scripting/Squirrel/Functions/CreateCheckpoint|CreateCheckpoint]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Checkpoint_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Checkpoint_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.Owner&amp;diff=20071</id>
		<title>Scripting/Squirrel/Functions/Checkpoint.Owner</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.Owner&amp;diff=20071"/>
		<updated>2017-08-03T17:06:42Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function gets the Owner of a checkpoint.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;Checkpoint.Owner&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Note: If there is no Owner set for the Checkpoint this function will return: (null : 0x0000000000000000)&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerCommand(player, command, arguments)&lt;br /&gt;
{&lt;br /&gt;
	if(cmd == &amp;quot;playercp&amp;quot;)&lt;br /&gt;
	{&lt;br /&gt;
		CheckpointTest &amp;lt;- CreateCheckpoint(player, 0, false, player.Pos, RGB(255, 0, 255), 2);&lt;br /&gt;
		ClientMessage(&amp;quot;[#ffffff]Checkpoint Owner: &amp;quot; + CheckpointTest.Owner,player,255,255,255);&lt;br /&gt;
	}&lt;br /&gt;
	return 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[onPlayerCommand]] and function [[CreateCheckpoint] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Checkpoint_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Checkpoint_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.ID&amp;diff=20070</id>
		<title>Scripting/Squirrel/Functions/Checkpoint.ID</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Checkpoint.ID&amp;diff=20070"/>
		<updated>2017-08-03T17:05:43Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function gets the checkpoint ID.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Checkpoint.ID&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
	CheckpointGreen &amp;lt;- CreateCheckpoint( null, 0, false, Vector( -378.79, -537.962, 17.2832 ), RGB(255, 0, 255), 2);&lt;br /&gt;
	CheckpointWhite &amp;lt;- CreateCheckpoint( null, 0, true, Vector( 876.45, 432.54, 12.34 ), RGB(255, 255, 255), 2);&lt;br /&gt;
	print(&amp;quot;CheckpointGreen ID: &amp;quot; + CheckpointGreen.ID);&lt;br /&gt;
	print(&amp;quot;CheckpointWhite ID: &amp;quot; + CheckpointWhite.ID);&lt;br /&gt;
	return 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Call [[onScriptLoad]] was used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Checkpoint_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Checkpoint_Functions]]&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Player.Skin&amp;diff=20030</id>
		<title>Player.Skin</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Player.Skin&amp;diff=20030"/>
		<updated>2017-04-02T11:06:30Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This method can be used to get a player&#039;s skin or set to a desired one&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
=== Type 1 - Getting the current skin a player has ===&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;PlayerInstance.Skin&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Arguments&#039;&#039;&#039;&lt;br /&gt;
* None&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Returns&#039;&#039;&#039;&lt;br /&gt;
* Integer - An integer representing the skin ID player is having&lt;br /&gt;
&lt;br /&gt;
=== Type 2 - Setting a player&#039;s skin to desired one ===&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;PlayerInstance.Skin = skin&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Arguments&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;integer&#039;&#039; &#039;&#039;&#039;skin id&#039;&#039;&#039; - The skin ID you would want to set for the player&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
The following snippet will tell the player what skin id he is using&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onPlayerCommand(player, command, arguments) {&lt;br /&gt;
    if( command == &amp;quot;myskin&amp;quot; ) {&lt;br /&gt;
        MessagePlayer( &amp;quot;Your skin ID is: &amp;quot; + player.Skin, player );&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The following will set the player&#039;s skin to the ID given&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onPlayerCommand(player, command, arguments) {&lt;br /&gt;
    if( command == &amp;quot;skin&amp;quot; ) {&lt;br /&gt;
        if( !text ) return MessagePlayer( &amp;quot;Syntax: /skin [ID]&amp;quot;, player );&lt;br /&gt;
        else if( !IsNum( text ) ) return MessagePlayer( &amp;quot;Skin ID must be an integer&amp;quot;, player );&lt;br /&gt;
        else {&lt;br /&gt;
        player.Skin = text.tointeger();&lt;br /&gt;
        MessagePlayer( &amp;quot;Your skin ID is: &amp;quot; + player.Skin, player );&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player Functions}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerActionChange&amp;diff=19130</id>
		<title>OnPlayerActionChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerActionChange&amp;diff=19130"/>
		<updated>2016-03-18T22:50:29Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function is triggered when a player changes his action or we can say move!. ( not animation ).&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerActionChange( player, oldAction, newAction )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The player who changes the action.&lt;br /&gt;
* &#039;&#039;&#039;oldAction&#039;&#039;&#039; - Players old Action.&lt;br /&gt;
* &#039;&#039;&#039;newAction&#039;&#039;&#039; - Players new Action.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
In this example i have chosen action &amp;quot;Fire/Shoot&amp;quot;, when a player will Fire/shoot, his weapon will be automatically removed for temporary reason. ( the player won&#039;t be disarmed ), until he is firing/shooting, he won&#039;t be able to use weapons. unless he changes his action. the player will also receive a message &amp;quot;you can&#039;t shoot in a RPG server.&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerActionChange( player, oldAction, newAction )&lt;br /&gt;
{&lt;br /&gt;
	if ( newAction == 16 ) // 16 is the id of firing/shooting action.&lt;br /&gt;
	{&lt;br /&gt;
		player.SetWeapon( 0, 0 ); //sets weapon to 0. which is nothing.&lt;br /&gt;
        PrivMessage( player, &amp;quot;you can&#039;t shoot in a RPG server. );&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you must be wondering how to get actions id?. use this to get ids :)&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerActionChange( player, oldAction, newAction )&lt;br /&gt;
{&lt;br /&gt;
	if ( newAction ) // it will check if the player goes in new action.&lt;br /&gt;
	{&lt;br /&gt;
                PrivMessage( player, &amp;quot;your Current Actions ID: &amp;quot;+newAction ); // it will print the id of the action player is in.&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Function [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and function [[Scripting/Squirrel/Functions/Player.SetWeapon|&#039;&#039;SetWeapon&#039;&#039;]] were used in this example.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerCrouchChange&amp;diff=19129</id>
		<title>OnPlayerCrouchChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerCrouchChange&amp;diff=19129"/>
		<updated>2016-03-18T22:34:09Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: Created page with &amp;quot;__NOTOC__ This Function is trigged when a player is crouching.  == Syntax ==  &amp;lt;pre&amp;gt;function onPlayerCrouchChange( player, isCrouchingNow )&amp;lt;/pre&amp;gt;  == Parameters ==  * Scripti...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This Function is trigged when a player is crouching.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerCrouchChange( player, isCrouchingNow )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The player who changes the action.&lt;br /&gt;
* &#039;&#039;Bool&#039;&#039; &#039;&#039;&#039;isCrouchingNow&#039;&#039;&#039; - checks if the player is crouching.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
In this example, Whenever the player Will crouch, he will receive a message that &amp;quot;you are crouching now&amp;quot;.&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCrouchChange( player, isCrouchingNow )&lt;br /&gt;
{&lt;br /&gt;
	if ( isCrouchingNow ) //checks if the player is crouching.&lt;br /&gt;
    {&lt;br /&gt;
	PrivMessage( player, &amp;quot; you are crouching right now.&amp;quot; );&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Function [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] was used in this example.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerActionChange&amp;diff=19128</id>
		<title>OnPlayerActionChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerActionChange&amp;diff=19128"/>
		<updated>2016-03-18T22:09:33Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: Created page with &amp;quot;__NOTOC__ This function is triggered when a player changes his action or we can say move!. ( not animation ).  == Syntax ==  &amp;lt;pre&amp;gt;function onPlayerActionChange( player, oldAct...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function is triggered when a player changes his action or we can say move!. ( not animation ).&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerActionChange( player, oldAction, newAction )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The player who changes the action.&lt;br /&gt;
* &#039;&#039;&#039;oldAction&#039;&#039;&#039; - Players old Action.&lt;br /&gt;
* &#039;&#039;&#039;newAction&#039;&#039;&#039; - Players new Action.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
In this example i have chosen action &amp;quot;crouch&amp;quot;, when a player will crouch, his weapon will be automatically removed for temporary reason. ( the player won&#039;t be disarmed ), until he is crouching, he won&#039;t be able to use weapons. unless he changes his action. the player will also receive a message &amp;quot;you can&#039;t shoot while crouching&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerActionChange( player, oldAction, newAction )&lt;br /&gt;
{&lt;br /&gt;
	if ( newAction == 16 ) // 16 is the id of crouching action.&lt;br /&gt;
	{&lt;br /&gt;
		player.SetWeapon( 0, 0 ); //sets weapon to 0. which is nothing.&lt;br /&gt;
        PrivMessage( player, &amp;quot;you can&#039;t shoot while crouching&amp;quot; );&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
you must be wondering how to get actions id?. use this to get ids :)&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerActionChange( player, oldAction, newAction )&lt;br /&gt;
{&lt;br /&gt;
	if ( newAction ) // it will check if the player goes in new action.&lt;br /&gt;
	{&lt;br /&gt;
                PrivMessage( player, &amp;quot;your Current Actions ID: &amp;quot;+newAction ); // it will print the id of the action player is in.&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Function [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and function [[Scripting/Squirrel/Functions/Player.SetWeapon|&#039;&#039;SetWeapon&#039;&#039;]] were used in this example.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Bounds&amp;diff=19126</id>
		<title>Scripting/Squirrel/Functions/Bounds</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Bounds&amp;diff=19126"/>
		<updated>2016-03-17T08:05:13Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This Data type will hold world boundaries. You will get this Data Type when you use the [[Scripting/Squirrel/Functions/GetWorldBounds|GetWorldBounds]] function&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Bounds( MaxX, MinX, MaxY, MinY )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;MaxX&#039;&#039;&#039; - The max X coordination of the boundary.&lt;br /&gt;
* &#039;&#039;&#039;MinX&#039;&#039;&#039; - The minimum X coordination of the boundary.&lt;br /&gt;
* &#039;&#039;&#039;MaxY&#039;&#039;&#039; - The max Y coordination of the boundary.&lt;br /&gt;
* &#039;&#039;&#039;MinY&#039;&#039;&#039; - The minimum Y coordination of the boundary.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
	local boundaries = GetWorldBounds();&lt;br /&gt;
	print( &amp;quot;Worldboundaries has been set to :&amp;quot; + boundaries.MaxX + &amp;quot;,&amp;quot; + boundaries.MinX + &amp;quot;,&amp;quot; + boundaries.MaxY + &amp;quot;,&amp;quot; + boundaries.MinY );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The function [[Scripting/Squirrel/Functions/GetWorldBounds|GetWorldBounds]] and call [[OnScriptLoad]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Data Structures}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerGameKeysChange&amp;diff=19125</id>
		<title>OnPlayerGameKeysChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerGameKeysChange&amp;diff=19125"/>
		<updated>2016-03-17T07:48:26Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: Created page with &amp;quot;__NOTOC__ This function detects the players &amp;quot;Game Key&amp;quot;. for example: To move FORWARD we usually use &amp;quot;W&amp;quot; or &amp;quot;UP_ARROW&amp;quot; key. But since its a game key &amp;amp; its ID is &amp;quot;32768&amp;quot;. It wil...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function detects the players &amp;quot;Game Key&amp;quot;. for example: To move FORWARD we usually use &amp;quot;W&amp;quot; or &amp;quot;UP_ARROW&amp;quot; key. But since its a game key &amp;amp; its ID is &amp;quot;32768&amp;quot;.&lt;br /&gt;
It will detect that the player is moving forward. No matter what key/button player has set to move forward. Even if the player set the key &amp;quot;X&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerGameKeysChange( player, oldKey, newKey )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The player who changes the keys.&lt;br /&gt;
* &#039;&#039;&#039;old&#039;&#039;&#039; - Player&#039;s old key which was pressed before pressing the new one.&lt;br /&gt;
* &#039;&#039;&#039;new&#039;&#039;&#039; - Players new key. recently pressed key.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
In This Example, When a player will move &amp;quot;FORWARD&amp;quot;, player will receive a message &amp;quot;you are moving forward&amp;quot;...no matter what button player has set to move forward...&lt;br /&gt;
If &amp;quot;BACKWARDS&amp;quot;, player will receive a message &amp;quot;you are moving backward&amp;quot;...no matter what button player has set to move backwards...&lt;br /&gt;
If &amp;quot;RIGHT&amp;quot;, player will receive a message &amp;quot;you are moving to right side&amp;quot; ... no matter what button player has set to move right side...&lt;br /&gt;
and If &amp;quot;LEFT&amp;quot;, player will receive a message &amp;quot;you are moving to left side &amp;quot;... no matter what button player has set to move left side...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerGameKeysChange( player, oldKey, newKey )&lt;br /&gt;
{&lt;br /&gt;
 if ( newKey == 32768 ) // this is the id of FORWARD game key. &lt;br /&gt;
    {&lt;br /&gt;
     PrivMessage( player, &amp;quot;you are moving forward&amp;quot; );&lt;br /&gt;
    }&lt;br /&gt;
 else if ( newKey == 16384 ) // this is the id of BACKWARDS game key.&lt;br /&gt;
    {&lt;br /&gt;
     PrivMessage( player, &amp;quot;you are moving backward&amp;quot; );&lt;br /&gt;
    } &lt;br /&gt;
 else if ( newKey == 4096 ) // this is the id of RIGHT game key.&lt;br /&gt;
    {&lt;br /&gt;
     PrivMessage( player, &amp;quot;you are moving to right side&amp;quot; );&lt;br /&gt;
    } &lt;br /&gt;
 else if ( newKey == 8192 ) // this is the id of LEFT game key.&lt;br /&gt;
    {&lt;br /&gt;
     PrivMessage( player, &amp;quot;you are moving to left side&amp;quot; );&lt;br /&gt;
    }  &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
To Get The Keys ID use this.&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function onPlayerGameKeysChange( player, oldKey, newKey )&lt;br /&gt;
{&lt;br /&gt;
 if ( newKey )&lt;br /&gt;
  {&lt;br /&gt;
    PrivMessage( player, &amp;quot;recently pressed key&#039;s ID: &amp;quot;+newKey );&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
here are some constants by Gudio.&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
KEY_ONFOOT_FORWARD&lt;br /&gt;
KEY_ONFOOT_BACKWARD&lt;br /&gt;
KEY_ONFOOT_LEFT&lt;br /&gt;
KEY_ONFOOT_RIGHT&lt;br /&gt;
KEY_ONFOOT_JUMP&lt;br /&gt;
KEY_ONFOOT_CROUCH&lt;br /&gt;
KEY_ONFOOT_PUNCH&lt;br /&gt;
KEY_ONFOOT_AIM&lt;br /&gt;
KEY_ONFOOT_FIRE&lt;br /&gt;
KEY_ONFOOT_NEXTWEP&lt;br /&gt;
KEY_ONFOOT_PREVWEP&lt;br /&gt;
&lt;br /&gt;
KEY_INCAR_FORWARD&lt;br /&gt;
KEY_INCAR_BACKWARD&lt;br /&gt;
KEY_INCAR_LEFT&lt;br /&gt;
KEY_INCAR_RIGHT&lt;br /&gt;
KEY_INCAR_LOOKLEFT&lt;br /&gt;
KEY_INCAR_LOOKRIGHT&lt;br /&gt;
KEY_INCAR_LEANUP&lt;br /&gt;
KEY_INCAR_LEANDOWN&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Function [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] was used in this example&lt;br /&gt;
&lt;br /&gt;
To know more about this function. visit [[http://forum.vc-mp.org/?topic=212.msg1122#msg1122|&#039;&#039;here&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnKeyDown&amp;diff=19124</id>
		<title>OnKeyDown</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnKeyDown&amp;diff=19124"/>
		<updated>2016-03-16T18:33:38Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: Created page with &amp;quot;__NOTOC__ This function allows the server to inform the player, that he pressed the key and and the key works like a command.  == Syntax ==  &amp;lt;pre&amp;gt;function onKeyDown( player, k...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function allows the server to inform the player, that he pressed the key and and the key works like a command.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onKeyDown( player, key )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The player who presses the key.&lt;br /&gt;
* &#039;&#039;&#039;key&#039;&#039;&#039; - The key player presses.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
In this function i have chosen key &amp;quot;ENTER&amp;quot;. When a player will press the key/button &#039;enter&#039; it will inform the server that the player pressed the key. And the server will perform the work like a Command.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
	enter &amp;lt;- BindKey( true, 0x0D, 0, 0 );  // The Key Code of enter is 0x0D . we will use bindkey function to set the key. And it is required.&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function onKeyDown( player, key )&lt;br /&gt;
{&lt;br /&gt;
	if ( key == enter )&lt;br /&gt;
	{&lt;br /&gt;
		PrivMessage( player, &amp;quot;you Successfully pressed the Key Enter.&amp;quot; );&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Function [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and function [[Scripting/Squirrel/Functions/BindKey|&#039;&#039;BindKey&#039;&#039;]] were used in this example.&lt;br /&gt;
&lt;br /&gt;
you can Find the key codes [[https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx|&#039;&#039;here&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.ID&amp;diff=19121</id>
		<title>Scripting/Squirrel/Functions/Sphere.ID</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.ID&amp;diff=19121"/>
		<updated>2016-03-15T17:00:35Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to check Sphere&#039;s ID.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.ID&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onSphereEntered( player, Sphere )&lt;br /&gt;
{&lt;br /&gt;
   MessagePlayer( &amp;quot;you have entered in a Sphere, Sphere&#039;s ID &amp;quot;+ Sphere.ID, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[onSphereEntered]] was used in this example..&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Sphere_Functions}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Owner&amp;diff=19120</id>
		<title>Scripting/Squirrel/Functions/Sphere.Owner</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Owner&amp;diff=19120"/>
		<updated>2016-03-15T17:00:11Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to check Sphere&#039;s Owner. where Owner stands for &amp;quot;creater of Sphere&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.Owner&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onSphereEntered( player, Sphere )&lt;br /&gt;
{&lt;br /&gt;
  MessagePlayer( &amp;quot;Sphere&#039;s Owner: &amp;quot;+ Sphere.Owner, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[onSphereEntered]] was used in this example..&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Sphere_Functions}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Radius&amp;diff=19119</id>
		<title>Scripting/Squirrel/Functions/Sphere.Radius</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Radius&amp;diff=19119"/>
		<updated>2016-03-15T16:59:27Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to check Sphere&#039;s Radius.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.Radius&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onSphereEntered( player, Sphere )&lt;br /&gt;
{&lt;br /&gt;
   MessagePlayer( &amp;quot;you have entered in a Sphere, Sphere&#039;s Radius: &amp;quot;+ Sphere.Radius, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[onSphereEntered]] was used in this example..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Sphere_Functions}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Pos&amp;diff=19118</id>
		<title>Scripting/Squirrel/Functions/Sphere.Pos</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Pos&amp;diff=19118"/>
		<updated>2016-03-15T16:59:06Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to check Sphere&#039;s Position.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.Pos&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onSphereEntered( player, Sphere )&lt;br /&gt;
{&lt;br /&gt;
   MessagePlayer( &amp;quot;you have entered in a Sphere, Sphere Pos X: &amp;quot;+ Sphere.Pos.x +&amp;quot;, Y: &amp;quot;+ Sphere.Pos.y +&amp;quot;, Z: &amp;quot;+ Sphere.Pos.z , player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
 [[onSphereEntered]] was used in this example..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Sphere_Functions}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Radius&amp;diff=19117</id>
		<title>Scripting/Squirrel/Functions/Sphere.Radius</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Radius&amp;diff=19117"/>
		<updated>2016-03-15T16:58:24Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to check Sphere&#039;s Radius.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.Radius&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onSphereEntered( player, Sphere )&lt;br /&gt;
{&lt;br /&gt;
   MessagePlayer( &amp;quot;you have entered in a Sphere, Sphere&#039;s Radius: &amp;quot;+ Sphere.Radius, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[onSphereEntered]] was used in this example..&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.World&amp;diff=19116</id>
		<title>Scripting/Squirrel/Functions/Sphere.World</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.World&amp;diff=19116"/>
		<updated>2016-03-15T16:57:53Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to check Sphere&#039;s World.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.World&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onSphereEntered( player, Sphere )&lt;br /&gt;
{&lt;br /&gt;
   MessagePlayer( &amp;quot;you have entered in a Sphere, Sphere&#039;s World: &amp;quot;+ Sphere.World, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[onSphereEntered]] was used in this example..&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Sphere_Functions}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Remove&amp;diff=19115</id>
		<title>Scripting/Squirrel/Functions/Sphere.Remove</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Remove&amp;diff=19115"/>
		<updated>2016-03-15T16:56:06Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to Remove a Sphere.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.Remove()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
 if ( cmd == &amp;quot;removesphere&amp;quot; )&lt;br /&gt;
	{	&lt;br /&gt;
               if ( !text ) MessagePlayer( &amp;quot;SYNTAX: /&amp;quot;+cmd+&amp;quot; [Sphere ID]&amp;quot;, player );&lt;br /&gt;
               else&lt;br /&gt;
               {&lt;br /&gt;
			local Sphere = FindSphere( text.tointeger() );&lt;br /&gt;
		&lt;br /&gt;
			if ( !IsNum ) MessagePlayer( &amp;quot;Sphere ID must be in numbers&amp;quot;, player );&lt;br /&gt;
			else if ( !Sphere ) MessagePlayer( &amp;quot;Sphere &amp;quot;+text+&amp;quot; is not created yet.&amp;quot;, player );&lt;br /&gt;
			else&lt;br /&gt;
			{&lt;br /&gt;
				Sphere.Remove();&lt;br /&gt;
				MessagePlayer( &amp;quot;you removed the sphere ID: &amp;quot;+ Sphere.ID, player );&lt;br /&gt;
	       		}&lt;br /&gt;
	        }&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
call [[onPlayerCommand]] and function [[Scripting/Squirrel/Functions/FindSphere|&#039;&#039;FindSphere&#039;&#039;]] were used in this example..&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Sphere_Functions}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerCommand&amp;diff=19114</id>
		<title>OnPlayerCommand</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerCommand&amp;diff=19114"/>
		<updated>2016-03-15T16:51:14Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This is called when a player uses a command.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerCommand( player, cmd, parameters )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* string &#039;&#039;&#039;player&#039;&#039;&#039; - The player that use command.&lt;br /&gt;
* string &#039;&#039;&#039;cmd&#039;&#039;&#039; - This is the command that player used.&lt;br /&gt;
* string &#039;&#039;&#039;parameters&#039;&#039;&#039; - This is the list of the parameters as a string.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example command heal the player if they type &#039;&#039;&#039;/heal&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
 if ( cmd == &amp;quot;heal&amp;quot; )&lt;br /&gt;
 {&lt;br /&gt;
  if ( player.Health == 100 ) PrivMessage( player, &amp;quot;You have the health to maximum.&amp;quot;);&lt;br /&gt;
  else &lt;br /&gt;
  {&lt;br /&gt;
   PrivMessage( player, &amp;quot;You healed successfully.&amp;quot;);&lt;br /&gt;
   player.Health = 100;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Call [[Scripting/Squirrel/Events/Player/onPlayerCommand|onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerWeaponChange&amp;diff=19113</id>
		<title>OnPlayerWeaponChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerWeaponChange&amp;diff=19113"/>
		<updated>2016-03-15T16:50:07Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: Created page with &amp;quot;__NOTOC__ When a player changes his weapon to newone or oldone.  == Syntax ==  &amp;lt;pre&amp;gt;function onPlayerWeaponChange( player, oldwep, newwep )&amp;lt;/pre&amp;gt;  == Parameters ==  * Script...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
When a player changes his weapon to newone or oldone.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerWeaponChange( player, oldwep, newwep )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The player who changes the weapon.&lt;br /&gt;
* &#039;&#039;&#039;oldwep&#039;&#039;&#039; - Players old weapon&lt;br /&gt;
* &#039;&#039;&#039;newwep&#039;&#039;&#039; - Players new weapon&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
If a player will try to change his weapon to &amp;quot;33&amp;quot; ( minigun ), this example will automatically set his weapons ammo to 0. and in result, he won&#039;t be able to use that weapon.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerWeaponChange( player, oldwep, newwep )&lt;br /&gt;
{&lt;br /&gt;
    if ( newwep == 33 )&lt;br /&gt;
    {&lt;br /&gt;
        PrivMessage( player, &amp;quot;it is a blocked weapon&amp;quot; );&lt;br /&gt;
        player.SetWeapon( 33,0 ); //sets weapons ammo to 0.&lt;br /&gt;
    }&lt;br /&gt;
return 1; //returns true for other weapons.&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Function [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and function [[Scripting/Squirrel/Functions/Player.SetWeapon|&#039;&#039;SetWeapon&#039;&#039;]] were used in this example.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerCommand&amp;diff=19112</id>
		<title>OnPlayerCommand</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerCommand&amp;diff=19112"/>
		<updated>2016-03-15T16:48:53Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This is called when a player uses a command.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerCommand( player, cmd, parameters )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* string &#039;&#039;&#039;player&#039;&#039;&#039; - The player that use command.&lt;br /&gt;
* string &#039;&#039;&#039;cmd&#039;&#039;&#039; - This is the command that player used.&lt;br /&gt;
* string &#039;&#039;&#039;parameters&#039;&#039;&#039; - This is the list of the parameters as a string.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example command heal the player if they type &#039;&#039;&#039;/heal&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
 if ( cmd == &amp;quot;heal&amp;quot; )&lt;br /&gt;
 {&lt;br /&gt;
  if ( player.Health == 100 ) PrivMessage( player, &amp;quot;You have the health to maximum.&amp;quot;);&lt;br /&gt;
  else &lt;br /&gt;
  {&lt;br /&gt;
   PrivMessage( player, &amp;quot;You healed successfully.&amp;quot;);&lt;br /&gt;
   player.Health = 100;&lt;br /&gt;
 }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Call [[Scripting/Squirrel/Events/Player/onPlayerCommand|onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player/onPlayerCommand}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerCommand&amp;diff=19111</id>
		<title>OnPlayerCommand</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerCommand&amp;diff=19111"/>
		<updated>2016-03-15T16:45:35Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
When a player changes his weapon to newone or oldone.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerWeaponChange( player, oldwep, newwep )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The player who changes the weapon.&lt;br /&gt;
* &#039;&#039;&#039;oldwep&#039;&#039;&#039; - Players old weapon&lt;br /&gt;
* &#039;&#039;&#039;newwep&#039;&#039;&#039; - Players new weapon&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
If a player will try to change his weapon to &amp;quot;33&amp;quot; ( minigun ), this example will automatically set his weapons ammo to 0. and in result, he won&#039;t be able to use that weapon.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerWeaponChange( player, oldwep, newwep )&lt;br /&gt;
{&lt;br /&gt;
    if ( newwep == 33 )&lt;br /&gt;
    {&lt;br /&gt;
        PrivMessage( player, &amp;quot;it is a blocked weapon&amp;quot; );&lt;br /&gt;
        player.SetWeapon( 33,0 ); //sets weapons ammo to 0.&lt;br /&gt;
    }&lt;br /&gt;
return 1; //returns true for other weapons.&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Function [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and function [[Scripting/Squirrel/Functions/Player.SetWeapon|&#039;&#039;SetWeapon&#039;&#039;]] were used in this example.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerPM&amp;diff=19109</id>
		<title>OnPlayerPM</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerPM&amp;diff=19109"/>
		<updated>2016-03-14T15:06:26Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;this function allows you to send a private Message ( PM ) to a player.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerPM( player, playerTo, text )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The player that sends the message.&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;playerTo&#039;&#039;&#039; - The player to send the message.&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;text&#039;&#039;&#039; - this is the message to send.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerPM( player, playerTo, text )&lt;br /&gt;
{&lt;br /&gt;
	if ( text )&lt;br /&gt;
	{&lt;br /&gt;
		PrivMessage( playerTo, &amp;quot;PrivateMessage From: [ &amp;quot;+player+&amp;quot; ] &amp;gt;&amp;gt; &amp;quot;+text+&amp;quot;.&amp;quot;);&lt;br /&gt;
		PrivMessage( player, &amp;quot;PM: [&amp;quot;+text+&amp;quot;] was sent to &amp;quot;+ playerTo );&lt;br /&gt;
	}&lt;br /&gt;
	else PrivMessage( player, &amp;quot;SYNTAX: /msg [player&#039;s ID] [text]&amp;quot; );&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The function [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and call [[onPlayerPM]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerPM&amp;diff=19108</id>
		<title>OnPlayerPM</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerPM&amp;diff=19108"/>
		<updated>2016-03-14T15:01:33Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;this function allows you to send a private Message ( PM ) to a player.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerPM( player, playerTo, text )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The player that sends the message.&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;playerTo&#039;&#039;&#039; - The player to send the message.&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;text&#039;&#039;&#039; - this is the message to send.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerPM( player, playerTo, text )&lt;br /&gt;
{&lt;br /&gt;
	if ( text )&lt;br /&gt;
	{&lt;br /&gt;
		PrivMessage( playerTo, &amp;quot;PrivateMessage From: [ &amp;quot;+player+&amp;quot; ] &amp;gt;&amp;gt; &amp;quot;+text+&amp;quot;.&amp;quot;);&lt;br /&gt;
		PrivMessage( player, &amp;quot;you successfully sent PM to player: &amp;quot;+ playerTo );&lt;br /&gt;
	}&lt;br /&gt;
	else PrivMessage( player, &amp;quot;SYNTAX: /msg [player&#039;s ID] [text]&amp;quot; );&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The function [[Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and call [[onPlayerPM]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerRequestSpawn&amp;diff=19107</id>
		<title>OnPlayerRequestSpawn</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerRequestSpawn&amp;diff=19107"/>
		<updated>2016-03-14T14:49:35Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;when a players requests to spawn.&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerRequestSpawn( player )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The Pointer of the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerRequestSpawn( player )&lt;br /&gt;
{&lt;br /&gt;
PrivMessage( player, &amp;quot;you will be spawned in 3 seconds.&amp;quot; );&lt;br /&gt;
NewTimer( &amp;quot;spawnplayer&amp;quot;, 3000, 1, player.ID );&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Timers Call Back&lt;br /&gt;
function spawnplayer( ID )&lt;br /&gt;
{&lt;br /&gt;
	local player = FindPlayer( ID );&lt;br /&gt;
	if ( player )&lt;br /&gt;
	{&lt;br /&gt;
	player.Spawn();&lt;br /&gt;
	PrivMessage( player, &amp;quot;you have been spawned&amp;quot; );&lt;br /&gt;
	}&lt;br /&gt;
	else return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
The function [[http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/PrivMessage|&#039;&#039;PrivMessage&#039;&#039;]] and call [[onPlayerRequestSpawn]] were used in this example. More info about them in corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerRequestSpawn&amp;diff=19106</id>
		<title>OnPlayerRequestSpawn</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerRequestSpawn&amp;diff=19106"/>
		<updated>2016-03-14T14:47:50Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;when a players requests to spawn.&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerRequestSpawn( player )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|&#039;&#039;Player&#039;&#039;]] &#039;&#039;&#039;player&#039;&#039;&#039; - The Pointer of the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerRequestSpawn( player )&lt;br /&gt;
{&lt;br /&gt;
PrivMessage( player, &amp;quot;you will be spawned in 3 seconds.&amp;quot; );&lt;br /&gt;
NewTimer( &amp;quot;spawnplayer&amp;quot;, 3000, 1, player.ID );&lt;br /&gt;
return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Timers Call Back&lt;br /&gt;
function spawnplayer( ID )&lt;br /&gt;
{&lt;br /&gt;
	local player = FindPlayer( ID );&lt;br /&gt;
	if ( player )&lt;br /&gt;
	{&lt;br /&gt;
	player.Spawn();&lt;br /&gt;
	PrivMessage( player, &amp;quot;you have been spawned&amp;quot; );&lt;br /&gt;
	}&lt;br /&gt;
	else return 0;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
The function [[Scripting/Squirrel/Functions/MessagePlayer|&#039;&#039;MessagePlayer&#039;&#039;]] and call [[onPlayerRequestSpawn]] were used in this example. More info about them in corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Events ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Remove&amp;diff=19105</id>
		<title>Scripting/Squirrel/Functions/Sphere.Remove</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Remove&amp;diff=19105"/>
		<updated>2016-03-14T14:36:20Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to Remove a Sphere.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.Remove()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
 if ( cmd == &amp;quot;removesphere&amp;quot; )&lt;br /&gt;
	{	&lt;br /&gt;
               if ( !text ) MessagePlayer( &amp;quot;SYNTAX: /&amp;quot;+cmd+&amp;quot; [Sphere ID]&amp;quot;, player );&lt;br /&gt;
               else&lt;br /&gt;
               {&lt;br /&gt;
			local Sphere = FindSphere( text.tointeger() );&lt;br /&gt;
		&lt;br /&gt;
			if ( !IsNum ) MessagePlayer( &amp;quot;Sphere ID must be in numbers&amp;quot;, player );&lt;br /&gt;
			else if ( !Sphere ) MessagePlayer( &amp;quot;Sphere &amp;quot;+text+&amp;quot; is not created yet.&amp;quot;, player );&lt;br /&gt;
			else&lt;br /&gt;
			{&lt;br /&gt;
				Sphere.Remove();&lt;br /&gt;
				MessagePlayer( &amp;quot;you removed the sphere ID: &amp;quot;+ Sphere.ID, player );&lt;br /&gt;
	       		}&lt;br /&gt;
	        }&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
 [[http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Events/Player/onPlayerCommand|&#039;&#039;onPlayerCommand&#039;&#039;]], [[http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/FindSphere|&#039;&#039;FindSphere&#039;&#039;]] was used in this example..&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Remove&amp;diff=19104</id>
		<title>Scripting/Squirrel/Functions/Sphere.Remove</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Remove&amp;diff=19104"/>
		<updated>2016-03-14T14:33:13Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: Created page with &amp;quot;allows you to Remove a Sphere.  == Syntax ==  &amp;lt;pre&amp;gt;Sphere.Remove()&amp;lt;/pre&amp;gt;   == Example ==  &amp;lt;source lang=D&amp;gt; function onPlayerCommand( player, cmd, text ) {  if ( cmd == &amp;quot;removes...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to Remove a Sphere.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.Remove()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
 if ( cmd == &amp;quot;removesphere&amp;quot; )&lt;br /&gt;
	{	&lt;br /&gt;
               if ( !text ) MessagePlayer( &amp;quot;SYNTAX: /&amp;quot;+cmd+&amp;quot; [Sphere ID]&amp;quot;, player );&lt;br /&gt;
               else&lt;br /&gt;
               {&lt;br /&gt;
			local Sphere = FindSphere( text.tointeger() );&lt;br /&gt;
		&lt;br /&gt;
			if ( !IsNum ) MessagePlayer( &amp;quot;Sphere ID must be in numbers&amp;quot;, player );&lt;br /&gt;
			else if ( !Sphere ) MessagePlayer( &amp;quot;Sphere &amp;quot;+text+&amp;quot; is not created yet.&amp;quot;, player );&lt;br /&gt;
			else&lt;br /&gt;
			{&lt;br /&gt;
				Sphere.Remove();&lt;br /&gt;
				MessagePlayer( &amp;quot;you removed the sphere ID: &amp;quot;+ Sphere.ID, player );&lt;br /&gt;
	       		}&lt;br /&gt;
	        }&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
 [[http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Events/Player/onPlayerCommand|&#039;&#039;onPlayerCommand&#039;&#039;]] was used in this example..&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.World&amp;diff=19095</id>
		<title>Scripting/Squirrel/Functions/Sphere.World</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.World&amp;diff=19095"/>
		<updated>2016-03-13T20:08:27Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: Created page with &amp;quot;allows you to check Sphere&amp;#039;s World.  == Syntax ==  &amp;lt;pre&amp;gt;Sphere.World&amp;lt;/pre&amp;gt;   == Example ==  &amp;lt;source lang=D&amp;gt; function onSphereEntered( player, Sphere ) {    MessagePlayer( &amp;quot;you...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to check Sphere&#039;s World.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.World&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onSphereEntered( player, Sphere )&lt;br /&gt;
{&lt;br /&gt;
   MessagePlayer( &amp;quot;you have entered in a Sphere, Sphere&#039;s World: &amp;quot;+ Sphere.World, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
 [[http://wiki.vc-mp.org/wiki/OnSphereEntered|&#039;&#039;onSphereEntered&#039;&#039;]] was used in this example..&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Radius&amp;diff=19094</id>
		<title>Scripting/Squirrel/Functions/Sphere.Radius</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Radius&amp;diff=19094"/>
		<updated>2016-03-13T20:05:19Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to check Sphere&#039;s Radius.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.Radius&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onSphereEntered( player, Sphere )&lt;br /&gt;
{&lt;br /&gt;
   MessagePlayer( &amp;quot;you have entered in a Sphere, Sphere&#039;s Radius: &amp;quot;+ Sphere.Radius, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
 [[http://wiki.vc-mp.org/wiki/OnSphereEntered|&#039;&#039;onSphereEntered&#039;&#039;]] was used in this example..&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Radius&amp;diff=19093</id>
		<title>Scripting/Squirrel/Functions/Sphere.Radius</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Radius&amp;diff=19093"/>
		<updated>2016-03-13T20:04:55Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: Created page with &amp;quot;allows you to check Sphere&amp;#039;s Radius.  == Syntax ==  &amp;lt;pre&amp;gt;Sphere.Radius&amp;lt;/pre&amp;gt;   == Example ==  &amp;lt;source lang=D&amp;gt; function onSphereEntered( player, Sphere ) {    MessagePlayer( &amp;quot;y...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to check Sphere&#039;s Radius.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.Radius&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onSphereEntered( player, Sphere )&lt;br /&gt;
{&lt;br /&gt;
   MessagePlayer( &amp;quot;you have entered in a Sphere, Sphere&#039;s Radius&amp;quot;+ Sphere.Radius, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
 [[http://wiki.vc-mp.org/wiki/OnSphereEntered|&#039;&#039;onSphereEntered&#039;&#039;]] was used in this example..&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Pos&amp;diff=19092</id>
		<title>Scripting/Squirrel/Functions/Sphere.Pos</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Pos&amp;diff=19092"/>
		<updated>2016-03-13T20:02:46Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to check Sphere&#039;s Position.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.Pos&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onSphereEntered( player, Sphere )&lt;br /&gt;
{&lt;br /&gt;
   MessagePlayer( &amp;quot;you have entered in a Sphere, Sphere Pos X: &amp;quot;+ Sphere.Pos.x +&amp;quot;, Y: &amp;quot;+ Sphere.Pos.y +&amp;quot;, Z: &amp;quot;+ Sphere.Pos.z , player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
 [[http://wiki.vc-mp.org/wiki/OnSphereEntered|&#039;&#039;onSphereEntered&#039;&#039;]] was used in this example..&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Pos&amp;diff=19091</id>
		<title>Scripting/Squirrel/Functions/Sphere.Pos</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Sphere.Pos&amp;diff=19091"/>
		<updated>2016-03-13T20:02:08Z</updated>

		<summary type="html">&lt;p&gt;Decent 946: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;allows you to check Sphere&#039;s Position.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Sphere.Pos&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=D&amp;gt;&lt;br /&gt;
function onSphereEntered( player, Sphere )&lt;br /&gt;
{&lt;br /&gt;
   MessagePlayer( &amp;quot;Sphere Pos X: &amp;quot;+ Sphere.Pos.x +&amp;quot;, Y: &amp;quot;+ Sphere.Pos.y +&amp;quot;, Z: &amp;quot;+ Sphere.Pos.z , player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
 [[http://wiki.vc-mp.org/wiki/OnSphereEntered|&#039;&#039;onSphereEntered&#039;&#039;]] was used in this example..&lt;/div&gt;</summary>
		<author><name>Decent 946</name></author>
	</entry>
</feed>