Forum
![>](img/i_next.png)
![>](img/icons/cs2d.png)
![>](img/i_next.png)
![>](img/i_next.png)
Check if player is alive?
10 Antworten![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](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
1× editiert, zuletzt 12.05.14 14:02:00
![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
1× editiert, zuletzt 12.05.14 12:06:23
His English is fine, dont mind grammars
Admin/Mod Kommentar
![Regeln](img/v_illegal.png)
![Zum Anfang](img/i_first.png)
![Vorherige](img/i_prev.png)
![Nächste](img/i_next.png)
![Zum Anfang](img/i_last.png)