• 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++ Force kick when client close

Ascuas Funkeln

Rakkedo Game
Joined
Apr 14, 2013
Messages
549
Solutions
32
Reaction score
305
Location
Poland
GitHub
AscuasFunkeln
C++:
    if (noPongTime >= 60000 && canLogout()) {
        if (g_creatureEvents->playerLogout(this)) {
            if (client) {
                client->logout(true, true);
            } else {
                g_game.removeCreature(this, true);
            }
        }
    }
Someone can explain me how this work? Because its not work like i think it should work...
What i need is to make player force kick when they close client, but he can be unlimited afk when client is online.
So, editing time in kickidleplayer is useless in this case.
Change this:
C++:
    if (noPongTime >= 60000 && canLogout()) {
to this:
C++:
    if (noPongTime >= 60000) {
Make player kick even when client is online, player walk etc. Just wtf?
 
Back
Top