Squirrel/Server/Functions/Misc/BanIP

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ This function bans the given IP address from joining the server. == Syntax == <code>bool BanIP( string IP )</code> == Arguments == * '''IP''' - The IP address to be banned =...)
 
(Example)
Line 12: Line 12:
 
== Example ==
 
== Example ==
  
{{Squirrel/NeedsExample}}
 
 
<code lang="squirrel">
 
<code lang="squirrel">
-- todo
+
function onPlayerCommand( player, command, text )
 +
{
 +
if ( command == "banip" ) BanIP( text );
 +
}
 
</code>
 
</code>
  
 
=== Notes ===
 
=== Notes ===
  
-- Example notes here
+
This function is used to ban the IP specified.
  
 
== Related Functions ==
 
== Related Functions ==
  
 
{{Squirrel/Server/Functions/Misc}}
 
{{Squirrel/Server/Functions/Misc}}

Revision as of 02:35, 7 January 2010

This function bans the given IP address from joining the server.

Syntax

  1. bool BanIP( string IP )

Arguments

  • IP - The IP address to be banned

Example

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "banip" ) BanIP( text );
  5. }
  6.  

Notes

This function is used to ban the IP specified.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox