Ir para conteúdo
Banner com Efeitos

Featured Replies

  • Respostas 12
  • Visualizações 742
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • luanluciano93
    luanluciano93

    -- <event type="attack" name="onAttack" script="onAttack.lua"/> local level = 450 function onAttack(cid, target) if not isPlayer(cid) or not isPlayer(target) then return true end if get

  • luanluciano93
    luanluciano93

    -- <event type="target" name="onTarget" script="onTarget.lua"/> local level = 450 function onTarget(cid, target) if not isPlayer(cid) or not isPlayer(target) then return true end if get

Postado
-- <event type="target" name="onTarget" script="onTarget.lua"/>

local level = 450

function onTarget(cid, target)
	if not isPlayer(cid) or not isPlayer(target) then 
		return true
	end

	if getPlayerLevel(cid) >= level and getPlayerLevel(target) < level then
		return false
	elseif getPlayerLevel(target) >= level and getPlayerLevel(cid) < level then
		return false
	end

	return true
end

NAO TESTADO

Postado
Em 01/10/2019 em 00:03, luanluciano93 disse:

-- <event type="target" name="onTarget" script="onTarget.lua"/>

local level = 450

function onTarget(cid, target)
	if not isPlayer(cid) or not isPlayer(target) then 
		return true
	end

	if getPlayerLevel(cid) >= level and getPlayerLevel(target) < level then
		return false
	elseif getPlayerLevel(target) >= level and getPlayerLevel(cid) < level then
		return false
	end

	return true
end

NAO TESTADO

 

funcionou perfeitamente testado em 0.3.6 Aprovado ✔️

Projeto ATS (Naruto)

Informações Abaixo

Facebook

Youtube
Discord

 

Tutoriais / Conteúdos

Clique Aqui

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.7k

Informação Importante

Confirmação de Termo