Ir para conteúdo

Featured Replies

Postado

function onKill(cid, target, lastHit)
if cid ~= target and isPlayer(target) then
if getPlayerIp(cid) == getPlayerIp(target) then
doPlayerAddExperience(cid, -1000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have been punished for killing a player of the same IP.')
else
local attackerLevel, level = getPlayerLevel(cid), getPlayerLevel(target)
if level >= math.floor(attackerLevel * 0.5) and level <= math.floor(attackerLevel * 1.5) then
doPlayerAddItem(cid, 2152, 5)
doPlayerAddItem(cid, 5944, 1)
end
end
end
return true
end

 

 

Me ajude Por favor para este roteiro como trabalhar

 

Own3d By Namo

Screenshot_1.png

Editado por Jow12 (veja o histórico de edições)

Postado
  • Autor

function onKill(cid, target, lastHit)
if cid ~= target and isPlayer(target) then
if getPlayerIp(cid) == getPlayerIp(target) then
doPlayerAddExperience(cid, -1000000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, 'You have been punished for killing a player of the same IP.')
else
local attackerLevel, level = getPlayerLevel(cid), getPlayerLevel(target)
if level >= math.floor(attackerLevel * 0.5) and level <= math.floor(attackerLevel * 1.5) then
doPlayerAddItem(cid, 2152, 5)
doPlayerAddItem(cid, 5944, 1)
end
end
end
return true
end

 

 

 

ajuda por favor

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo