Scripting/Squirrel/Functions/Misc/UnbanIP
From VC-MP Wiki
This function removes an IP address from the banlist.
Syntax
bool UnbanIP( string ip )
Arguments
- ip - This is the IP address to be unbanned
Example
This example will unban the IP address player entered with the command '/c unbanip 127.0.0.1'.
function onPlayerCommand( player, cmd, text ) { if ( cmd == "unbanip" ) { MessagePlayer( "You have unbanned IP " +text, player ); UnbanIP( text ); } }
Notes
The function MessagePlayer and call onPlayerCommand were used in in this example. More info about them in the corresponding pages.
Related Functions
- Message
- MessagePlayer
- MessageAllExcept
- PrivMessage
- PrivMessageAll
- ClientMessage
- ClientMessageToAll
- Announce
- AnnounceAll
- SendPlayerMessage
- KickPlayer
- BanPlayer
- BanIP
- UnbanIP
- GetWeaponName
- GetWeaponID
- GetDistrictName
- GetSkinName
- GetTickCount
- GetTime
- GetFullTime
- IsNum
- BindKey
- UnbindKey
- CallFunc
- InPoly
- DistanceFromPoint
- ReloadScripts
