mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 12:16:15 +08:00
[bot] Implement CNetGame::SetPlayerState(...)
This commit is contained in:
@ -62,6 +62,14 @@ void CNetGame::SetVehicleAdded(VEHICLEID VehicleID, BOOL a2)
|
||||
}
|
||||
}
|
||||
|
||||
void CNetGame::SetPlayerState(PLAYERID playerId, BYTE byteState)
|
||||
{
|
||||
if(playerId < MAX_PLAYERS)
|
||||
{
|
||||
bytePlayerState[playerId] = byteState;
|
||||
}
|
||||
}
|
||||
|
||||
BYTE CNetGame::GetPlayerState(PLAYERID playerId)
|
||||
{
|
||||
if(playerId >= MAX_PLAYERS) return PLAYER_STATE_NONE;
|
||||
|
@ -106,7 +106,7 @@ public:
|
||||
|
||||
void SetPlayerAdded(PLAYERID playerId, BOOL a2);
|
||||
void SetVehicleAdded(VEHICLEID VehicleID, BOOL a2);
|
||||
|
||||
void SetPlayerState(PLAYERID playerId, BYTE byteState);
|
||||
BYTE GetPlayerState(PLAYERID playerId);
|
||||
void StopRecordingPlayback();
|
||||
void PauseRecordingPlayback();
|
||||
|
Reference in New Issue
Block a user