finish fully working stamina system for 56h with 2 hours of happy time for premium players

This commit is contained in:
ErikasKontenis
2019-11-13 19:22:15 +02:00
parent c01ff81bff
commit be93a8fa22
8 changed files with 90 additions and 5 deletions

View File

@@ -3,7 +3,10 @@ local maxDeathRecords = 50
function onDeath(player, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
local playerId = player:getId()
if nextUseStaminaTime[playerId] then
nextUseStaminaTime[playerId] = nil
end
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are dead.")
-- restart blessings values