[bot] Implement/match n_GetPlayerSpecialAction(...)

* Implement/match `CNetGame::GetPlayerSpecialAction(...)`
This commit is contained in:
RD42
2024-07-08 18:01:38 +08:00
parent 2703cfe7a5
commit 6ead220db3
4 changed files with 20 additions and 2 deletions
+5 -2
View File
@@ -206,8 +206,11 @@ static cell AMX_NATIVE_CALL n_GetPlayerArmour(AMX *amx, cell *params)
// native GetPlayerSpecialAction(playerid)
static cell AMX_NATIVE_CALL n_GetPlayerSpecialAction(AMX *amx, cell *params)
{
// TODO: n_GetPlayerSpecialAction
return 0;
if (pNetGame->GetPlayerPool()->GetSlotState((PLAYERID)params[1]))
{
return (cell)pNetGame->GetPlayerSpecialAction((PLAYERID)params[1]);
}
return SPECIAL_ACTION_NONE;
}
// native IsPlayerStreamedIn(playerid)