game/KickID

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
 
Line 13: Line 13:
 
|name=reason
 
|name=reason
 
|desc=Reason to display to the player. This can span across multiple lines.
 
|desc=Reason to display to the player. This can span across multiple lines.
 +
 +
{{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.}}
 
|default="No reason given"
 
|default="No reason given"
 
}}
 
}}

Latest revision as of 20:21, 26 November 2019

 game.KickID( )

Description

Kicks a player from the server. This can be ran before the player has spawned.

Arguments

string id

UserID or SteamID of the player to kick.

Arguments

string reason="No reason given"

Reason to display to the player. This can span across multiple lines.

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.

Personal tools
Navigation