<?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=Skbyt</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=Skbyt"/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/wiki/Special:Contributions/Skbyt"/>
	<updated>2026-04-10T00:45:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetMaxPlayers&amp;diff=18706</id>
		<title>Scripting/Squirrel/Functions/GetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetMaxPlayers&amp;diff=18706"/>
		<updated>2015-12-06T19:20:58Z</updated>

		<summary type="html">&lt;p&gt;Skbyt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
This function will get max players limit.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GetMaxPlayers()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Return value ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;maxplayers&#039;&#039;&#039; - The max players limit&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following example will return maxPlayers allotted for the server on command &amp;quot;maxplayers&amp;quot;.&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, parameters );&lt;br /&gt;
{&lt;br /&gt;
     if( cmd == &amp;quot;maxslots&amp;quot; )  &lt;br /&gt;
     local maxSlots = GetMaxPlayers();&lt;br /&gt;
     MessagePlayer( &amp;quot;Max Slots: &amp;quot; + maxSlots, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Event [[onPlayerCommand]] and Function [[MessagePlayer]] 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>Skbyt</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetMaxPlayers&amp;diff=18705</id>
		<title>Scripting/Squirrel/Functions/GetMaxPlayers</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetMaxPlayers&amp;diff=18705"/>
		<updated>2015-12-06T19:19:33Z</updated>

		<summary type="html">&lt;p&gt;Skbyt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
This function will get max players limit.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GetMaxPlayers()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Return value ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;maxplayers&#039;&#039;&#039; - The max players limit&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following example will return maxPlayers allotted for the server on command &amp;quot;maxplayers&amp;quot;.&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, parameters );&lt;br /&gt;
{&lt;br /&gt;
     local maxSlots = GetMaxPlayers();&lt;br /&gt;
     if( cmd == &amp;quot;maxslots&amp;quot; )  &lt;br /&gt;
     MessagePlayer( &amp;quot;Max Slots: &amp;quot; + maxSlots, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Event [[onPlayerCommand]] and Function [[MessagePlayer]] 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>Skbyt</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Kick&amp;diff=18704</id>
		<title>Scripting/Squirrel/Functions/Player.Kick</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Kick&amp;diff=18704"/>
		<updated>2015-12-06T18:47:24Z</updated>

		<summary type="html">&lt;p&gt;Skbyt: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will kick Player defined.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player.Kick();&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example kicks player on move if the ping is &amp;gt;/= to 300.&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( player.Ping &amp;gt;= 300 )  &lt;br /&gt;
     ClientMessageToAll( player.Name + &amp;quot; has been kicked for high ping.&amp;quot; , 255, 0, 0 ); &lt;br /&gt;
     player.Kick();&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/ClientMessageToAll|ClientMessageToAll]] and event [[Scripting/Squirrel/Events/onPlayerMove|onPlayerMove]] 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/Functions/Player Functions}}&lt;/div&gt;</summary>
		<author><name>Skbyt</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/UnbanIP&amp;diff=18703</id>
		<title>Scripting/Squirrel/Functions/UnbanIP</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/UnbanIP&amp;diff=18703"/>
		<updated>2015-12-06T17:52:35Z</updated>

		<summary type="html">&lt;p&gt;Skbyt: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will unban an IP from the server.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;UnbanIP( ip )&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;ip&#039;&#039;&#039; - The IP to be unbanned&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;unbanip&amp;quot; )&lt;br /&gt;
    {&lt;br /&gt;
        if ( !IsIPBanned( text ) == true )  MessagePlayer( &amp;quot;Provided IP &#039;&amp;quot; + text + &amp;quot;&#039; was not banned previously&amp;quot;, player );&lt;br /&gt;
        else&lt;br /&gt;
        UnbanIP( text );&lt;br /&gt;
        MessagePlayer( &amp;quot;IP: &amp;quot; + text + &amp;quot; has been unbanned&amp;quot;, player );&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Checks if [[Scripting/Squirrel/Functions/IsIPBanned|IsIPBanned]]( ..provided ip.. ), if returns true then triggers [[Scripting/Squirrel/Functions/UnbanIP|UnbanIP]]( ..provided ip.. ) when on event [[Scripting/Squirrel/Events/Player/onPlayerCommand|onPlayerCommand]].&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Administrative_Functions}}&lt;/div&gt;</summary>
		<author><name>Skbyt</name></author>
	</entry>
</feed>