Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Check if player is alive?
10 replies![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)
1
2
3
4
2
3
4
addhook("die","_die") function _die(p) 	--put your stuff here end
(the "p" is the player id)
addhook("serveraction","srn")
function srn(id,act)
if act==1 then
menu(id,"Menu,(Item),Health")
end
end
end
edited 1×, last 12.05.14 02:02:00 pm
![cs2d lua cmd](img/i_codehelp.png)
1
2
3
4
5
2
3
4
5
if (player(id,"health")>0) then 	-- player is alive else 	-- player is dead end
edited 1×, last 12.05.14 12:06:23 pm
His English is fine, dont mind grammars
Admin/mod comment
![Rules](img/v_illegal.png)
![To the start](img/i_first.png)
![Previous](img/i_prev.png)
![Next](img/i_next.png)
![To the start](img/i_last.png)