mmheo
New Member
- Joined
- Sep 14, 2017
- Messages
- 157
- Reaction score
- 1
hello i have this script but when player StepIn items server crash anyone can tell me why
0.4
Code:
function onStepIn(cid, item, pos)
if(isPlayer(cid)) then
local top = getCreatureMaxHealth(cid) / 3
if(item and item.uid > 0 and getItemAttribute(item.uid, "aid") and getItemAttribute(item.uid, "aid") == 13111) then
doItemEraseAttribute(item.uid, "aid")
end
doTargetCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, -1, -top, CONST_ME_EXPLOSIONAREA)
end
return true
end