Scripting/mIRC/Functions/Misc/Kick

From VC-MP Wiki

Jump to: navigation, search


The kick function allows you to kick a player from the server if you give it the right information.

Syntax

alias vcmp.kick !return $dll( " $+ $scriptdirvcmp.dll $+ ", Kick, $1- )

Arguments

  • $1 - ServerID
  • $2 - PlayerID

Example

This will kick the player when somebody types !kick in game

on *:SIGNAL:vcmp.player.command:{
     if ( $3 == kick ) {
          vcmp.kick $1 $2
     }
}

Another way in which it could be used is to kick another player from the server.

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

This will occur when someone types "!kick 2" in game, the "2" is the $4 or 4th parameter and so it will kick ID 2 from the server.

Notes

This example uses vcmp.player.command.

Related Functions

Personal tools
squirrel scripting