Scripting/Squirrel/Functions/BanIP: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
BrYaN FuRy (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
== Syntax == | == Syntax == | ||
<pre> | <pre>BanIP( string ip )</pre> | ||
== Arguments == | == Arguments == |
Revision as of 04:50, 28 July 2015
This function will ban an IP from the server.
Syntax
BanIP( string ip )
Arguments
- string ip - This is the IP address to be banned
Example
function onPlayerCommand( player, cmd, text )
{
if ( cmd == "banip" )
{
MessagePlayer( "You have banned IP: " + text, player );
BanIP( text );
}
}
Notes
Call onPlayerCommand and MessagePlayer function were used in this example. More info about them in the corresponding pages.