Squirrel/Server/Functions/Misc/UnbanIP

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ This function unbans the given IP and removes it from the banlist. == Syntax == <code>bool UnbanIP( string IP )</code> == Arguments == * '''IP''' - The IP address to be unban...)
 
(Example)
Line 12: Line 12:
 
== Example ==
 
== Example ==
  
{{Squirrel/NeedsExample}}
 
 
<code lang="squirrel">
 
<code lang="squirrel">
-- todo
+
function onPlayerCommand( player, command, text )
 +
{
 +
if ( command == "unban" )UnbanIP( text )
 +
}
 
</code>
 
</code>
  
 
=== Notes ===
 
=== Notes ===
  
-- Example notes here
+
This function is used to unban a previously banned IP.
  
 
== Related Functions ==
 
== Related Functions ==
  
 
{{Squirrel/Server/Functions/Misc}}
 
{{Squirrel/Server/Functions/Misc}}

Revision as of 02:39, 7 January 2010

This function unbans the given IP and removes it from the banlist.

Syntax

  1. bool UnbanIP( string IP )

Arguments

  • IP - The IP address to be unbanned

Example

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

Notes

This function is used to unban a previously banned IP.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox