Garry's Mod Wiki

Garry's Mod Wiki

  Player:Kill()

Description

Kills a player and calls GM:PlayerDeath.

Example

When the user types "/respawn" the user will be killed and then respawned.

hook.Add( "PlayerSay", "RespawnCommand", function( ply, text, public ) if ( string.lower( text ) == "/respawn" ) then ply:Kill() ply:Spawn() return "" end end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...