From 162f578667e15c26826b581b306719390d5c2f36 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Tue, 17 Sep 2024 11:19:31 +0800 Subject: [PATCH] [server] Implement/match `n_DisablePlayerCheckpoint(...)` --- server/scrcustom.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/scrcustom.cpp b/server/scrcustom.cpp index d7df1e8..cfb11b5 100644 --- a/server/scrcustom.cpp +++ b/server/scrcustom.cpp @@ -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) { - // TODO: DisablePlayerCheckpoint + CPlayer *pPlayer = pNetGame->GetPlayerPool()->GetAt((PLAYERID)params[1]); + if (pPlayer) + { + pPlayer->ToggleCheckpoint(FALSE); + + return 1; + } return 0; }