troquem essa parte:
function onCombat(cid, target)
if isPlayer(cid) and isPlayer(target) then
if (getPlayerStorageValue(cid, _Lib_Battle_Info.TeamOne.storage) >= 1 and getPlayerStorageValue(target, _Lib_Battle_Info.TeamOne.storage) >= 1) or (getPlayerStorageValue(cid, _Lib_Battle_Info.TeamTwo.storage) >= 1 and getPlayerStorageValue(target, _Lib_Battle_Info.TeamTwo.storage) >= 1) then
doPlayerSendCancel(cid, "You may not attack your team mates.")
return false
end
end
return true
end
por essa:
function onCombat(cid, target)
if isPlayer(cid) and isPlayer(target) then
if getPlayerStorageValue(cid, _Lib_Battle_Info.TeamOne.storage) == 1 and getPlayerStorageValue(target, _Lib_Battle_Info.TeamOne.storage) == 1 then
doPlayerSendCancel(cid, "You may not attack your team mates.") return false
end
if getPlayerStorageValue(cid, _Lib_Battle_Info.TeamTwo.storage) == 1 and getPlayerStorageValue(target, _Lib_Battle_Info.TeamTwo.storage) == 1 then
doPlayerSendCancel(cid, "You may not attack your team mates.") return false
end
return true
end
return true
end