mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[bot] Implement ServerJoin(...)
* Implement `CPlayerPool::New(...)`
This commit is contained in:
@ -29,6 +29,16 @@ CPlayerPool::~CPlayerPool()
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
BOOL CPlayerPool::New(PLAYERID playerId, PCHAR szPlayerName)
|
||||
{
|
||||
m_bPlayerSlotState[playerId] = TRUE;
|
||||
strcpy(m_szPlayerNames[playerId], szPlayerName);
|
||||
pNetGame->SetPlayerAdded(playerId, FALSE);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
||||
BOOL CPlayerPool::Delete(PLAYERID playerId, BYTE byteReason)
|
||||
{
|
||||
m_bPlayerSlotState[playerId] = FALSE;
|
||||
|
Reference in New Issue
Block a user