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