mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 01:38:17 +08:00
[saco] Match SvrStats; it reads straight into the global RakServerStats
This commit is contained in:
1 parent
f1ca3e849c
commit
1a2d8d76ad
1 file changed
+10
-1
+10
-1
@@ -4,6 +4,7 @@
|
||||
extern CNetGame* pNetGame;
|
||||
extern CGame * pGame;
|
||||
extern CChatWindow *pChatWindow;
|
||||
extern RakNetStatisticsStruct RakServerStats;
|
||||
|
||||
// MATCH
|
||||
BYTE Checksum(BYTE *pData, WORD wLen)
|
||||
@@ -117,7 +118,15 @@ void DisableRaceCheckpoint(RPCParameters *rpcParams)
|
||||
pGame->m_bRaceCheckpointsEnabled = FALSE;
|
||||
}
|
||||
void UpdateScoresPingsIPs(RPCParameters *rpcParams) {}
|
||||
void SvrStats(RPCParameters *rpcParams) {}
|
||||
// MATCH
|
||||
void SvrStats(RPCParameters *rpcParams)
|
||||
{
|
||||
PCHAR Data = reinterpret_cast<PCHAR>(rpcParams->input);
|
||||
int iBitLength = rpcParams->numberOfBitsOfData;
|
||||
|
||||
RakNet::BitStream bsData(Data,(iBitLength/8)+1,false);
|
||||
bsData.Read((PCHAR)&RakServerStats,sizeof(RakNetStatisticsStruct));
|
||||
}
|
||||
// MATCH
|
||||
void GameModeRestart(RPCParameters *rpcParams)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user