function onCombat(cid, target)
if isPlayer(cid) == TRUE and isPlayer(target) == TRUE then
if getPlayerStorageValue(cid, !storage!) == 1 then
doPlayerSendCancel(cid, "Can´t attack players.") --no-pvp player attacking
return false
end
if getPlayerStorageValue(target, !storage!) == 1 then
doPlayerSendCancel(cid, "Can´t attack that target.") --no-pvp player attacked
return false
end
end
return true
end