コード例 #1
0
void CCheckpoint::DeleteForWorld()
{
	for(EntityId i = 0; i < MAX_PLAYERS; i++)
	{
		if(g_pPlayerManager->DoesExist(i))
			DeleteForPlayer(i);
	}
}
コード例 #2
0
ファイル: CPlayer.cpp プロジェクト: Azon099/networked-iv
void CPlayer::DeleteForWorld()
{
	// Loop through all players
	for(EntityId i = 0; i < PLAYER_MAX; i++)
	{
		// Is the current player not this player and active?
		if(i != m_playerId && g_pServer->GetPlayerManager()->IsActive(i))
		{
			// Delete this player for the current player
			DeleteForPlayer(i);
		}
	}
}
コード例 #3
0
CBlipManager::~CBlipManager()
{
	for(EntityId x = 0; x < MAX_BLIPS; x++)
	{
		if(m_bActive[x])
			Delete(x);

		m_bActive[x] = false;
	}

	for(EntityId y = 0; y < MAX_PLAYERS; y++)
	{
		if(m_bPlayerActive[y])
			DeleteForPlayer(y);

		m_bPlayerActive[y] = false;
	}
}