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
agr ta dano para atacar o inimigo, mas o script nao ta obedecendo o tanto de player que eu coloco
na hora q ta anunciando o evento fala direitinho, 2 player divididos em 1x1 ... mas qndo eu mato o outro fala
15:10 [battleField Information] Black Assassins 6 VS 5 Red Barbarians
como que eu arrumo isso?
@edit
percebi que o script nao ta obedecendo o numero de player e sempre adiciona 2 player pro proximo evento...
como arrumar isso?