Player.Kill

From GMod Wiki

Revision as of 19:52, 4 November 2009 by Dlaor (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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