Squirrel/Server/Functions/Misc/BanIP

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
(Example)
 
Line 19: Line 19:
 
BanIP ( szArguments );
 
BanIP ( szArguments );
 
MessagePlayer ( "The IP: " + szArguments + " has been banned.", pPlayer, 255, 255, 255 );
 
MessagePlayer ( "The IP: " + szArguments + " has been banned.", pPlayer, 255, 255, 255 );
 +
}
  
 
return 1;
 
return 1;

Latest revision as of 11:41, 22 August 2013

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

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

[edit] Syntax

  1. bool BanIP( string IP )

[edit] Arguments

  • IP - The IP address to be banned

[edit] 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.  

[edit] Notes

This function is used to ban the IP specified.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox