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

C++ Player logout non-logout area

Fortera Global

Intermediate OT User
Joined
Nov 20, 2015
Messages
1,182
Solutions
2
Reaction score
117
How to fix it:

when the player loses connection, they is logging even while in the anti-logout area, how fix it?

using tfs 1.2

datapack otx
 
Solution
fixed

Lua:
if player:getStorageValue(Storage.combatProtectionStorage) < 1 then
        player:setStorageValue(Storage.combatProtectionStorage, 1)
        onMovementRemoveProtection(playerId, player:getPosition(), 10)
    end
fixed

Lua:
if player:getStorageValue(Storage.combatProtectionStorage) < 1 then
        player:setStorageValue(Storage.combatProtectionStorage, 1)
        onMovementRemoveProtection(playerId, player:getPosition(), 10)
    end
 
Solution
Back
Top