Saut, am o problema la verificarea numelui starterului C++.
Problema este in felul urmator, daca numele starterului nu corespunde cu cel pus in protectie, nu te lasa sa intri pe un cont de player, doar pe cele cu drepturi implementor.
Am schimbat numele in protectie ca sa fie acelasi nume ca si in client, dar degeaba, tot nu merge. Am incercat sa pun in loc de GM_IMPLEMENTOR, GM_PLAYER, si acum nu ma lasa sa intru pe cont de GM
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, "Morality2.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;
}
bogdilord123 scrie:Saut, am o problema la verificarea numelui starterului C++.
Problema este in felul urmator, daca numele starterului nu corespunde cu cel pus in protectie, nu te lasa sa intri pe un cont de player, doar pe cele cu drepturi implementor.
Am schimbat numele in protectie ca sa fie acelasi nume ca si in client, dar degeaba, tot nu merge. Am incercat sa pun in loc de GM_IMPLEMENTOR, GM_PLAYER, si acum nu ma lasa sa intru pe cont de GM
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, "Morality2.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;
}