BanIP

From Liberty Unleashed Wiki
Jump to: navigation, search
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 ( pPlayer, szCommand, szArguments )
  3. {
  4. if ( szCommand == "banip" )
  5. {
  6. BanIP ( szArguments );
  7. MessagePlayer ( "The IP: " + szArguments + " has been banned.", pPlayer, 255, 255, 255 );
  8. }
  9.  
  10. return 1;
  11. }
  12.  

Notes

This function is used to ban the IP specified.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox