Garry's Mod Wiki

Player:Alive

boolean Player:Alive()

Description

Checks if the player is alive.

Returns

1 boolean
Whether the player is alive

Example

Loops through all the players and kills alive ones.

for k, v in pairs( player.GetAll() ) do if ( v:Alive() ) then v:Kill() end end

Page Links


Special Pages


Wikis

?

Render Time: 29ms

Session 0
DB GetPage 3
Generate Html 1
SaveChanges 10
Render Body 0
Render Sidebar 12