mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 14:37:29 +08:00
[server] Implement/match n_IsPlayerInRaceCheckpoint(...)
This commit is contained in:
parent
5be383d8ba
commit
b7b3ee511b
@ -207,6 +207,9 @@ public:
|
||||
void ToggleCheckpoint(BOOL bEnabled);
|
||||
void SetRaceCheckpoint(int iType, float fX, float fY, float fZ, float fNX, float fNY, float fNZ, float fSize);
|
||||
void ToggleRaceCheckpoint(BOOL bEnabled);
|
||||
|
||||
BOOL IsInRaceCheckpoint() { return m_bInRaceCheckpoint; };
|
||||
|
||||
};
|
||||
|
||||
//----------------------------------------------------
|
||||
|
@ -1042,7 +1042,11 @@ static cell AMX_NATIVE_CALL n_DisablePlayerRaceCheckpoint(AMX *amx, cell *params
|
||||
|
||||
static cell AMX_NATIVE_CALL n_IsPlayerInRaceCheckpoint(AMX *amx, cell *params)
|
||||
{
|
||||
// TODO: IsPlayerInRaceCheckpoint
|
||||
CPlayer *pPlayer = pNetGame->GetPlayerPool()->GetAt((PLAYERID)params[1]);
|
||||
if (pPlayer)
|
||||
{
|
||||
return pPlayer->IsInRaceCheckpoint();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user