Forum




Check if player is alive?
10 replies



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

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




