<?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=Redax</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=Redax"/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/wiki/Special:Contributions/Redax"/>
	<updated>2026-04-15T02:42:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/BanIP&amp;diff=19445</id>
		<title>Scripting/Squirrel/Functions/BanIP</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/BanIP&amp;diff=19445"/>
		<updated>2016-09-21T16:20:04Z</updated>

		<summary type="html">&lt;p&gt;Redax: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will ban an IP from the server.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;BanIP(ip)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;ip&#039;&#039;&#039; - This is the IP address to be banned&lt;br /&gt;
&lt;br /&gt;
== Example ==&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;ban&amp;quot; )&lt;br /&gt;
    {&lt;br /&gt;
        if ( !text ) &lt;br /&gt;
        {&lt;br /&gt;
            MessagePlayer( &amp;quot;[Syntax] - /ban &amp;lt;Nick/ID&amp;gt; &amp;lt;Reason&amp;gt;&amp;quot;, player );&lt;br /&gt;
        }&lt;br /&gt;
        else &lt;br /&gt;
        {&lt;br /&gt;
         local params = split( text, &amp;quot; &amp;quot; ), plr = FindPlayer( params[0] ), reason = params[1]; &lt;br /&gt;
         Message( &amp;quot;[#EE82EE]** Admin &amp;quot; + player.Name + &amp;quot; Banned &amp;quot; + plr.Name + &amp;quot; Reason: &amp;quot; + reason );&lt;br /&gt;
         MessagePlayer( &amp;quot; You have been banned. Reason: &amp;quot; + reason + &amp;quot; by: &amp;quot; + player.Name , plr );&lt;br /&gt;
         BanPlayer( plr );&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    return 1;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Administrative_Functions}}&lt;/div&gt;</summary>
		<author><name>Redax</name></author>
	</entry>
</feed>