mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 01:38:17 +08:00
[saco] Match three CNetGame packet handlers; full, bad password and no response
This commit is contained in:
1 parent
b3dab2e6ef
commit
3e1070db78
2 files changed
+31
No files matched your search
@@ -144,3 +144,30 @@ void CNetGame::ResetMapIcons()
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
// MATCH
|
||||
void CNetGame::Packet_NoFreeIncomingConnections(Packet *p)
|
||||
{
|
||||
pChatWindow->AddDebugMessage("The server is full. Retrying...");
|
||||
m_iGameState = GAMESTATE_WAIT_CONNECT;
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
// MATCH
|
||||
void CNetGame::Packet_InvalidPassword(Packet *p)
|
||||
{
|
||||
pChatWindow->AddDebugMessage("Wrong server password.");
|
||||
GetRakClient()->Disconnect(0,0);
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
// MATCH
|
||||
void CNetGame::Packet_ConnectionAttemptFailed(Packet *p)
|
||||
{
|
||||
pChatWindow->AddDebugMessage("The server didn't respond. Retrying..");
|
||||
m_iGameState = GAMESTATE_WAIT_CONNECT;
|
||||
}
|
||||
@@ -106,6 +106,10 @@ public:
|
||||
void DisableMapIcon(BYTE byteIndex); // .text:10008FB0
|
||||
|
||||
CMenuPool * GetMenuPool() { return m_pPools->pMenuPool; }; // .text:100084F0
|
||||
void Packet_NoFreeIncomingConnections(Packet *p); // .text:10008DB0
|
||||
void Packet_InvalidPassword(Packet *p); // .text:10008E20
|
||||
void Packet_ConnectionAttemptFailed(Packet *p); // .text:10008E60
|
||||
|
||||
int ToggleNameTagStatus(); // .text:10008E90
|
||||
void sub_1000A540(); // .text:1000A540
|
||||
};
|
||||
Reference in new issue
Block a user