Lais Prad
Disgusting Scammer
- Joined
- Apr 12, 2017
- Messages
- 153
- Solutions
- 6
- Reaction score
- 15
How to put for all players win the storage when monster die?
The script give storage for only one player:
The script give storage for only one player:
LUA:
function onKill(cid, target, damage, flags, corpse)
local player = Player(cid)
if(isMonster(target)) then
if(string.lower(getCreatureName(target)) == "rat") then
if player:getStorageValue(2204171609) < 1 then
player:setStorageValue(2204171609, 1)
end
end
end
return true
end