Scripting/Server/Functions/BanPlayer

Bans the player and disconnects them. Bans are saved in banlist.xml.

Syntax

BanPlayer(player)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "banplayer" )
	{
		BanPlayer( 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