Squirrel/Server/Functions/Misc/BanIP
From Liberty Unleashed Wiki
(Difference between revisions)
(→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
This function bans the given IP address from joining the server.
[edit] Syntax
bool BanIP( string IP )
[edit] Arguments
- IP - The IP address to be banned
[edit] Example
function onPlayerCommand ( pPlayer, szCommand, szArguments ) { if ( szCommand == "banip" ) { BanIP ( szArguments ); MessagePlayer ( "The IP: " + szArguments + " has been banned.", pPlayer, 255, 255, 255 ); } return 1; }
[edit] Notes
This function is used to ban the IP specified.