Scripting/mIRC/Functions/Misc/UnBan

From VC-MP Wiki

Jump to: navigation, search

This will unban a player's IP from the server.

Syntax

alias vcmp.unban !return $dll( " $+ $scriptdirvcmp.dll $+ ", UnBan, $1- )

Arguments

  • $1 - ServerID
  • $2 - IP

Example

This will unban the IP of 127.0.0.1 from the server when someone types "!unban 127.0.0.1" (Once again, using the local IP as an example)

on *:SIGNAL:vcmp.player.command:{
     if ( $3 == unban ) && ( $4 ) {
          vcmp.unban $1 $4
     }
}

When someone types "!unban 127.0.0.1" in, it will see that the $4 is 127.0.0.1 and so it will unban that ip from the server. This takes affect right away and means that anyone using that IP will then be allowed to enter the server again.

The "&& ( $4 )" simply makes sure that there is something after "!unban" else it won't carry out the command.

Notes

This example uses vcmp.player.command.

Related Functions

Personal tools
squirrel scripting