Tenta ae:
function onDeath(cid, corpse, deathList)
local config = {
onlypremium = false, -- se precisa ser premium para não perder nada
exp = true, -- se ao morrer o jogador irá perder exp
skills = true, -- se ao morrer vai perder skills
magic = true, -- se vai perder magic level
loot = false, -- se ao morrer o jogador irá perder o loot
level = 150 -- até que level irá proteger o player
}
if isPlayer(cid) and (getPlayerLevel(cid) <= config.level) and (not isPlayerPzLocked(cid)) then
if config.onlypremium == true and not isPremium(cid) then return TRUE end
if config.loot == false then doCreatureSetDropLoot(cid, false) end
if config.magic == false then doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0) end
if config.skills == false then doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0) end
if config.exp == false then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0) end
return TRUE end return TRUE end





info
Grupo: Visconde
Registrado: 02/10/13
Posts: 320
Reputação: +22
Gênero: Masculino
Esse script, é um script que protege jogador com level menor que 150 para que não percam loot, mas eu queria que ele fizesse isso, mas tem um porém, jogador que tivesse com pk, red ou black irão perder loot, conseguiram entender?