From caf15b57427efd10903bb65b3e9cf25bfeb6727e Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Tue, 17 Sep 2024 11:21:17 +0800 Subject: [PATCH] [server] Update `n_SetPlayerCheckpoint(...)` --- server/scrcustom.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/server/scrcustom.cpp b/server/scrcustom.cpp index cdb1b54..03adc21 100644 --- a/server/scrcustom.cpp +++ b/server/scrcustom.cpp @@ -1036,15 +1036,9 @@ static cell AMX_NATIVE_CALL n_SetPlayerRaceCheckpoint(AMX *amx, cell *params) CPlayer *pPlayer = pNetGame->GetPlayerPool()->GetAt((PLAYERID)params[1]); if (pPlayer) { - pPlayer->SetRaceCheckpoint( -params[2], -params[3], -params[4], -params[5], -params[6], -params[7], -params[8], -params[9]); + pPlayer->SetRaceCheckpoint(params[2], amx_ctof(params[3]), + amx_ctof(params[4]), amx_ctof(params[5]), amx_ctof(params[6]), + amx_ctof(params[7]), amx_ctof(params[8]), amx_ctof(params[9])); return 1; }