mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-12 02:08:14 +08:00
[bot] Implement ServerJoin(...)
* Implement `CPlayerPool::New(...)`
This commit is contained in:
1 parent
2aa2b1e628
commit
a88d88bb26
5 files changed
+44
-8
No files matched your search
@@ -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