mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-09-19 20:26:14 +08:00
[bot] Implement n_IsPlayerConnected(...)
This commit is contained in:
@ -248,8 +248,9 @@ static cell AMX_NATIVE_CALL n_GetPlayerName(AMX *amx, cell *params)
|
||||
// native IsPlayerConnected(playerid)
|
||||
static cell AMX_NATIVE_CALL n_IsPlayerConnected(AMX *amx, cell *params)
|
||||
{
|
||||
// TODO: n_IsPlayerConnected
|
||||
return 0;
|
||||
PLAYERID playerId = (PLAYERID)params[1];
|
||||
if (playerId >= MAX_PLAYERS || pNetGame->GetPlayerPool()->GetSlotState(playerId)) return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user