Squirrel/Server/Functions/Misc/BanIP

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|BanIP}}
 
This function bans the given IP address from joining the server.
 
This function bans the given IP address from joining the server.
  

Revision as of 10:34, 11 October 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

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