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