Postado Março 8, 2018 7 anos Gostaria de colocar um level minimo nesse script que seria de level 500. se ele matar lvl 500+ ele ganha o item, se ele matar 500- ele não ganha o item. Sera que alguém pode ajudar ? function onKill(cid, target, lastHit) local item,count = 5925,1 if isPlayer(cid) and isPlayer(target) and getPlayerIp(target) ~= getPlayerIp(cid) then doPlayerAddItem(cid, item, count) end return TRUE end
Postado Março 8, 2018 7 anos @Jinx Testa function onKill(cid, target, lastHit) local item,count = 5925,1 if isPlayer(cid) and isPlayer(target) and getPlayerLevel(target) >= 500 and getPlayerIp(target) ~= getPlayerIp(cid) then doPlayerAddItem(cid, item, count) end return TRUE end
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.