Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,200
- Solutions
- 2
- Reaction score
- 149
Hello, this script works: If one player kill one player 200+ he takes an storage...
I need to if who death are lvl 200- dont take the storage...
Script:
I try this (wrong):
if lasthitkiller and lasthitkiller:isPlayer() and lasthitkiller:getLevel() > 200 then
Help
I need to if who death are lvl 200- dont take the storage...
Script:
Code:
function onKill(creature, target)
if target:isPlayer() and target:getLevel() > 200 then
creature:setStorageValue(167912, math.max(0, creature:getStorageValue(167912)) + 1)
db.query("UPDATE `players` SET `frag_points` = `frag_points` + '1' WHERE `name` = '"..creature:getName().."';")
end
return true
end
function onDeath(creature, corpse, lasthitkiller, mostdamagekiller, lasthitunjustified, mostdamageunjustified)
if lasthitkiller and lasthitkiller:isPlayer() then
creature:setStorageValue(167913, math.max(0, creature:getStorageValue(167913)) + 1)
end
return true
end
I try this (wrong):
if lasthitkiller and lasthitkiller:isPlayer() and lasthitkiller:getLevel() > 200 then
Help
