Player/Kick

From Garry's Mod
Revision as of 19:51, 9 December 2018 by Bo98 (Talk | contribs)
Jump to: navigation, search
 Player:Kick( )

Contents

Description

Kicks the player from the server.

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