Forum
CS2D Scripts Check if player is alive?Check if player is alive?
10 Antworten 1
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
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
§2.1 - Keine überflüssige/doppelte Beiträge (Spam) 1