<?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=Thijn</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=Thijn"/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/wiki/Special:Contributions/Thijn"/>
	<updated>2026-04-16T06:07:34Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerKill&amp;diff=20350</id>
		<title>OnPlayerKill</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerKill&amp;diff=20350"/>
		<updated>2019-06-22T20:43:00Z</updated>

		<summary type="html">&lt;p&gt;Thijn: Undo revision 20321 by Aventador (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called every time a player kills another (and they&#039;re not in the same team). &lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerKill( killer, player, reason, bodypart )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - He is who is attacking&lt;br /&gt;
* &#039;&#039;&#039;killer&#039;&#039;&#039; - He is who is being killed&lt;br /&gt;
* &#039;&#039;&#039;reason&#039;&#039;&#039; - [[Weapons|Weapon ID]]&lt;br /&gt;
* &#039;&#039;&#039;bodypart&#039;&#039;&#039; - [[Scripting/Squirrel/Constants#Body_Part|Bodypart ID]]&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 onPlayerKill( killer, player, reason, bodypart )&lt;br /&gt;
{&lt;br /&gt;
    Message( &amp;quot;** &amp;quot; + killer.Name + &amp;quot; killed &amp;quot; + player.Name + &amp;quot; (&amp;quot; + GetWeaponName( reason ) + &amp;quot;) (&amp;quot; + bodypart + &amp;quot;)&amp;quot; );    &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 functions [[Scripting/Squirrel/Functions/Message|Message]], [[Scripting/Squirrel/Functions/Player.Name|Player.Name]], [[Scripting/Squirrel/Functions/GetWeaponName|GetWeaponName]] were used in this example. More info about them in 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Server-side_Scripting_Resources&amp;diff=20349</id>
		<title>Server-side Scripting Resources</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Server-side_Scripting_Resources&amp;diff=20349"/>
		<updated>2019-06-22T20:42:47Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Main Page giant banner}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{{VCMPLangs&lt;br /&gt;
| title=Server-side Scripting Resources&lt;br /&gt;
| hu=Server-side_Scripting_Resources/hu&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
{| style=&amp;quot;width:100%; background:none; border:none; margin:0.5em 0; padding:none;&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width:auto; background:#FEFBF6; border:1px solid #79542B;&amp;quot; valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&amp;lt;div id=&amp;quot;mf-index&amp;quot;&amp;gt;&lt;br /&gt;
{| style=&amp;quot;padding:0; width:100%;&amp;quot; | &lt;br /&gt;
! class=&amp;quot;mp-content-header mp-title-gradient&amp;quot; | Server-side Scripting Resources&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width:100%; background:none; border:none; margin:0.5em 0; padding:none;&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
&amp;lt;div id=&amp;quot;mf-index&amp;quot;&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
Squirrel is a high level imperative/OO programming language, designed to be a powerful scripting tool that fits in the size, memory bandwidth, and real-time requirements of applications like games.&lt;br /&gt;
&lt;br /&gt;
Squirrel is inspired by languages like Python, Javascript and especially Lua.&lt;br /&gt;
&lt;br /&gt;
Squirrel&#039;s syntax is similar to C/C++/Java etc... but the language has a very dynamic nature like Python/Lua.&lt;br /&gt;
&lt;br /&gt;
== Scripts ==&lt;br /&gt;
&lt;br /&gt;
The following is a list of example Squirrel scripts&lt;br /&gt;
&lt;br /&gt;
* [https://bitbucket.org/stormeus/vl8-pb400 0.4 Public Beta (#2 and #3) Script]&lt;br /&gt;
* [http://forum.vc-mp.org/?topic=332.0 ADM Script]&lt;br /&gt;
* [http://forum.vc-mp.org/?topic=418.0 Doomplay match]&lt;br /&gt;
&lt;br /&gt;
== Useful Resources ==&lt;br /&gt;
&lt;br /&gt;
The following is a list of handy releases/resources to help you with big stuff&lt;br /&gt;
&lt;br /&gt;
* [http://forum.vc-mp.org/?topic=1303.0 VC:MP Ingame Map Editor]&lt;br /&gt;
&lt;br /&gt;
== Reference ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions|Server Functions]]&lt;br /&gt;
* [[Scripting/Squirrel/Events|Server Events]]&lt;br /&gt;
* [[Scripting/Squirrel/Constants|Constants]]&lt;br /&gt;
&lt;br /&gt;
== Tutorials / Documentation ==&lt;br /&gt;
&lt;br /&gt;
This is a list of available tutorials and documents on Squirrel scripting in general.&lt;br /&gt;
These list all available squirrel commands aside from things added by the VC:MP Squirrel module, and are not listed on this wiki.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;VC:MP Squirrel Scripting&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
* [http://forum.vc-mp.org/?topic=717.0 -WIP- Scripting Video Tutorials (by S.L.C)]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;General Squirrel Scripting&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
* [http://squirrel-lang.org/squirreldoc/ Squirrel Reference and Standard Libraries Manual (Online)]&lt;br /&gt;
* [http://squirrel-lang.org/squirreldoc/squirrel3.pdf Squirrel Reference Manual (PDF)]&lt;br /&gt;
* [http://squirrel-lang.org/squirreldoc/sqstdlib3.pdf Squirrel Standard Libraries Manual (PDF)]&lt;br /&gt;
* [https://electricimp.com/docs/squirrel An excellent Squirrel Programming Guide for beginners]&lt;br /&gt;
&lt;br /&gt;
== Official plugins ==&lt;br /&gt;
* [https://bitbucket.org/stormeus/0.4-announce/downloads Announce]&lt;br /&gt;
* [https://bitbucket.org/stormeus/0.4-confloader/downloads ConfLoader]&lt;br /&gt;
* [https://bitbucket.org/stormeus/0.4-hashing-algorithms/downloads Hashing Algorithms]&lt;br /&gt;
* [https://bitbucket.org/stormeus/0.4-iniparser/downloads INIParser]&lt;br /&gt;
* [https://bitbucket.org/stormeus/0.4-mysql/downloads MySQL]&lt;br /&gt;
* [https://bitbucket.org/stormeus/0.4-sockets/downloads Sockets]&lt;br /&gt;
* [https://bitbucket.org/stormeus/0.4-sqlite/downloads SQLite]&lt;br /&gt;
* [https://bitbucket.org/stormeus/0.4-squirrel/downloads Squirrel]&lt;br /&gt;
&lt;br /&gt;
Plugin packages are also available for compact downloading and updating.&lt;br /&gt;
* [http://files.thijn.ovh/download/3ad83726d7a7eee9264f500831e3b898/vcmp_04rel004_win32-plug_170220.zip Windows (x86) Package]&lt;br /&gt;
* [http://files.thijn.ovh/download/b7f8ccd07e4d2118e535227f2185706f/vcmp_04rel004_win64-plug_170220.zip Windows (x64) Package]&lt;br /&gt;
* [http://files.thijn.ovh/download/504c5023ed34f9d655039d2003ca4fa2/vcmp_04rel004_lin32-plug_170220.zip Linux (x86) Package]&lt;br /&gt;
* [http://files.thijn.ovh/download/e28b0ee6d2fe39afd019245258507290/vcmp_04rel004_lin64-plug_170220.zip Linux (x64) Package]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Talk:Main_Page&amp;diff=20348</id>
		<title>Talk:Main Page</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Talk:Main_Page&amp;diff=20348"/>
		<updated>2019-06-22T20:41:16Z</updated>

		<summary type="html">&lt;p&gt;Thijn: Undo revision 20329 by Aventador (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pre&amp;gt;Main page look and feel may be replaced soon!&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Weapons&amp;diff=20347</id>
		<title>Weapons</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Weapons&amp;diff=20347"/>
		<updated>2019-06-22T20:41:10Z</updated>

		<summary type="html">&lt;p&gt;Thijn: Undo revision 20333 by Aventador (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Main Page giant banner}}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width:100%; background:none; border:none; margin:0.5em 0; padding:none;&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;width:auto; background:#FEFBF6; border:1px solid #79542B;&amp;quot; valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&amp;lt;div id=&amp;quot;mf-index&amp;quot;&amp;gt;&lt;br /&gt;
{| style=&amp;quot;padding:0; width:100%;&amp;quot; | &lt;br /&gt;
! class=&amp;quot;mp-content-header mp-title-gradient&amp;quot; | Standard Weapons&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;padding:10px;&amp;quot; |&lt;br /&gt;
This is the full list of default weapons, but let me tell you something: &lt;br /&gt;
*You can add your own weapons in your server !! For more details, check this =&amp;gt; [[Custom_Files#Weapons|Custom Weapons]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width:100%; background:none; border:none; margin:0.5em 0; padding:none;&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;0&amp;quot;&lt;br /&gt;
| style=&amp;quot;width:auto; background:#FEFBF6; border:1px solid #79542B;&amp;quot; valign=&amp;quot;top&amp;quot; |&lt;br /&gt;
&amp;lt;div id=&amp;quot;mf-index&amp;quot;&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!Weapon&lt;br /&gt;
!Weapon ID&lt;br /&gt;
!Model ID&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_0.png]]&lt;br /&gt;
|0&lt;br /&gt;
|293&lt;br /&gt;
|Fists&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_1.png]]&lt;br /&gt;
|1&lt;br /&gt;
|259&lt;br /&gt;
|Brass Knuckles&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_2.png]]&lt;br /&gt;
|2&lt;br /&gt;
|260&lt;br /&gt;
|Screwdriver&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_3.png]]&lt;br /&gt;
|3&lt;br /&gt;
|261&lt;br /&gt;
|Golfclub&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_4.png]]&lt;br /&gt;
|4&lt;br /&gt;
|262&lt;br /&gt;
|Nitestick&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_5.png]]&lt;br /&gt;
|5&lt;br /&gt;
|263&lt;br /&gt;
|Knife&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_6.png]]&lt;br /&gt;
|6&lt;br /&gt;
|264&lt;br /&gt;
|Baseball bat&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_7.png]]&lt;br /&gt;
|7&lt;br /&gt;
|265&lt;br /&gt;
|Hammer&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_8.png]]&lt;br /&gt;
|8&lt;br /&gt;
|266&lt;br /&gt;
|Meat Cleaver&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_9.png]]&lt;br /&gt;
|9&lt;br /&gt;
|267&lt;br /&gt;
|Machete&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_10.png]]&lt;br /&gt;
|10&lt;br /&gt;
|268&lt;br /&gt;
|Katana&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_11.png]]&lt;br /&gt;
|11&lt;br /&gt;
|269&lt;br /&gt;
|Chainsaw&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_12.png]]&lt;br /&gt;
|12&lt;br /&gt;
|270&lt;br /&gt;
|Grenades&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_12.png]]&lt;br /&gt;
|13&lt;br /&gt;
|291&lt;br /&gt;
|Remote Grenades&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_14.png]]&lt;br /&gt;
|14&lt;br /&gt;
|271&lt;br /&gt;
|Teargas&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_15.png]]&lt;br /&gt;
|15&lt;br /&gt;
|272&lt;br /&gt;
|Molotov Cocktails&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_30.png]]&lt;br /&gt;
|16&lt;br /&gt;
|273&lt;br /&gt;
|Missile&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_17.png]]&lt;br /&gt;
|17&lt;br /&gt;
|274&lt;br /&gt;
|Colt .45&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_18.png]]&lt;br /&gt;
|18&lt;br /&gt;
|275&lt;br /&gt;
|Python&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_19.png]]&lt;br /&gt;
|19&lt;br /&gt;
|277&lt;br /&gt;
|Shotgun&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_20.png]]&lt;br /&gt;
|20&lt;br /&gt;
|278&lt;br /&gt;
|Spaz Shotgun&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_21.png]]&lt;br /&gt;
|21&lt;br /&gt;
|279&lt;br /&gt;
|Stubby Shotgun&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_22.png]]&lt;br /&gt;
|22&lt;br /&gt;
|281&lt;br /&gt;
|Tec 9&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_23.png]]&lt;br /&gt;
|23&lt;br /&gt;
|282&lt;br /&gt;
|Uzi&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_24.png]]&lt;br /&gt;
|24&lt;br /&gt;
|283&lt;br /&gt;
|Ingram&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_25.png]]&lt;br /&gt;
|25&lt;br /&gt;
|284&lt;br /&gt;
|MP5&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_26.png]]&lt;br /&gt;
|26&lt;br /&gt;
|280&lt;br /&gt;
|M4&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_27.png]]&lt;br /&gt;
|27&lt;br /&gt;
|276&lt;br /&gt;
|Ruger&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_28.png]]&lt;br /&gt;
|28&lt;br /&gt;
|285&lt;br /&gt;
|Sniper Rifle&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_29.png]]&lt;br /&gt;
|29&lt;br /&gt;
|286&lt;br /&gt;
|Laser Sniper&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_30.png]]&lt;br /&gt;
|30&lt;br /&gt;
|287&lt;br /&gt;
|Rocket Launcher&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_31.png]]&lt;br /&gt;
|31&lt;br /&gt;
|288&lt;br /&gt;
|Flame Thrower&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_32.png]]&lt;br /&gt;
|32&lt;br /&gt;
|289&lt;br /&gt;
|M60&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_33.png]]&lt;br /&gt;
|33&lt;br /&gt;
|290&lt;br /&gt;
|Minigun&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|34&lt;br /&gt;
|&lt;br /&gt;
|Bomb&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|35&lt;br /&gt;
|&lt;br /&gt;
|Helicannon&lt;br /&gt;
|-&lt;br /&gt;
|[[File:Weapon_36.png]]&lt;br /&gt;
|36&lt;br /&gt;
|292&lt;br /&gt;
|Camera&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|39&lt;br /&gt;
|&lt;br /&gt;
|Vehicle&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|40&lt;br /&gt;
|&lt;br /&gt;
|Heli-blades&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|41&lt;br /&gt;
|&lt;br /&gt;
|Explosion&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|42&lt;br /&gt;
|&lt;br /&gt;
|Drive-By&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|43&lt;br /&gt;
|&lt;br /&gt;
|Drown&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|44&lt;br /&gt;
|&lt;br /&gt;
|Fall&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|51&lt;br /&gt;
|&lt;br /&gt;
|Explosion&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|60&lt;br /&gt;
|&lt;br /&gt;
|Heli-blades&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
|70&lt;br /&gt;
|&lt;br /&gt;
|Suicide&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=How_to_join_a_server&amp;diff=20346</id>
		<title>How to join a server</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=How_to_join_a_server&amp;diff=20346"/>
		<updated>2019-06-22T20:41:02Z</updated>

		<summary type="html">&lt;p&gt;Thijn: Undo revision 20334 by Aventador (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to join a server ==&lt;br /&gt;
joining a server is very easy , if it was your you must make sure that&lt;br /&gt;
1-Set the Username from Tools &amp;gt; Settings&lt;br /&gt;
2-Choosed the directory of GTA VC&lt;br /&gt;
after that choose Internet TAB&lt;br /&gt;
from any server right click &amp;gt; connect or use Enter&lt;br /&gt;
if you see a green sqaure next to a server then it is open if it red then it is locked maybe for maintenance or for private gaming.&lt;br /&gt;
&lt;br /&gt;
== VC:MP Console ==&lt;br /&gt;
to use the console of VC:MP in a server use T letter to chat or enter a command &lt;br /&gt;
&#039;&#039;&#039;Commands That work in all server&#039;&#039;&#039; /kill for seduce and /q for rapid quitting&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetWeaponSync&amp;diff=20345</id>
		<title>Scripting/Squirrel/Functions/SetWeaponSync</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetWeaponSync&amp;diff=20345"/>
		<updated>2019-06-22T20:40:54Z</updated>

		<summary type="html">&lt;p&gt;Thijn: Undo revision 20338 by Aventador (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Scripting/Noop}}&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Server_Settings}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Server_Settings _Functions]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions&amp;diff=20344</id>
		<title>Scripting/Squirrel/Functions</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions&amp;diff=20344"/>
		<updated>2019-06-22T20:40:26Z</updated>

		<summary type="html">&lt;p&gt;Thijn: Undo revision 20339 by Aventador (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Administrative Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Administrative Functions}}&lt;br /&gt;
