Player/Kick

From Garry's Mod
Jump to: navigation, search
 Player:Kick( )

Contents

Description

Kicks the player from the server.

NOTE

This can not be run before the player has fully joined in. Use game.KickID for that.

Arguments

string reason="No reason given"

Reason to show for disconnection.

WARNING

This will be shortened to ~512 chars, though this includes the command itself and the player index so will realistically be more around ~498. It is recommended to avoid going near the limit to avoid truncation.

Examples

Example

Kick a player with reason "Goodbye"

ply:Kick( "Goodbye" )


Personal tools
Navigation