logout.lua

main 8 lines · 280 bytes Raw
Alex Alex Commit Server upload 18/10/2026 23:38
1function onLogout(player)
2 player:sendCancelMessage("@timeLogin 05")
3 if player:getStorageValue(_PLAYER_INFO.LOGOUT_DELAY) > 0 then
4 player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Aguarde alguns segundos para poder deslogar novamente.")
5 return false
6 end
7 return true
8end
Top