• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Need Premium to Login

Code:
if not isPremium(cid) then
    return false
end
 
Last edited:
no need edit source?
i need block the login if not account premium

I thought I would do the following
when I give /closeserver only tutor, gm, cm and god can enter the server, need change to only premium accounts enter the server if closeserver

I do not know which source should I edit it
 
protocolgame.cpp
Code:
if(g_game.getGameState() == GAMESTATE_CLOSED)
Try changing to
Code:
if(!player->isPremium() && g_game.getGameState() == GAMESTATE_CLOSED)
 
Back
Top