Scripting/Server/Functions/KickPlayer

Disconnects the player (reported as PARTREASON_KICKED). (v0.4.9+) reason is shown to the player on a banner that stays until he presses ENTER.

Syntax

KickPlayer(player [, reason])

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "kickplayer" )
	{
		KickPlayer( player );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Finding and counting entities

Categories: Server functions | Finding and counting entities