mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-04 00:23:22 +08:00
[server] Implement/match n_DisablePlayerRaceCheckpoint(...)
This commit is contained in:
parent
162f578667
commit
4599988161
@ -1053,7 +1053,13 @@ params[9]);
|
|||||||
|
|
||||||
static cell AMX_NATIVE_CALL n_DisablePlayerRaceCheckpoint(AMX *amx, cell *params)
|
static cell AMX_NATIVE_CALL n_DisablePlayerRaceCheckpoint(AMX *amx, cell *params)
|
||||||
{
|
{
|
||||||
// TODO: DisablePlayerRaceCheckpoint
|
CPlayer *pPlayer = pNetGame->GetPlayerPool()->GetAt((PLAYERID)params[1]);
|
||||||
|
if (pPlayer)
|
||||||
|
{
|
||||||
|
pPlayer->ToggleRaceCheckpoint(FALSE);
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user