mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 03:33:04 +08:00
[saco] Implement/match DisableCheckpoint, DisableRaceCheckpoint and GameModeRestart
This commit is contained in:
@@ -87,4 +87,5 @@ public:
|
||||
void DisableMapIcon(BYTE byteIndex);
|
||||
|
||||
int ToggleNameTagStatus(); // .text:10008E90
|
||||
void sub_1000A540(); // .text:1000A540
|
||||
};
|
||||
|
||||
+15
-3
@@ -1,6 +1,9 @@
|
||||
|
||||
#include "../main.h"
|
||||
|
||||
extern CNetGame* pNetGame;
|
||||
extern CGame * pGame;
|
||||
|
||||
// TODO: these RPCs
|
||||
void Unk22(RPCParameters *rpcParams) {}
|
||||
void Unk24(RPCParameters *rpcParams) {}
|
||||
@@ -8,12 +11,21 @@ void Unk3A(RPCParameters *rpcParams) {}
|
||||
void Unk3B(RPCParameters *rpcParams) {}
|
||||
void Unk3D(RPCParameters *rpcParams) {}
|
||||
void SetCheckpoint(RPCParameters *rpcParams) {}
|
||||
void DisableCheckpoint(RPCParameters *rpcParams) {}
|
||||
void DisableCheckpoint(RPCParameters *rpcParams)
|
||||
{
|
||||
pGame->m_bCheckpointsEnabled = FALSE;
|
||||
}
|
||||
void SetRaceCheckpoint(RPCParameters *rpcParams) {}
|
||||
void DisableRaceCheckpoint(RPCParameters *rpcParams) {}
|
||||
void DisableRaceCheckpoint(RPCParameters *rpcParams)
|
||||
{
|
||||
pGame->m_bRaceCheckpointsEnabled = FALSE;
|
||||
}
|
||||
void UpdateScoresPingsIPs(RPCParameters *rpcParams) {}
|
||||
void SvrStats(RPCParameters *rpcParams) {}
|
||||
void GameModeRestart(RPCParameters *rpcParams) {}
|
||||
void GameModeRestart(RPCParameters *rpcParams)
|
||||
{
|
||||
pNetGame->sub_1000A540();
|
||||
}
|
||||
void ConnectionRejected(RPCParameters *rpcParams) {}
|
||||
void ClientMessage(RPCParameters *rpcParams) {}
|
||||
void WorldTime(RPCParameters *rpcParams) {}
|
||||
|
||||
Reference in New Issue
Block a user