check if player is alive for humanity change

This commit is contained in:
icomrade
2016-04-29 17:19:48 -04:00
parent 89eea668f5
commit 6fa3365b70

View File

@@ -31,7 +31,7 @@ if (_unit == player) then
{ {
if (_hit == "") then if (_hit == "") then
{ {
if ((_source != player) and _isPlayer) then if ((_source != player) and _isPlayer && alive player) then
{ {
_isBandit = (player getVariable["humanity",0]) <= -5000; _isBandit = (player getVariable["humanity",0]) <= -5000;
//_isBandit = (_model in ["Bandit1_DZ","BanditW1_DZ"]); //_isBandit = (_model in ["Bandit1_DZ","BanditW1_DZ"]);