mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[bot] Update netgame.cpp
This commit is contained in:
parent
979c785029
commit
31d7bff68e
@ -46,6 +46,22 @@ BYTE byteMySeatID;
|
||||
|
||||
bool bSpawned = false;
|
||||
|
||||
void CNetGame::SetPlayerAdded(PLAYERID playerId, BOOL a2)
|
||||
{
|
||||
if(playerId < MAX_PLAYERS)
|
||||
{
|
||||
bPlayerSlotState[playerId] = a2;
|
||||
}
|
||||
}
|
||||
|
||||
void CNetGame::SetVehicleAdded(VEHICLEID VehicleID, BOOL a2)
|
||||
{
|
||||
if(VehicleID < MAX_VEHICLES)
|
||||
{
|
||||
bVehicleSlotState[VehicleID] = a2;
|
||||
}
|
||||
}
|
||||
|
||||
BYTE CNetGame::GetPlayerState(PLAYERID playerId)
|
||||
{
|
||||
if(playerId >= MAX_PLAYERS) return PLAYER_STATE_NONE;
|
||||
@ -570,22 +586,6 @@ void CNetGame::ResetPlayerPool()
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
void CNetGame::SetPlayerAdded(PLAYERID playerId, BOOL a2)
|
||||
{
|
||||
if(playerId < MAX_PLAYERS)
|
||||
{
|
||||
bPlayerSlotState[playerId] = a2;
|
||||
}
|
||||
}
|
||||
|
||||
void CNetGame::SetVehicleAdded(VEHICLEID VehicleID, BOOL a2)
|
||||
{
|
||||
if(VehicleID < MAX_VEHICLES)
|
||||
{
|
||||
bVehicleSlotState[VehicleID] = a2;
|
||||
}
|
||||
}
|
||||
|
||||
void CNetGame::SendChat(char *szText)
|
||||
{
|
||||
BYTE byteTextLen = strlen(szText);
|
||||
|
Loading…
Reference in New Issue
Block a user