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:
Very thankful for any help on this case!
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!