Squirrel/Server/Functions/Misc/BanIP
From Liberty Unleashed Wiki
(Difference between revisions)
(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 == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerCommand( player, command, text ) | |
+ | { | ||
+ | if ( command == "banip" ) BanIP( text ); | ||
+ | } | ||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | 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
bool BanIP( string IP )
Arguments
- IP - The IP address to be banned
Example
function onPlayerCommand( player, command, text ) { if ( command == "banip" ) BanIP( text ); }
Notes
This function is used to ban the IP specified.