<?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=Rocky</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=Rocky"/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/wiki/Special:Contributions/Rocky"/>
	<updated>2026-04-08T15:26:27Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetJoinMessages&amp;diff=620</id>
		<title>Scripting/Squirrel/Functions/GetJoinMessages</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetJoinMessages&amp;diff=620"/>
		<updated>2014-08-14T09:07:43Z</updated>

		<summary type="html">&lt;p&gt;Rocky: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will return the current status of the join messages.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GetJoinMessages()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N/A&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Return value ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; &#039;&#039;&#039;toggled&#039;&#039;&#039; - &#039;&#039;&#039;true&#039;&#039;&#039; or &#039;&#039;&#039;false&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following example messages if join message is enabled or not when player types the command.&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;messages&amp;quot; ) &lt;br /&gt;
  { &lt;br /&gt;
    if( GetJoinMessages() ) MessagePlayer(&amp;quot;Join messages are enabled.&amp;quot;, player );&lt;br /&gt;
    else MessagePlayer(&amp;quot;Join messages are disabled.&amp;quot;, player );&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&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/Functions/Server_Settings}}&lt;/div&gt;</summary>
		<author><name>Rocky</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetServerPassword&amp;diff=619</id>
		<title>Scripting/Squirrel/Functions/SetServerPassword</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetServerPassword&amp;diff=619"/>
		<updated>2014-08-14T08:59:00Z</updated>

		<summary type="html">&lt;p&gt;Rocky: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will set the server password.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;SetServerPassword( password )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;password&#039;&#039;&#039; - The password to set&lt;br /&gt;
&lt;br /&gt;
This command will change the server password when a player types &#039;/c setpass anystring&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
     if ( cmd == &amp;quot;setpass&amp;quot; )&lt;br /&gt;
     {&lt;br /&gt;
          SetServerPassword( text );&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 call [[Scripting/Squirrel/Events/Player/onPlayerCommand|onPlayerCommand]] was also used in the example. More info about this in the corresponding page.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Server_Settings}}&lt;/div&gt;</summary>
		<author><name>Rocky</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/FindVehicle&amp;diff=618</id>
		<title>Scripting/Squirrel/Functions/FindVehicle</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/FindVehicle&amp;diff=618"/>
		<updated>2014-08-14T08:57:05Z</updated>

		<summary type="html">&lt;p&gt;Rocky: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This finds a vehicle from an id and returns the pointer&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;vehicle FindVehicle( int id )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;id&#039;&#039;&#039; - The ID of the vehicle to find&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
Now we will create a simple spawncar command. Type /c spawn VehicleID. The vehicle will be moved to the player, that uses this command. The FindVehicle function is here very important.&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;spawn&amp;quot; )&lt;br /&gt;
     {&lt;br /&gt;
         local veh = FindVehicle( text.tointeger() );&lt;br /&gt;
         if ( !veh ) PrivMessage( &amp;quot;Error: Wrong ID of the vehicle.&amp;quot;, player );&lt;br /&gt;
         else {&lt;br /&gt;
             PrivMessage( &amp;quot;Spawning vehicle &amp;quot; + veh + &amp;quot;.&amp;quot;, player );&lt;br /&gt;
             veh.Pos = Vector( ( player.Pos.x + 2 ), ( player.Pos.y + 1 ),( player.Pos.z - 1.12 ) );&lt;br /&gt;
         }&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Misc/PrivMessage|PrivMessage]], [[Scripting/Squirrel/Functions/Vehicles/Pos|vehicle.Pos]] and call [[Scripting/Squirrel/Events/Player/onPlayerCommand|onPlayerCommand]] were used in in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Rocky</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/FindVehicle&amp;diff=617</id>
		<title>Scripting/Squirrel/Functions/FindVehicle</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/FindVehicle&amp;diff=617"/>
		<updated>2014-08-14T08:55:49Z</updated>

		<summary type="html">&lt;p&gt;Rocky: /* Related Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This finds a vehicle from an id and returns the pointer&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;vehicle FindVehicle( int id )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;id&#039;&#039;&#039; - The ID of the vehicle to find&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
Now we will create a simple spawncar command. Type /c spawn VehicleID. The vehicle will be moved to the player, that uses this command. The FindVehicle function is here very important.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
     if ( cmd == &amp;quot;spawn&amp;quot; )&lt;br /&gt;
     {&lt;br /&gt;
         local veh = FindVehicle( text.tointeger() );&lt;br /&gt;
         if ( !veh ) PrivMessage( &amp;quot;Error: Wrong ID of the vehicle.&amp;quot;, player );&lt;br /&gt;
         else {&lt;br /&gt;
             PrivMessage( &amp;quot;Spawning vehicle &amp;quot; + veh + &amp;quot;.&amp;quot;, player );&lt;br /&gt;
             veh.Pos = Vector( ( player.Pos.x + 2 ), ( player.Pos.y + 1 ),( player.Pos.z - 1.12 ) );&lt;br /&gt;
         }&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Misc/PrivMessage|PrivMessage]], [[Scripting/Squirrel/Functions/Vehicles/Pos|vehicle.Pos]] and call [[Scripting/Squirrel/Events/Player/onPlayerCommand|onPlayerCommand]] were used in in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Rocky</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/FindVehicle&amp;diff=616</id>
		<title>Scripting/Squirrel/Functions/FindVehicle</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/FindVehicle&amp;diff=616"/>
		<updated>2014-08-14T08:44:50Z</updated>

		<summary type="html">&lt;p&gt;Rocky: Created page with &amp;quot;__NOTOC__ This finds a vehicle from an id and returns the pointer  == Syntax ==  &amp;lt;code&amp;gt;vehicle FindVehicle( int id )&amp;lt;/code&amp;gt;  == Arguments ==  * &amp;#039;&amp;#039;&amp;#039;id&amp;#039;&amp;#039;&amp;#039; - The ID of the vehicl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This finds a vehicle from an id and returns the pointer&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;vehicle FindVehicle( int id )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;id&#039;&#039;&#039; - The ID of the vehicle to find&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
Now we will create a simple spawncar command. Type /c spawn VehicleID. The vehicle will be moved to the player, that uses this command. The FindVehicle function is here very important.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
     if ( cmd == &amp;quot;spawn&amp;quot; )&lt;br /&gt;
     {&lt;br /&gt;
         local veh = FindVehicle( text.tointeger() );&lt;br /&gt;
         if ( !veh ) PrivMessage( &amp;quot;Error: Wrong ID of the vehicle.&amp;quot;, player );&lt;br /&gt;
         else {&lt;br /&gt;
             PrivMessage( &amp;quot;Spawning vehicle &amp;quot; + veh + &amp;quot;.&amp;quot;, player );&lt;br /&gt;
             veh.Pos = Vector( ( player.Pos.x + 2 ), ( player.Pos.y + 1 ),( player.Pos.z - 1.12 ) );&lt;br /&gt;
         }&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Misc/PrivMessage|PrivMessage]], [[Scripting/Squirrel/Functions/Vehicles/Pos|vehicle.Pos]] and call [[Scripting/Squirrel/Events/Player/onPlayerCommand|onPlayerCommand]] were used in in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Vehicles}}&lt;/div&gt;</summary>
		<author><name>Rocky</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetWaterLevel&amp;diff=404</id>
		<title>Scripting/Squirrel/Functions/GetWaterLevel</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetWaterLevel&amp;diff=404"/>
		<updated>2014-07-25T16:42:53Z</updated>

		<summary type="html">&lt;p&gt;Rocky: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will get the water level of the game.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GetWaterLevel()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N/A&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Return value ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;waterlevel&#039;&#039;&#039; - The water level of the game (default is 6)&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following example messages current water level to everyone when someone types the command.&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;waterlvl&amp;quot; ) Message( GetWaterLevel().tostring() );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&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/Functions/Server_Settings}}&lt;/div&gt;</summary>
		<author><name>Rocky</name></author>
	</entry>
</feed>