[server] Implement/match n_DisablePlayerRaceCheckpoint(...)

This commit is contained in:
RD42 2024-09-17 11:19:57 +08:00
parent 162f578667
commit 4599988161

View File

@ -1053,7 +1053,13 @@ params[9]);
static cell AMX_NATIVE_CALL n_DisablePlayerRaceCheckpoint(AMX *amx, cell *params)
{
// TODO: DisablePlayerRaceCheckpoint
CPlayer *pPlayer = pNetGame->GetPlayerPool()->GetAt((PLAYERID)params[1]);
if (pPlayer)
{
pPlayer->ToggleRaceCheckpoint(FALSE);
return 1;
}
return 0;
}