• 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!

Windows Cannot logout after death! Please Help

zufux

Member
Joined
Sep 1, 2008
Messages
221
Reaction score
5
Hello,

I was just testing something, and it seems that You cannot log out after dying (only client shutdown helps).

anyone have a idea, what i can change? Is maybe the death lua wrong or should i change somethink in my sources?
 
function onDie(cid, corpse)
if(isPlayer(cid) == TRUE) then
setPlayerStorageValue(cid, STORAGE_REMOVE_BLESSES, 1)
db.query('UPDATE `players` SET `status` = 0 WHERE `id` = '..getPlayerGUIDByName(getCreatureName(cid))..'')
end
return TRUE
end
 
function onDie(cid, corpse)
if(isPlayer(cid) == TRUE) then
setPlayerStorageValue(cid, STORAGE_REMOVE_BLESSES, 1)
db.query('UPDATE `players` SET `status` = 0 WHERE `id` = '..getPlayerGUIDByName(getCreatureName(cid))..'')
end
return TRUE
end
WTF THIS FUNCTION
Code:
function onDie
not is onDeath() or onKill() ?
 
Back
Top