<?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=Soulshaker</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=Soulshaker"/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/wiki/Special:Contributions/Soulshaker"/>
	<updated>2026-04-26T04:53:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18350</id>
		<title>Scripting/Squirrel/Functions/Player.Immunity</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18350"/>
		<updated>2015-08-27T19:18:13Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will set a player&#039;s immunity to whatever % you type want.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Player.Immunity = flags;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Flags ==&lt;br /&gt;
&lt;br /&gt;
1 = bulletproof | 2 = fireproof | 4 = explosion-proof | 8 = collision-proof | 16 = melee-proof&lt;br /&gt;
&lt;br /&gt;
0 means no immunity to any damage, 31 means immunity to all damage. You can add all the numbers together or use bitwise OR/AND to toggle flags.&lt;br /&gt;
&lt;br /&gt;
== Example ==&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;immunity&amp;quot; )&lt;br /&gt;
{&lt;br /&gt;
MessagePlayer(&amp;quot;Now you are immune to bullet/fire/explosion/collision/melee&amp;quot;,player);&lt;br /&gt;
player.Immunity = 31;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18349</id>
		<title>Scripting/Squirrel/Functions/Player.Immunity</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18349"/>
		<updated>2015-08-27T19:10:25Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will set a player&#039;s immunity to whatever % you type want.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Player.Immunity = flags;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Flags ==&lt;br /&gt;
&lt;br /&gt;
1 = bulletproof | 2 = fireproof | 4 = explosion-proof | 8 = collision-proof | 16 = melee-proof&lt;br /&gt;
&lt;br /&gt;
0 means no immunity to any damage, 31 means immunity to all damage. You can add all the numbers together or use bitwise OR/AND to toggle flags.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following example will set a player&#039;s immunity to whatever % you type want.&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;im&amp;quot; )&lt;br /&gt;
 {&lt;br /&gt;
 if (!text) ClientMessage(&amp;quot;/im &amp;lt;Nick&amp;gt; &amp;lt;Immunity&amp;gt;&amp;quot;,player,255,255,0);&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
local plr = GetPlayer( GetTok( text, &amp;quot; &amp;quot;, 1 ) );&lt;br /&gt;
local im = GetTok( text, &amp;quot; &amp;quot;, 2, NumTok( text, &amp;quot; &amp;quot; ) );&lt;br /&gt;
 plr.Immunity = im.tointeger();&lt;br /&gt;
 ClientMessageToAll(player.Name+&amp;quot; has set &amp;quot;+plr.Name+&amp;quot;&#039;s immunity to &amp;quot;+im+&amp;quot;!&amp;quot;,198,213,0);&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;
Call [[onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
Call [[ClientMessage]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
Call [[ClientMessageToAll]] were used in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18348</id>
		<title>Scripting/Squirrel/Functions/Player.Immunity</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18348"/>
		<updated>2015-08-27T19:09:58Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: /* Flags */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will set a player&#039;s immunity to whatever % you type want.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Player.Immunity = integer;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Flags ==&lt;br /&gt;
&lt;br /&gt;
1 = bulletproof | 2 = fireproof | 4 = explosion-proof | 8 = collision-proof | 16 = melee-proof&lt;br /&gt;
&lt;br /&gt;
0 means no immunity to any damage, 31 means immunity to all damage. You can add all the numbers together or use bitwise OR/AND to toggle flags.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following example will set a player&#039;s immunity to whatever % you type want.&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;im&amp;quot; )&lt;br /&gt;
 {&lt;br /&gt;
 if (!text) ClientMessage(&amp;quot;/im &amp;lt;Nick&amp;gt; &amp;lt;Immunity&amp;gt;&amp;quot;,player,255,255,0);&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
local plr = GetPlayer( GetTok( text, &amp;quot; &amp;quot;, 1 ) );&lt;br /&gt;
local im = GetTok( text, &amp;quot; &amp;quot;, 2, NumTok( text, &amp;quot; &amp;quot; ) );&lt;br /&gt;
 plr.Immunity = im.tointeger();&lt;br /&gt;
 ClientMessageToAll(player.Name+&amp;quot; has set &amp;quot;+plr.Name+&amp;quot;&#039;s immunity to &amp;quot;+im+&amp;quot;!&amp;quot;,198,213,0);&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;
Call [[onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
Call [[ClientMessage]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
Call [[ClientMessageToAll]] were used in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18347</id>
		<title>Scripting/Squirrel/Functions/Player.Immunity</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18347"/>
		<updated>2015-08-27T19:07:31Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: /* Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will set a player&#039;s immunity to whatever % you type want.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Player.Immunity = integer;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
1  | bulletproof&lt;br /&gt;
2  | fireproof&lt;br /&gt;
4  | explosion-proof&lt;br /&gt;
8  | collision-proof&lt;br /&gt;
16 | melee-proof&lt;br /&gt;
&lt;br /&gt;
0 means no immunity to any damage, 31 means immunity to all damage. You can add all the numbers together or use bitwise OR/AND to toggle flags.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following example will set a player&#039;s immunity to whatever % you type want.&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;im&amp;quot; )&lt;br /&gt;
 {&lt;br /&gt;
 if (!text) ClientMessage(&amp;quot;/im &amp;lt;Nick&amp;gt; &amp;lt;Immunity&amp;gt;&amp;quot;,player,255,255,0);&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
local plr = GetPlayer( GetTok( text, &amp;quot; &amp;quot;, 1 ) );&lt;br /&gt;
local im = GetTok( text, &amp;quot; &amp;quot;, 2, NumTok( text, &amp;quot; &amp;quot; ) );&lt;br /&gt;
 plr.Immunity = im.tointeger();&lt;br /&gt;
 ClientMessageToAll(player.Name+&amp;quot; has set &amp;quot;+plr.Name+&amp;quot;&#039;s immunity to &amp;quot;+im+&amp;quot;!&amp;quot;,198,213,0);&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;
Call [[onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
Call [[ClientMessage]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
Call [[ClientMessageToAll]] were used in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18346</id>
		<title>Scripting/Squirrel/Functions/Player.Immunity</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18346"/>
		<updated>2015-08-27T19:05:30Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will set a player&#039;s immunity to whatever % you type want.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Player.Immunity = integer;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;player&#039;&#039; &amp;lt;= This will find the player.&lt;br /&gt;
* &#039;&#039;Immunity&#039;&#039; &amp;lt;= This is the immunity you need to set.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following example will set a player&#039;s immunity to whatever % you type want.&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;im&amp;quot; )&lt;br /&gt;
 {&lt;br /&gt;
 if (!text) ClientMessage(&amp;quot;/im &amp;lt;Nick&amp;gt; &amp;lt;Immunity&amp;gt;&amp;quot;,player,255,255,0);&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
local plr = GetPlayer( GetTok( text, &amp;quot; &amp;quot;, 1 ) );&lt;br /&gt;
local im = GetTok( text, &amp;quot; &amp;quot;, 2, NumTok( text, &amp;quot; &amp;quot; ) );&lt;br /&gt;
 plr.Immunity = im.tointeger();&lt;br /&gt;
 ClientMessageToAll(player.Name+&amp;quot; has set &amp;quot;+plr.Name+&amp;quot;&#039;s immunity to &amp;quot;+im+&amp;quot;!&amp;quot;,198,213,0);&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;
Call [[onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
Call [[ClientMessage]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
Call [[ClientMessageToAll]] were used in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18345</id>
		<title>Scripting/Squirrel/Functions/Player.Immunity</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=18345"/>
		<updated>2015-08-27T19:04:09Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will set a player&#039;s immunity to whatever % you type want.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Player.Immunity = &#039;&#039;&#039;DEC&#039;&#039;&#039;;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;player&#039;&#039; &amp;lt;= This will find the player.&lt;br /&gt;
* &#039;&#039;Immunity&#039;&#039; &amp;lt;= This is the immunity you need to set.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following example will set a player&#039;s immunity to whatever % you type want.&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;im&amp;quot; )&lt;br /&gt;
 {&lt;br /&gt;
 if (!text) ClientMessage(&amp;quot;/im &amp;lt;Nick&amp;gt; &amp;lt;Immunity&amp;gt;&amp;quot;,player,255,255,0);&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
local plr = GetPlayer( GetTok( text, &amp;quot; &amp;quot;, 1 ) );&lt;br /&gt;
local im = GetTok( text, &amp;quot; &amp;quot;, 2, NumTok( text, &amp;quot; &amp;quot; ) );&lt;br /&gt;
 plr.Immunity = im.tointeger();&lt;br /&gt;
 ClientMessageToAll(player.Name+&amp;quot; has set &amp;quot;+plr.Name+&amp;quot;&#039;s immunity to &amp;quot;+im+&amp;quot;!&amp;quot;,198,213,0);&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;
Call [[onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
Call [[ClientMessage]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
Call [[ClientMessageToAll]] were used in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerEndTyping&amp;diff=17945</id>
		<title>OnPlayerEndTyping</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerEndTyping&amp;diff=17945"/>
		<updated>2014-12-02T06:41:55Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: Created page with &amp;quot;This event is called every time a player stops typing in chat box.   == Syntax ==  &amp;lt;pre&amp;gt;function onPlayerEndTyping( player )&amp;lt;/pre&amp;gt;  == Arguments ==  * &amp;#039;&amp;#039;&amp;#039;player&amp;#039;&amp;#039;&amp;#039; - He is who...&amp;quot;&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;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerBeginTyping&amp;diff=17944</id>
		<title>OnPlayerBeginTyping</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerBeginTyping&amp;diff=17944"/>
		<updated>2014-12-02T06:40:44Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: Created page with &amp;quot;This event is called every time a player starts typing in chat box.   == Syntax ==  &amp;lt;pre&amp;gt;function onPlayerBeginTyping( player )&amp;lt;/pre&amp;gt;  == Arguments ==  * &amp;#039;&amp;#039;&amp;#039;player&amp;#039;&amp;#039;&amp;#039; - He is...&amp;quot;&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;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.CanDriveby&amp;diff=17943</id>
		<title>Scripting/Squirrel/Functions/Player.CanDriveby</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.CanDriveby&amp;diff=17943"/>
		<updated>2014-12-02T06:34:18Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: Created page with &amp;quot;This function will toggle the ability of a player to driveby   == Syntax ==   &amp;lt;pre&amp;gt;Player.CanDriveby = toggle;&amp;lt;/pre&amp;gt;   == Arguments ==   * &amp;#039;&amp;#039;bool&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;toggle&amp;#039;&amp;#039;&amp;#039; - &amp;#039;&amp;#039;&amp;#039;true&amp;#039;&amp;#039;&amp;#039; o...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will toggle the ability of a player to driveby&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Player.CanDriveby = toggle;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; &#039;&#039;&#039;toggle&#039;&#039;&#039; - &#039;&#039;&#039;true&#039;&#039;&#039; or &#039;&#039;&#039;false&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&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;
else if ( cmd == &amp;quot;driveby&amp;quot; )&lt;br /&gt;
{&lt;br /&gt;
local status = player.CanDriveby;&lt;br /&gt;
if ( !text ) MessagePlayer( &amp;quot;Syntax: /&amp;quot;+ cmd +&amp;quot; &amp;lt;on/off&amp;gt;&amp;quot;, player );&lt;br /&gt;
else if ( text == &amp;quot;on&amp;quot; )&lt;br /&gt;
{&lt;br /&gt;
if ( status == true ) MessagePlayer( &amp;quot;Error, Driveby is already enabled&amp;quot;, player );&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
MessagePlayer( &amp;quot;Driveby is enabled now&amp;quot;, player );&lt;br /&gt;
player.CanDriveby = true; &lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
else if ( text == &amp;quot;off&amp;quot; ) &lt;br /&gt;
{ &lt;br /&gt;
if ( status == false ) MessagePlayer( &amp;quot;Error, Driveby is already disabled&amp;quot;, player );&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
MessagePlayer( &amp;quot;Driveby is disabled&amp;quot;, player );&lt;br /&gt;
player.CanDriveby = false; &lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
else MessagePlayer( &amp;quot;Syntax: /&amp;quot;+ cmd +&amp;quot; &amp;lt;on/off&amp;gt;&amp;quot;, player );&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.CanAttack&amp;diff=17942</id>
		<title>Scripting/Squirrel/Functions/Player.CanAttack</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.CanAttack&amp;diff=17942"/>
		<updated>2014-12-01T22:51:15Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: Created page with &amp;quot;This function will toggle the ability of a player to attack other players   == Syntax ==   &amp;lt;pre&amp;gt;Player.CanAttack = toggle;&amp;lt;/pre&amp;gt;   == Arguments ==   * &amp;#039;&amp;#039;bool&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;toggle&amp;#039;&amp;#039;&amp;#039; -...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will toggle the ability of a player to attack other players&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Player.CanAttack = toggle;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; &#039;&#039;&#039;toggle&#039;&#039;&#039; - &#039;&#039;&#039;true&#039;&#039;&#039; or &#039;&#039;&#039;false&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&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;
else if ( cmd == &amp;quot;attack&amp;quot; )&lt;br /&gt;
{&lt;br /&gt;
local status = player.CanAttack;&lt;br /&gt;
if ( !text ) MessagePlayer( &amp;quot;Syntax: /&amp;quot;+ cmd +&amp;quot; &amp;lt;on/off&amp;gt;&amp;quot;, player );&lt;br /&gt;
else if ( text == &amp;quot;on&amp;quot; )&lt;br /&gt;
{&lt;br /&gt;
if ( status == true ) MessagePlayer( &amp;quot;Error, Attack is already enabled&amp;quot;, player );&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
MessagePlayer( &amp;quot;Now you can attack other players&amp;quot;, player );&lt;br /&gt;
player.CanAttack = true; &lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
else if ( text == &amp;quot;off&amp;quot; ) &lt;br /&gt;
{ &lt;br /&gt;
if ( status == false ) MessagePlayer( &amp;quot;Error, Attack is already disabled&amp;quot;, player );&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
MessagePlayer( &amp;quot;Now you can&#039;t attack other players&amp;quot;, player );&lt;br /&gt;
player.CanAttack = false; &lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
else MessagePlayer( &amp;quot;Syntax: /&amp;quot;+ cmd +&amp;quot; &amp;lt;on/off&amp;gt;&amp;quot;, player );&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.FPS&amp;diff=17941</id>
		<title>Scripting/Squirrel/Functions/Player.FPS</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.FPS&amp;diff=17941"/>
		<updated>2014-12-01T22:21:52Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will show the FPS(Frames Per Second) of the player&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player.FPS();&amp;lt;/pre&amp;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 onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
if ( cmd == &amp;quot;fps&amp;quot; )&lt;br /&gt;
{&lt;br /&gt;
PrivMessage( player, &amp;quot;Your FPS: &amp;quot; + player.FPS + &amp;quot;.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.FPS&amp;diff=17940</id>
		<title>Scripting/Squirrel/Functions/Player.FPS</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.FPS&amp;diff=17940"/>
		<updated>2014-12-01T22:19:59Z</updated>

		<summary type="html">&lt;p&gt;Soulshaker: This function will show the FPS(Frames Per Second) of the player&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player.FPS();&amp;lt;/pre&amp;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 onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
if ( cmd == &amp;quot;fps&amp;quot; )&lt;br /&gt;
{&lt;br /&gt;
PrivMessage( player, &amp;quot;Your FPS: &amp;quot; + player.FPS + &amp;quot;.&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Soulshaker</name></author>
	</entry>
</feed>