&lt;br /&gt;
== Checkpoint Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Checkpoint Functions}}&lt;br /&gt;
&lt;br /&gt;
== Data Structures ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Data Structures}}&lt;br /&gt;
&lt;br /&gt;
== Game Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Game Functions}}&lt;br /&gt;
&lt;br /&gt;
== Hashing Functions (In the &amp;quot;Hashing&amp;quot; plugin) ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Hashing Functions}}&lt;br /&gt;
&lt;br /&gt;
== INI Functions (In the &amp;quot;INIParser&amp;quot; plugin) ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;br /&gt;
&lt;br /&gt;
== Messages ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Messages}}&lt;br /&gt;
&lt;br /&gt;
== MySQL Functions (In the &amp;quot;MySQL&amp;quot; plugin) ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/MySQL Functions}}&lt;br /&gt;
&lt;br /&gt;
== Object Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Object Functions}}&lt;br /&gt;
&lt;br /&gt;
== Pickup Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Pickup Functions}}&lt;br /&gt;
&lt;br /&gt;
== Player Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player Functions}}&lt;br /&gt;
&lt;br /&gt;
== SQLite Functions (In the &amp;quot;SQLite&amp;quot; plugin) ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/SQLite Functions}}&lt;br /&gt;
&lt;br /&gt;
== Server Settings ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Server Settings}}&lt;br /&gt;
&lt;br /&gt;
== Socket Functions (In the &amp;quot;Socket&amp;quot; plugin) ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Socket Functions}}&lt;br /&gt;
&lt;br /&gt;
== Spawn and Wasted Screen Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Spawn and Wasted Screen Functions}}&lt;br /&gt;
&lt;br /&gt;
== Timer Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Timer Functions}}&lt;br /&gt;
&lt;br /&gt;
== Vehicle Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Vehicle Functions}}&lt;br /&gt;
&lt;br /&gt;
== Weapon Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Weapon Functions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Deprecated Functions ==&lt;br /&gt;
&#039;&#039;These functions are for compatibility, but may be removed in future versions.&#039;&#039;&lt;br /&gt;
{{Scripting/Squirrel/Functions/Deprecated}}&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=User:MaricruzWalsh7&amp;diff=20343</id>
		<title>User:MaricruzWalsh7</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=User:MaricruzWalsh7&amp;diff=20343"/>
		<updated>2019-06-22T20:39:56Z</updated>

		<summary type="html">&lt;p&gt;Thijn: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=User_talk:G&amp;diff=20342</id>
		<title>User talk:G</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=User_talk:G&amp;diff=20342"/>
		<updated>2019-06-22T20:39:27Z</updated>

		<summary type="html">&lt;p&gt;Thijn: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Main_Page&amp;diff=20341</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Main_Page&amp;diff=20341"/>
		<updated>2019-06-22T20:38:26Z</updated>

		<summary type="html">&lt;p&gt;Thijn: Removed redirect to User talk:G&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Main Page}}&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerExitVehicle&amp;diff=19925</id>
		<title>OnPlayerExitVehicle</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerExitVehicle&amp;diff=19925"/>
		<updated>2017-01-30T22:22:13Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called when a player exits a Vehicle.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;onPlayerExitVehicle( player, vehicle )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;CPlayer&#039;&#039; &#039;&#039;&#039;player&#039;&#039;&#039; - The player instance, or, the one who is exiting the vehicle.&lt;br /&gt;
