mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[bot] Implement CNetGame::Packet_RSAPublicKeyMismatch(...)
This commit is contained in:
parent
6e7af2874d
commit
23f4c008a9
@ -292,6 +292,9 @@ void CNetGame::UpdateNetwork()
|
|||||||
|
|
||||||
switch(packetIdentifier)
|
switch(packetIdentifier)
|
||||||
{
|
{
|
||||||
|
case ID_RSA_PUBLIC_KEY_MISMATCH:
|
||||||
|
Packet_RSAPublicKeyMismatch(pkt);
|
||||||
|
break;
|
||||||
case ID_CONNECTION_BANNED:
|
case ID_CONNECTION_BANNED:
|
||||||
Packet_ConnectionBanned(pkt);
|
Packet_ConnectionBanned(pkt);
|
||||||
break;
|
break;
|
||||||
@ -380,6 +383,14 @@ void CNetGame::Packet_TrailerSync(Packet *p)
|
|||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
|
|
||||||
|
void CNetGame::Packet_RSAPublicKeyMismatch(Packet* packet)
|
||||||
|
{
|
||||||
|
//logprintf("NPC: Failed to initialize encryption.");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------
|
||||||
|
|
||||||
void CNetGame::Packet_ConnectionBanned(Packet* packet)
|
void CNetGame::Packet_ConnectionBanned(Packet* packet)
|
||||||
{
|
{
|
||||||
//OutputDebugString("BOT: You're banned from the server.");
|
//OutputDebugString("BOT: You're banned from the server.");
|
||||||
|
@ -25,6 +25,7 @@ private:
|
|||||||
void Packet_AimSync(Packet *p);
|
void Packet_AimSync(Packet *p);
|
||||||
void Packet_PassengerSync(Packet *p);
|
void Packet_PassengerSync(Packet *p);
|
||||||
void Packet_ConnectionSucceeded(Packet *p);
|
void Packet_ConnectionSucceeded(Packet *p);
|
||||||
|
void Packet_RSAPublicKeyMismatch(Packet* packet);
|
||||||
void Packet_ConnectionBanned(Packet* packet);
|
void Packet_ConnectionBanned(Packet* packet);
|
||||||
void Packet_DisconnectionNotification(Packet* packet);
|
void Packet_DisconnectionNotification(Packet* packet);
|
||||||
void Packet_ModifiedPacket(Packet* packet);
|
void Packet_ModifiedPacket(Packet* packet);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user