mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-03 16:13:34 +08:00
[server] Implement/match n_SetPlayerCheckpoint(...)
This commit is contained in:
parent
a64870c79a
commit
eb40d14ee8
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user