* &#039;&#039;CVehicle&#039;&#039; &#039;&#039;&#039;player&#039;&#039;&#039; - The vehicle instance, or, the vehicle which is being exited by the player.&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 onPlayerExitVehicle( player, vehicle )&lt;br /&gt;
{&lt;br /&gt;
Message( player.Name + &amp;quot; has exited &amp;quot; + GetVehicleNameFromModel( vehicle.Model ) + &amp;quot;.&amp;quot; );&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/Vehicle_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Vehicle_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnVehicleHealthChange&amp;diff=19924</id>
		<title>OnVehicleHealthChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnVehicleHealthChange&amp;diff=19924"/>
		<updated>2017-01-30T22:22:03Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This event is called when a vehicles Health is changed.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;pre&amp;gt;OnVehicleHealthChange( vehicle, oldHP, newHP )&amp;lt;/pre&amp;gt;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function OnVehicleHealthChange( vehicle, oldHP, newHP )&lt;br /&gt;
{&lt;br /&gt;
   Message(&amp;quot;Vehicle: &amp;quot;+vehicle+&amp;quot;&#039;s health has been changed to &amp;quot;+newHP+&amp;quot; from &amp;quot;+oldHP)&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Vehicle_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Vehicle_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnVehicleExplode&amp;diff=19923</id>
		<title>OnVehicleExplode</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnVehicleExplode&amp;diff=19923"/>
		<updated>2017-01-30T22:21:55Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called when a vehicle gets exploded.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;onVehicleExplode( vehicle )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;CVehicle&#039;&#039; &#039;&#039;&#039;vehicle&#039;&#039;&#039; - The vehicle instance, or, the vehicle which got exploded.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;function onVehicleExplode( vehicle ) {&lt;br /&gt;
Message( vehicle.ID + &amp;quot;, &amp;quot; + GetVehicleNameFromModel( vehicle.Model ) + &amp;quot; got exploded.&amp;quot;);&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Vehicle_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Vehicle_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerEnterVehicle&amp;diff=19922</id>
		<title>OnPlayerEnterVehicle</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerEnterVehicle&amp;diff=19922"/>
		<updated>2017-01-30T22:21:48Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called when a player enters a Vehicle.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;onPlayerEnterVehicle( player, vehicle, door )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;CPlayer&#039;&#039; &#039;&#039;&#039;player&#039;&#039;&#039; - The player instance, or the one who is trying to enter.&lt;br /&gt;
* &#039;&#039;CVehicle&#039;&#039; &#039;&#039;&#039;vehicle&#039;&#039;&#039; - The vehicle instance, or the vehicle which is being entered by the player.&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;door&#039;&#039;&#039; - The door in which the player is entering, i.e, 0 for driver, 1 for passenger.&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 onPlayerEnterVehicle( player, vehicle, door )&lt;br /&gt;
{&lt;br /&gt;
Message( player.Name + &amp;quot; has Entered &amp;quot;+GetVehicleNameFromModel( vehicle.Model ) + &amp;quot;.&amp;quot; );&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/Vehicle_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Vehicle_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnVehicleRespawn&amp;diff=19921</id>
		<title>OnVehicleRespawn</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnVehicleRespawn&amp;diff=19921"/>
		<updated>2017-01-30T22:21:42Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called when a vehicle is respawned.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;onVehicleRespawn( vehicle )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;CVehicle&#039;&#039; &#039;&#039;&#039;vehicle&#039;&#039;&#039; - The vehicle instance, or the vehicle which is being respawned.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;function onVehicleRespawn( vehicle ) {&lt;br /&gt;
Message( vehicle.ID + &amp;quot; respawned!&amp;quot;);&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Vehicle_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Vehicle_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerEnteringVehicle&amp;diff=19920</id>
		<title>OnPlayerEnteringVehicle</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerEnteringVehicle&amp;diff=19920"/>
		<updated>2017-01-30T22:21:35Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called when a player tries to enter a vehicle&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;onPlayerEnteringVehicle( player, vehicle, door )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;CPlayer&#039;&#039; &#039;&#039;&#039;player&#039;&#039;&#039; - The player instance, or the one who is trying to enter.&lt;br /&gt;
* &#039;&#039;CVehicle&#039;&#039; &#039;&#039;&#039;vehicle&#039;&#039;&#039; - The vehicle instance, or the vehicle which is being entered by the player.&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;door&#039;&#039;&#039; - The door in which the player is entering, i.e, 0 for driver, 1 for passenger.&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 onPlayerEnteringVehicle( player, vehicle, door )&lt;br /&gt;
{&lt;br /&gt;
Message( player.Name + &amp;quot; is entering &amp;quot; + GetVehicleNameFromModel( vehicle.Model ) + &amp;quot;.&amp;quot; );&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/Vehicle_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Vehicle_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnSphereExited&amp;diff=19919</id>
		<title>OnSphereExited</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnSphereExited&amp;diff=19919"/>
		<updated>2017-01-30T22:21:21Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called when a players exits a sphere.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;onSphereExited( player, sphere )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;CPlayer&#039;&#039; &#039;&#039;&#039;player&#039;&#039;&#039; - The player instance, or the one who exited the sphere.&lt;br /&gt;
* &#039;&#039;CSphere&#039;&#039; &#039;&#039;&#039;sphere&#039;&#039;&#039; - The sphere instance, or the sphere which got exited by the player&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;function onSphereExited( player, sphere ){&lt;br /&gt;
PrivMessage(player,&amp;quot;You exited sphere number &amp;quot; + sphere.ID );&lt;br /&gt;
}&amp;lt;/pre&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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnScriptLoad&amp;diff=19918</id>
		<title>OnScriptLoad</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnScriptLoad&amp;diff=19918"/>
		<updated>2017-01-30T22:20:27Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Description ==&lt;br /&gt;
&lt;br /&gt;
Executed whenever the script is loaded (including reload)&lt;br /&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;
    print( &amp;quot;== Loaded Squirrel VC:MP Script ==&amp;quot; );&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/Server_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Server_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnSphereEntered&amp;diff=19917</id>
		<title>OnSphereEntered</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnSphereEntered&amp;diff=19917"/>
		<updated>2017-01-30T22:20:21Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &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;
== 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;re entered 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnScriptUnload&amp;diff=19916</id>
		<title>OnScriptUnload</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnScriptUnload&amp;diff=19916"/>
		<updated>2017-01-30T22:20:13Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Description ==&lt;br /&gt;
&lt;br /&gt;
Executed when the script is removed from memory&lt;br /&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 onScriptUnload()&lt;br /&gt;
{&lt;br /&gt;
	print( &amp;quot;== Unloaded Squirrel VC:MP Script ==&amp;quot; );&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/Server_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Server_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnServerStop&amp;diff=19915</id>
		<title>OnServerStop</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnServerStop&amp;diff=19915"/>
		<updated>2017-01-30T22:20:06Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;onServerStop()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;None&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
The Following Example Will Print &amp;quot;The Server Is Closing&amp;quot; When The Server Is Closed!&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onServerStop()&lt;br /&gt;
{&lt;br /&gt;
print( &amp;quot;The Server Is Closing&amp;quot; );&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;
Function print() was used in this example.The print() function outputs a formatted string on the console.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Server_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Server_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnServerStart&amp;diff=19914</id>
		<title>OnServerStart</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnServerStart&amp;diff=19914"/>
		<updated>2017-01-30T22:19:52Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;onServerStart()&amp;lt;/pre&amp;gt;&lt;br /&gt;
----&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;None&#039;&#039;&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
The following example will print &amp;quot;Hello World!&amp;quot; when the server is started.&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onServerStart()&lt;br /&gt;
{&lt;br /&gt;
print( &amp;quot;Hello World!&amp;quot; );&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 print() was used in this example.The print() function outputs a formatted string on the console.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Server_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Server_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerJoin&amp;diff=19913</id>
		<title>OnPlayerJoin</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerJoin&amp;diff=19913"/>
		<updated>2017-01-30T22:18:36Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is called when a player joins the server. This is fired &#039;&#039;after&#039;&#039; data has been sent to the client.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerJoin( player )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - The pointer of the new player&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 onPlayerJoin( player )&lt;br /&gt;
{&lt;br /&gt;
    MessagePlayer( &amp;quot;Welcome &amp;quot; + player.Name + &amp;quot; to the server.&amp;quot;, player );    &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 functions [[Scripting/Squirrel/Functions/MessagePlayer|MessagePlayer]] and [[Scripting/Squirrel/Functions/Player.Name|Player.Name]] were used in this example. More info about them in 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerRequestClass&amp;diff=19912</id>
		<title>OnPlayerRequestClass</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerRequestClass&amp;diff=19912"/>
		<updated>2017-01-30T22:17:50Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called every time a player wants to spawn. &lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerRequestClass( player, classID, team, skin )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - Player who is spawning.&lt;br /&gt;
* &#039;&#039;&#039;classID&#039;&#039;&#039; - Player&#039;s class.&lt;br /&gt;
* &#039;&#039;&#039;team&#039;&#039;&#039; - Player&#039;s team.&lt;br /&gt;
* &#039;&#039;&#039;skin&#039;&#039;&#039; - Player&#039;s skin.&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 onPlayerRequestClass( player, classID, team, skin )&lt;br /&gt;
{&lt;br /&gt;
Announce(&amp;quot;Please choose a skin&amp;quot;,player,1);&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/Player_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Player_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerCrouchChange&amp;diff=19911</id>
		<title>OnPlayerCrouchChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerCrouchChange&amp;diff=19911"/>
		<updated>2017-01-30T22:17:38Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &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 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerGameKeysChange&amp;diff=19910</id>
		<title>OnPlayerGameKeysChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerGameKeysChange&amp;diff=19910"/>
		<updated>2017-01-30T22:17:26Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &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 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerOnFireChange&amp;diff=19909</id>
		<title>OnPlayerOnFireChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerOnFireChange&amp;diff=19909"/>
		<updated>2017-01-30T22:17:17Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This event is called when a player is burning or stopped burning.&lt;br /&gt;
==Syntax==&lt;br /&gt;
onPlayerOnFireChange( player, isOnFireNow )&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
function onPlayerOnFireChange( player, isOnFireNow )&lt;br /&gt;
{&lt;br /&gt;
        MessagePlayer(&amp;quot;Your burn status: &amp;quot;+isOnFireNow,player)&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnKeyUp&amp;diff=19908</id>
		<title>OnKeyUp</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnKeyUp&amp;diff=19908"/>
		<updated>2017-01-30T22:17:10Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function allows the server to inform the player, that He dropped 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 onKeyUp( player, key )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* &#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 dropped the key/button &#039;enter&#039; it will inform the server that the player dropped 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 onKeyUp( player, key )&lt;br /&gt;
{&lt;br /&gt;
	if ( key == enter )&lt;br /&gt;
	{&lt;br /&gt;
		PrivMessage( player, &amp;quot;you Successfully dropped 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 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerActionChange&amp;diff=19907</id>
		<title>OnPlayerActionChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerActionChange&amp;diff=19907"/>
		<updated>2017-01-30T22:17:03Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &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 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerCrashDump&amp;diff=19906</id>
		<title>OnPlayerCrashDump</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerCrashDump&amp;diff=19906"/>
		<updated>2017-01-30T22:16:56Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called every time a player crashes. &lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
Function invoke&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerCrashDump( player, CrashReport )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - One who crashed&lt;br /&gt;
* &#039;&#039;&#039;CrashReport&#039;&#039;&#039; - Reason&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 onPlayerCrashDump( player, CrashReport ) Message( &amp;quot;** &amp;quot; + player.Name + &amp;quot; left server. [Crash]!&amp;quot; );&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Message|Message]], [[Scripting/Squirrel/Functions/Player.Name|Player.Name]] were used in this example. More info about them in 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerNameChange&amp;diff=19905</id>
		<title>OnPlayerNameChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerNameChange&amp;diff=19905"/>
		<updated>2017-01-30T22:16:50Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Called when a player changes his name.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function OnPlayerNameChange( player, oldName, newName )&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 player that changed his name&lt;br /&gt;
*&#039;&#039;string&#039;&#039; &#039;&#039;&#039;oldName&#039;&#039;&#039; - Old name (before the player changed his name)&lt;br /&gt;
*&#039;&#039;string&#039;&#039; &#039;&#039;&#039;newName&#039;&#039;&#039; - new name (after the player changed his name)&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerNameChange( player, oldName, newName )&lt;br /&gt;
{&lt;br /&gt;
	Message(oldName + &amp;quot; is now known as &amp;quot; + newName);&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 functions [[Scripting/Squirrel/Functions/Message|Message]] and [[Scripting/Squirrel/Functions/Player.Name|Player.Name]] were used in in this example. More info about them in 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerAwayChange&amp;diff=19904</id>
		<title>OnPlayerAwayChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerAwayChange&amp;diff=19904"/>
		<updated>2017-01-30T22:16:43Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; if ( NewStatus == true ) &lt;br /&gt;
 {&lt;br /&gt;
 Message(&amp;quot;&amp;quot; +player.Name+&amp;quot; will be right back.&amp;quot;);&lt;br /&gt;
 }&lt;br /&gt;
 else if ( NewStatus == false )&lt;br /&gt;
 {&lt;br /&gt;
 Message(&amp;quot;&amp;quot;+player.Name+&amp;quot; Is Now Back!&amp;quot;);&lt;br /&gt;
 }&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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnKeyDown&amp;diff=19903</id>
		<title>OnKeyDown</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnKeyDown&amp;diff=19903"/>
		<updated>2017-01-30T22:16:37Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &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 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerArmourChange&amp;diff=19902</id>
		<title>OnPlayerArmourChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerArmourChange&amp;diff=19902"/>
		<updated>2017-01-30T22:16:31Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerEndTyping&amp;diff=19901</id>
		<title>OnPlayerEndTyping</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerEndTyping&amp;diff=19901"/>
		<updated>2017-01-30T22:16:23Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called every time a player stops typing in chat box. &lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerEndTyping( player )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - He is who stopped typing&lt;br /&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 onPlayerEndTyping( player )&lt;br /&gt;
{&lt;br /&gt;
	Announce( &amp;quot;~r~Stopped Typing&amp;quot;, player, 1 );&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/Player_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Player_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerWeaponChange&amp;diff=19900</id>
		<title>OnPlayerWeaponChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerWeaponChange&amp;diff=19900"/>
		<updated>2017-01-30T22:16:16Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &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 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerHealthChange&amp;diff=19899</id>
		<title>OnPlayerHealthChange</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerHealthChange&amp;diff=19899"/>
		<updated>2017-01-30T22:16:10Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is called when player&#039;s health amount changes.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerHealthChange( player, lastHP, newHP )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - The pointer of the player&lt;br /&gt;
* &#039;&#039;&#039;lastHP&#039;&#039;&#039; - The amount of health player had before the change&lt;br /&gt;
* &#039;&#039;&#039;newHP&#039;&#039;&#039; - The current health amount&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This will tell the player if they got hurt.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerHealthChange( player, lastHP, newHP )&lt;br /&gt;
{&lt;br /&gt;
     if ( lastHP &amp;gt; newHP ) MessagePlayer( &amp;quot;You just lost &amp;quot; + ( lastHP - newHP ) + &amp;quot; health.&amp;quot;, player );&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/MessagePlayer|MessagePlayer]] was used in in this example. More info about it in the corresponding page.&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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerCommand&amp;diff=19898</id>
		<title>OnPlayerCommand</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerCommand&amp;diff=19898"/>
		<updated>2017-01-30T22:16:03Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &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]] 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerMove&amp;diff=19897</id>
		<title>OnPlayerMove</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerMove&amp;diff=19897"/>
		<updated>2017-01-30T22:15:57Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This is called when a player moves on foot or as a passenger.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerMove( player, oldX, oldY, oldZ, newX, newY, newZ )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - The pointer of the player&lt;br /&gt;
* &#039;&#039;&#039;oldX&#039;&#039;&#039; - Old X coordinate&lt;br /&gt;
* &#039;&#039;&#039;oldY&#039;&#039;&#039; - Old Y coordinate&lt;br /&gt;
* &#039;&#039;&#039;oldZ&#039;&#039;&#039; - Old Z coordinate&lt;br /&gt;
* &#039;&#039;&#039;newX&#039;&#039;&#039; - New X coordinate&lt;br /&gt;
* &#039;&#039;&#039;newY&#039;&#039;&#039; - New Y coordinate&lt;br /&gt;
* &#039;&#039;&#039;newZ&#039;&#039;&#039; - New Z coordinate&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example will move the player back to point (0, 0, 0) if they move too far away from it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerMove( player, x1, y1, z1, x2, y2, z2 )&lt;br /&gt;
{&lt;br /&gt;
     if ( sqrt( x2*x2 + y2*y2 + z2*z2 ) &amp;gt; 50 ) player.Pos = Vector( 0.0, 0.0, 0.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/Player.Pos|Player.Pos]] was used in in this example. More info about it in the corresponding page.&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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnLoginAttempt&amp;diff=19896</id>
		<title>OnLoginAttempt</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnLoginAttempt&amp;diff=19896"/>
		<updated>2017-01-30T22:15:50Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is called when a player attempts to join the server.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onLoginAttempt( playerName, password, ipAddress )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;playerName&#039;&#039;&#039; - The name of the new player.&lt;br /&gt;
* &#039;&#039;&#039;password&#039;&#039;&#039; - The password that the player used to login.&lt;br /&gt;
* &#039;&#039;&#039;ipAddress&#039;&#039;&#039; - The IP address of the new player.&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 onLoginAttempt( playerName, password, ipAddress )&lt;br /&gt;
{&lt;br /&gt;
    if ( playerName == &amp;quot;blocked_name&amp;quot; )&lt;br /&gt;
        return false; // Reject&lt;br /&gt;
    return true; // Allow&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerPM&amp;diff=19895</id>
		<title>OnPlayerPM</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerPM&amp;diff=19895"/>
		<updated>2017-01-30T22:15:42Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &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 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerBeginTyping&amp;diff=19894</id>
		<title>OnPlayerBeginTyping</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerBeginTyping&amp;diff=19894"/>
		<updated>2017-01-30T22:15:36Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called every time a player starts typing in chat box. &lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerBeginTyping( player )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - He is who started typing&lt;br /&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 onPlayerBeginTyping( player )&lt;br /&gt;
{&lt;br /&gt;
	Announce( &amp;quot;~r~Started Typing&amp;quot;, player, 1 );&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/Player_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Player_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerChat&amp;diff=19893</id>
		<title>OnPlayerChat</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerChat&amp;diff=19893"/>
		<updated>2017-01-30T22:15:27Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &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 onPlayerChat( player, message )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* [[Scripting/Squirrel/Functions#Player_Functions|Player]] &#039;&#039;&#039;player&#039;&#039;&#039; - The player.&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;message&#039;&#039;&#039; - This is the message that player sent.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example command outputs the player messages.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerChat( player, message )&lt;br /&gt;
{&lt;br /&gt;
 print(&amp;quot;Player:&amp;quot;+player.Name+&amp;quot; Says:&amp;quot;+message);&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 print and call [[onPlayerChat]] 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerTeamKill&amp;diff=19892</id>
		<title>OnPlayerTeamKill</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerTeamKill&amp;diff=19892"/>
		<updated>2017-01-30T22:15:21Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called when a player kills another player from the same team.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerTeamKill( killer, player, reason, bodypart )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;killer&#039;&#039;&#039; - He is who is attacking&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - He is who is being killed&lt;br /&gt;
* &#039;&#039;&#039;reason&#039;&#039;&#039; - Weapon ID&lt;br /&gt;
* &#039;&#039;&#039;bodypart&#039;&#039;&#039; - Bodypart ID&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 onPlayerKill( killer, player, reason, bodypart )&lt;br /&gt;
{&lt;br /&gt;
    Message( &amp;quot;** &amp;quot; + killer.Name + &amp;quot; team-killed &amp;quot; + player.Name &amp;quot; (&amp;quot; + GetWeaponName( reason ) + &amp;quot;) (&amp;quot; + bodypart + &amp;quot;)&amp;quot; );    &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 functions [[Scripting/Squirrel/Functions/Message|Message]], [[Scripting/Squirrel/Functions/Player.Name|Player.Name]], [[Scripting/Squirrel/Functions/GetWeaponName|GetWeaponName]] were used in this example. More info about them in 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Events/OnPlayerDeath&amp;diff=19891</id>
		<title>Scripting/Squirrel/Events/OnPlayerDeath</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Events/OnPlayerDeath&amp;diff=19891"/>
		<updated>2017-01-30T22:15:13Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is called when a player dies. e.g.: drowned or self-kill.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerDeath( player, reason )&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 player that died&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;reason&#039;&#039;&#039; - [[OnPlayerDeath#Death_Reasons|Death reason]]&lt;br /&gt;
&lt;br /&gt;
=== Death Reasons ===&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Death from falling&#039;&#039;&#039;&#039;&#039; - 44 &#039;&#039;&#039;(WEP_FALL)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Death from an explosion&#039;&#039;&#039;&#039;&#039; - 41&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Death from drowning&#039;&#039;&#039;&#039;&#039; - 43 &#039;&#039;&#039;(WEP_DROWNED)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Death from dying in a car&#039;&#039;&#039;&#039;&#039; - 39 &#039;&#039;&#039;(WEP_VEHICLE)&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;&#039;&#039;Suicide&#039;&#039;&#039;&#039;&#039; - 70 &#039;&#039;&#039;(WEP_SUICIDE)&#039;&#039;&#039;&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 onPlayerDeath( player, reason )&lt;br /&gt;
{&lt;br /&gt;
	switch (reason)&lt;br /&gt;
	{&lt;br /&gt;
		case 44:&lt;br /&gt;
		{&lt;br /&gt;
			Message(player.Name + &amp;quot; fell down and died.&amp;quot;);&lt;br /&gt;
			break;&lt;br /&gt;
		}&lt;br /&gt;
		case 41:&lt;br /&gt;
		{&lt;br /&gt;
			Message(player.Name + &amp;quot; exploded to bits!&amp;quot;);&lt;br /&gt;
			break;&lt;br /&gt;
		}&lt;br /&gt;
		case 43:&lt;br /&gt;
		{&lt;br /&gt;
			Message(player.Name + &amp;quot; drowned to death.&amp;quot;);&lt;br /&gt;
			break;&lt;br /&gt;
		}&lt;br /&gt;
		case 39:&lt;br /&gt;
		{&lt;br /&gt;
			Message(player.Name + &amp;quot; died in a car accident.&amp;quot;);&lt;br /&gt;
			break;&lt;br /&gt;
		}&lt;br /&gt;
		case 70:&lt;br /&gt;
		{&lt;br /&gt;
			Message(player.Name + &amp;quot; suicided.&amp;quot;);&lt;br /&gt;
			break;&lt;br /&gt;
		}&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;
The functions [[Scripting/Squirrel/Functions/Message|Message]] and [[Scripting/Squirrel/Functions/Player.Name|Player.Name]] were used in this example. More info about them in 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerKill&amp;diff=19890</id>
		<title>OnPlayerKill</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerKill&amp;diff=19890"/>
		<updated>2017-01-30T22:15:07Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called every time a player kills another (and they&#039;re not in the same team). &lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerKill( killer, player, reason, bodypart )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - He is who is attacking&lt;br /&gt;
* &#039;&#039;&#039;killer&#039;&#039;&#039; - He is who is being killed&lt;br /&gt;
* &#039;&#039;&#039;reason&#039;&#039;&#039; - [[Weapons|Weapon ID]]&lt;br /&gt;
* &#039;&#039;&#039;bodypart&#039;&#039;&#039; - [[Scripting/Squirrel/Constants#Body_Part|Bodypart ID]]&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 onPlayerKill( killer, player, reason, bodypart )&lt;br /&gt;
{&lt;br /&gt;
    Message( &amp;quot;** &amp;quot; + killer.Name + &amp;quot; killed &amp;quot; + player.Name + &amp;quot; (&amp;quot; + GetWeaponName( reason ) + &amp;quot;) (&amp;quot; + bodypart + &amp;quot;)&amp;quot; );    &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 functions [[Scripting/Squirrel/Functions/Message|Message]], [[Scripting/Squirrel/Functions/Player.Name|Player.Name]], [[Scripting/Squirrel/Functions/GetWeaponName|GetWeaponName]] were used in this example. More info about them in 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerSpawn&amp;diff=19889</id>
		<title>OnPlayerSpawn</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerSpawn&amp;diff=19889"/>
		<updated>2017-01-30T22:15:01Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is called when a player spawns.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerSpawn( player )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - The pointer of the player&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This will message the chat when a player spawns.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerSpawn( player )&lt;br /&gt;
{&lt;br /&gt;
     Message( &amp;quot;*** &amp;quot; + player.Name + &amp;quot; spawned as skin &amp;quot; + GetSkinName( player.Skin ) );&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 functions [[Scripting/Squirrel/Functions/Message|Message]], [[Scripting/Squirrel/Functions/Player.Name|Player.Name]] and [[Scripting/Squirrel/Functions/Player.Skin|Player.Skin]] were used in in this example. More info about them in 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerRequestSpawn&amp;diff=19888</id>
		<title>OnPlayerRequestSpawn</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerRequestSpawn&amp;diff=19888"/>
		<updated>2017-01-30T22:14:53Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &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 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerPart&amp;diff=19887</id>
		<title>OnPlayerPart</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerPart&amp;diff=19887"/>
		<updated>2017-01-30T22:14:40Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is called when a player disconnects from the server.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerPart( player, reason )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - The pointer of the player&lt;br /&gt;
* &#039;&#039;&#039;reason&#039;&#039;&#039; - Reason ID for the part.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
In this example the server will send a message when a player leaves the server.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerPart( player, reason )&lt;br /&gt;
{&lt;br /&gt;
    switch (reason)&lt;br /&gt;
    {&lt;br /&gt;
        case 1:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+&amp;quot; [#ffffff]quit.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+&amp;quot; Quito El Juego.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
        case 1:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+&amp;quot; [#ffffff]Disconnected&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot;[PART] &amp;quot;+player.Name+&amp;quot; Desconecto El juego&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
        case 0:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+ &amp;quot; [#ffffff]timeout.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+ &amp;quot; Internet Fuera.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
        case 2:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+ &amp;quot; [#ffffff]Kicked for banned.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+ &amp;quot; Kickeado Por Prohibicion.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
        case 2:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+&amp;quot; [#FFFFFF]Kicked.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+&amp;quot; Kickeado.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
		case 2:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+&amp;quot; [#FFFFFF]banned.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+&amp;quot; Prohibido.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
		case 3:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+&amp;quot; [#FFFFFF]Error Crash.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+&amp;quot; Error del VC.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&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;
The functions [[Scripting/Squirrel/Functions/Message|Message]] and [[Scripting/Squirrel/Functions/Player.Name|Player.Name]] were used in this example. More info about them in 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>Thijn</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPickupRespawn&amp;diff=19886</id>
		<title>OnPickupRespawn</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPickupRespawn&amp;diff=19886"/>
		<updated>2017-01-30T22:12:34Z</updated>

		<summary type="html">&lt;p&gt;Thijn: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called when a pickup is respawned.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;onPickupRespawn( pickup )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;CPickup&#039;&#039; &#039;&#039;&#039;pickup&#039;&#039;&#039; - The pickup instance, for the functions list, see [[Scripting/Squirrel/Functions#Pickup_Functions|Pickup functions]]&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPickupRespawn( pickup ){&lt;br /&gt;
print(&amp;quot;Pickup (&amp;quot; + pickup.ID + &amp;quot;) respawned!&amp;quot;);&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Pickup_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Pickup_Events]]&lt;/div&gt;</summary>
		<author><name>Thijn</name></author>
	</entry>
</feed>