Ir para conteúdo

[Encerrado] [Encerrado] Duel apenas em pvp zone(PDA)


PxN

Posts Recomendados

Ola amigos, boa noite.

Eu queria deixar o duel habilitado apenas se os players estivessem em pvp zone, sera que alguem poderia me ajudar?

-------- DUEL SYSTEM ------------------------if isPlayer(player) and player ~= cid and getPlayerStorageValue(player, 6598754) <= -1 and getPlayerStorageValue(player, 52480) <= -1 and not getCreatureCondition(cid, CONDITION_INFIGHT) then  if getPlayerStorageValue(cid, 52480) <= -1 or (getPlayerStorageValue(cid, 52481) >= 1 and getPlayerStorageValue(cid, 52482) ~= -1) then                  ---local canDuel = truefor s = 1, #storages do    if getPlayerStorageValue(cid, storages[s]) >= 1 or getPlayerStorageValue(player, storages[s]) >= 1 then		canDuel = false		break    endendif not canDuel then	return doPlayerSendTextMessage(cid, 20, "You can't do that while is Flying, Riding, Surfing, Diving or mount a bike!") endif getPlayerStorageValue(cid, 6598754) == 1 or getPlayerStorageValue(cid, 6598755) == 1 thenreturn doPlayerSendTextMessage(cid, 20, "You can't do that while in PVP zone!")endif getPlayerStorageValue(cid, INOUTLAND) == 1 thenreturn doPlayerSendTextMessage(cid, 20, "You can't do that while in Outland!")endif getPlayerStorageValue(cid, PLAYER_PVP_ARENA) > 0 thenreturn doPlayerSendTextMessage(cid, 20, "You can't duel while in Arena PvP. If you isn't in, please logout.")endif #getCreatureSummons(cid) < 1 thenreturn doPlayerSendTextMessage(cid, 20, "You need a pokemon to invit someone to duel!")endif getPlayerStorageValue(cid, 45765) > 0 thendoPlayerSendTextMessage(cid, 20, "Mew(two) don't want to duel.")return trueendif getTilePzInfo(getThingPos(cid)) or getTilePzInfo(getThingPos(player)) thendoPlayerSendTextMessage(cid, 20, "You can't duel in PZ.")return trueend

Ai esta a perte que limita os players para o duel, tem como colocar ai uma proteção para apenas quando estiver em pvp zone?

Link para o comentário
Compartilhar em outros sites

  • 6 months later...
Visitante
Este tópico está impedido de receber novos posts.
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...