mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 04:06:06 +08:00
[bot] Implement/match n_GetPlayerSpecialAction(...)
* Implement/match `CNetGame::GetPlayerSpecialAction(...)`
This commit is contained in:
@ -220,6 +220,18 @@ BOOL CNetGame::GetPlayerKeys(PLAYERID playerId, WORD *udAnalog, WORD *lrAnalog,
|
||||
}
|
||||
}
|
||||
|
||||
BYTE CNetGame::GetPlayerSpecialAction(PLAYERID playerId)
|
||||
{
|
||||
if(playerId >= MAX_PLAYERS) return SPECIAL_ACTION_NONE;
|
||||
if(bPlayerSlotState[playerId] == FALSE) return SPECIAL_ACTION_NONE;
|
||||
|
||||
if(bytePlayerState[playerId] == PLAYER_STATE_ONFOOT)
|
||||
{
|
||||
return unnamed_3[playerId].byteSpecialAction;
|
||||
}
|
||||
return SPECIAL_ACTION_NONE;
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
// MATCH
|
||||
BOOL CNetGame::IsPlayerAdded(PLAYERID playerId)
|
||||
|
@ -111,6 +111,7 @@ public:
|
||||
BYTE GetPlayerHealth(PLAYERID playerId);
|
||||
BYTE GetPlayerArmour(PLAYERID playerId);
|
||||
BOOL GetPlayerKeys(PLAYERID playerId, WORD *udAnalog, WORD *lrAnalog, WORD *wKeys);
|
||||
BYTE GetPlayerSpecialAction(PLAYERID playerId);
|
||||
BOOL IsPlayerAdded(PLAYERID playerId);
|
||||
BOOL IsVehicleAdded(VEHICLEID VehicleID);
|
||||
PVECTOR GetMyPos(PVECTOR Vector);
|
||||
|
Reference in New Issue
Block a user