mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-10 11:43:04 +08:00
[server] Implement/match n_SetPlayerCheckpoint(...)
This commit is contained in:
@@ -997,7 +997,14 @@ static cell AMX_NATIVE_CALL n_GetPlayerName(AMX *amx, cell *params)
|
|||||||
|
|
||||||
static cell AMX_NATIVE_CALL n_SetPlayerCheckpoint(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL n_SetPlayerCheckpoint(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
// TODO: SetPlayerCheckpoint
|
CPlayer *pPlayer = pNetGame->GetPlayerPool()->GetAt((PLAYERID)params[1]);
|
||||||
|
if (pPlayer)
|
||||||
|
{
|
||||||
|
pPlayer->SetCheckpoint(amx_ctof(params[2]), amx_ctof(params[3]),
|
||||||
|
amx_ctof(params[4]), amx_ctof(params[5]));
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user