Scripting/mIRC/Functions/Misc/Ban
From VC-MP Wiki
This bans a player from the server
Syntax
alias vcmp.ban !return $dll( " $+ $scriptdirvcmp.dll $+ ", Ban, $1- )
Arguments
- $1 - ServerID
- $2 - PlayerID
Example
This will ban the command user from the game when they type "!ban"
on *:SIGNAL:vcmp.player.command:{ if ( $3 == ban ) { vcmp.ban $1 $2 } }
The ban function is very similar to the kick function apart from when using "vcmp.ban" the player isn't allowed to enter the server again, using the ban function will also kick the player. This is often used to make sure that people stay away from the server.
Once again, like the kick function, it can be used to ban another player's ID from the server, this is done in the same way as the kick function. "!ban 2" would ban ID 2 from the server.
on *:SIGNAL:vcmp.player.command:{ if ( $3 == ban ) { vcmp.ban $1 $4 } }
The $4 would be the "2" in "!ban 2" and so they will be banned from the server instead of the player using the command.
Notes
This example uses vcmp.player.command.
