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

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

View File

@ -1010,7 +1010,13 @@ static cell AMX_NATIVE_CALL n_SetPlayerCheckpoint(AMX *amx, cell *params)
static cell AMX_NATIVE_CALL n_DisablePlayerCheckpoint(AMX *amx, cell *params) static cell AMX_NATIVE_CALL n_DisablePlayerCheckpoint(AMX *amx, cell *params)
{ {
// TODO: DisablePlayerCheckpoint CPlayer *pPlayer = pNetGame->GetPlayerPool()->GetAt((PLAYERID)params[1]);
if (pPlayer)
{
pPlayer->ToggleCheckpoint(FALSE);
return 1;
}
return 0; return 0;
} }