player.Kick

From GMod Wiki

Jump to: navigation, search
Function
Syntax player.Kick( String reason )
Where is this used?
Description:
Kicks a player from the server
Returns: nil
Part of Library: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.Kick]Player.Kick [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionThis example kicks all players on the server
Used onNewerServer.png
Code
 
for _, v in pairs(player.GetAll()) do
	v:Kick("I don't need to give you a reason!")
end
 
OutputKicks The Player


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox