Cod: [Local Link Removed for Guests]
int CInputMain::Analyze(LPDESC d, BYTE bHeader, const char * c_pData)
Cod: [Local Link Removed for Guests]
if (ch && ch->IsPC())
{
if (get_global_time() < ch->analyze_protect)
{
ch->analyze_protect_count = ch->analyze_protect_count + 1;
ch->ChatPacket(CHAT_TYPE_INFO, "<test server> analyze_protect_count. Count %d", ch->analyze_protect_count);
if (ch->analyze_protect_count >= 300)
{
ch->analyze_protect_count = 0;
d->SetPhase(PHASE_CLOSE);
return (0);
}
}
else
ch->analyze_protect_count = 0;
ch->analyze_protect = get_global_time() + 1;
}
Cod: [Local Link Removed for Guests]
analyze_protect = 0;
analize_protect_count = 0;