Jump to content

Recommended Posts

hello who create one lib?

source:

 

1. Search for this function in game/input.cpp:

void CInputProcessor::Version(LPCHARACTER ch, const char* c_pData)

     2. Replace the entire function with this:

if (!ch)
{
    return;
}
 
TPacketCGClientVersion * p = (TPacketCGClientVersion *) c_pData;
 
// If the file name is not metin2client.exe and the GM level is not equal with GM_IMPLEMENTOR kick the player
if (strcmp(p->filename, "metin2client.exe") && ch->GetGMLevel() != GM_IMPLEMENTOR)
{
    // immediately close the connection with the player
    sys_err("%s[%d] has been disconnected: %s", ch->GetName(), ch->GetPlayerID(),  p->filename);
    ch->GetDesc()->SetPhase(PHASE_CLOSE);
    return;
}
 
sys_log(0, "VERSION: %s %s %s", ch->GetName(), p->timestamp, p->filename);
ch->GetDesc()->SetClientVersion(p->timestamp);
 
 
 
 
pls hellp me :D
Link to comment
https://metin2.dev/topic/6441-who-create-one-lib/
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.