narko
vertrauenswürdig ~
Code:
function onStatsChange(cid, attacker, type, combat, value)
if type == 1 and getCreatureHealth(cid) <= value then
if(getGlobalStorageValue(33165) == 1) then
elseif isPlayer(attacker) and isPlayer(cid) then
if isPlayer then
if tostring(getPlayerStorageValue(cid, 16391)) == tostring(getPlayerStorageValue(cid, 16391)) then
return false
end
end
end
return true
end
end
I've been trying something like this, but when a player attacks an enemie it hits no DMG and when attacks a teammate either. @Limos just tagging you if you'd like to help me
Last edited: