function onLogin(cid)
local player = Player(cid)
local loginStr = "Welcome to " .. configManager.getString(configKeys.SERVER_NAME) .. "!"
if player:getLastLoginSaved() <= 0 then
loginStr = loginStr .. " Please choose your outfit before I smack you in the face."
player:sendOutfitWindow()
else
if loginStr ~= "" then
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)
end
loginStr = string.format("Your last visit was on %s.", os.date("%a %b %d %X %Y", player:getLastLoginSaved()))
end
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)
player:registerEvent("PlayerDeath")
doPlayerSetLossPercent(cid,0)
return true
end
yeah idk exactly either lets wait for Himii seems like he knows.I guess you should add it after player death, but I dont know if this requires an additional script
Code:function onLogin(cid) local player = Player(cid) local loginStr = "Welcome to " .. configManager.getString(configKeys.SERVER_NAME) .. "!" if player:getLastLoginSaved() <= 0 then loginStr = loginStr .. " Please choose your outfit before I smack you in the face." player:sendOutfitWindow() else if loginStr ~= "" then player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) end loginStr = string.format("Your last visit was on %s.", os.date("%a %b %d %X %Y", player:getLastLoginSaved())) end player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) player:registerEvent("PlayerDeath") doPlayerSetLossPercent(cid,0) return true end
i've tried here, didnt work for mefound simple solution do this in playerdeath.lua
@@ -5,6 +5,7 @@ function onDeath(cid, corpse, killer, mostDamage, unjustified, mostDamage_unjust
local player = Player(cid)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are dead.")
+ doSetCreatureDropLoot(cid, false)
if not deathListEnabled then
return
end
all you add is the -- doSetCreatureDropLoot(cid, false)
simple as that.