• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Player Death - Please help ASAP!

Eldora

Banned User
Joined
Oct 19, 2009
Messages
604
Reaction score
26
I have a problem, when a player die it sometimes works fine and he spawn at the temple as intended.

But in some cases, the player get the message "You are dead." but he wont die, instead he will get full HP and this can repeat itself up to 5 times until he finally dies and spawn the temple.

LUA related or source related you think?

Here is my playerdeath.lua code:
LUA:
-- Online List (Website)
    db.query('UPDATE `players` SET `status` = 0 WHERE `id` = '..getPlayerGUID(cid)..'')  
   
   if (getHouseByPlayerGUID(getPlayerGUID(cid)) ~= nil) then
      doSaveHouse(getHouseByPlayerGUID(getPlayerGUID(cid)))
   end

end


Very thankful for any help on this case!
 
Back
Top