mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[bot] Implement CNetGame::Packet_DisconnectionNotification(...)
This commit is contained in:
parent
5b4c02f33b
commit
5f90bc9633
@ -261,6 +261,10 @@ void CNetGame::UpdateNetwork()
|
||||
Packet_ConnectionBanned(pkt);
|
||||
break;
|
||||
|
||||
case ID_DISCONNECTION_NOTIFICATION:
|
||||
Packet_DisconnectionNotification(pkt);
|
||||
break;
|
||||
|
||||
case ID_MODIFIED_PACKET:
|
||||
Packet_ModifiedPacket(pkt);
|
||||
break;
|
||||
@ -344,6 +348,15 @@ void CNetGame::Packet_ConnectionBanned(Packet* packet)
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CNetGame::Packet_DisconnectionNotification(Packet* packet)
|
||||
{
|
||||
//OutputDebugString("BOT: Disconnected.");
|
||||
m_pRakClient->Disconnect(0);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CNetGame::Packet_ModifiedPacket(Packet* packet)
|
||||
{
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ private:
|
||||
void Packet_AimSync(Packet *p);
|
||||
void Packet_PassengerSync(Packet *p);
|
||||
void Packet_ConnectionBanned(Packet* packet);
|
||||
void Packet_DisconnectionNotification(Packet* packet);
|
||||
void Packet_ModifiedPacket(Packet* packet);
|
||||
void Packet_TrailerSync(Packet *p);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user