Ir para conteúdo

Featured Replies

Postado

ASSIM GLR QUANDO EU ATIVO ESSE EVENT ABAIXO  MEU SERVE NÃO ATAKA OS PLAYER MAIS QUANDO EU TIRO O EVENT ABAIXO ELE ATAKA NORMAL  TEM COMO CORRIGIR ESSE ERRO NO COMBAT

 

<event type="combat" name="BattleTeam" event="script" value="BattleCreatureScript.lua"/>

 

AKI EMBAIXO É O SCRIPT LA DO COMBAT MAIS COMO EU NÃO SEI DE SCRIPT TO PEDINDO  UMA AJUDA A VCS 

 

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

  • 1 month later...
Postado

<event type="combat" name="BattleTeam" event="script" value="BattleCreatureScript.lua"/>

 

AKI EMBAIXO É O SCRIPT LA DO COMBAT MAIS COMO EU NÃO SEI DE SCRIPT TO PEDINDO  UMA AJUDA A VCS 

 

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
 
 
troka fause por true ;p
 
doPlayerSendCancel(cid, "You may not attack your team mates.") return false <- por true

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo