mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[server] Implement/match n_DisablePlayerCheckpoint(...)
This commit is contained in:
parent
eb40d14ee8
commit
162f578667
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user