Player.Kill

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:Kill( )
Description:
Kills the player.
Returns: nil
In Object: Player
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.Kill]Player.Kill [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionKills every player in the server.
Used onNewerServer.png
Code
for k,v in pairs(player.GetAll()) do
	v:Kill()
end
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox