mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[bot] Implement n_IsPlayerStreamedIn(...)
This commit is contained in:
parent
4cf1e83080
commit
36792cec63
@ -46,6 +46,15 @@ BYTE byteMySeatID;
|
||||
|
||||
bool bSpawned = false;
|
||||
|
||||
//----------------------------------------------------
|
||||
// MATCH
|
||||
BOOL CNetGame::IsPlayerAdded(PLAYERID playerId)
|
||||
{
|
||||
if(playerId >= MAX_PLAYERS) return FALSE;
|
||||
|
||||
return bPlayerSlotState[playerId] != FALSE;
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
// MATCH
|
||||
void CNetGame::SetMyZAngle(float fAngle)
|
||||
|
@ -96,6 +96,7 @@ public:
|
||||
void ShutdownForGameModeRestart();
|
||||
|
||||
void sub_415EC0(VEHICLEID VehicleID, BOOL a2);
|
||||
BOOL IsPlayerAdded(PLAYERID playerId);
|
||||
void SetMyZAngle(float fAngle);
|
||||
|
||||
void SetPlayerAdded(PLAYERID playerId, BOOL a2);
|
||||
|
@ -178,8 +178,9 @@ static cell AMX_NATIVE_CALL n_GetPlayerSpecialAction(AMX *amx, cell *params)
|
||||
// native IsPlayerStreamedIn(playerid)
|
||||
static cell AMX_NATIVE_CALL n_IsPlayerStreamedIn(AMX *amx, cell *params)
|
||||
{
|
||||
// TODO: n_IsPlayerStreamedIn
|
||||
return 0;
|
||||
if(!pNetGame->GetPlayerPool()->GetSlotState((PLAYERID)params[1])) return 0;
|
||||
|
||||
return pNetGame->IsPlayerAdded((PLAYERID)params[1]);
|
||||
}
|
||||
|
||||
// native IsVehicleStreamedIn(vehicleid)
|
||||
|
Loading…
Reference in New Issue
Block a user