[server] Implement n_GetMaxPlayers(...)

This commit is contained in:
RD42 2024-04-26 22:18:00 +08:00
parent dc695e05d7
commit c7992ab797

View File

@ -67,12 +67,18 @@ static cell AMX_NATIVE_CALL n_GetTickCount(AMX *amx, cell *params)
return (cell)pNetGame->GetTime();
}
//----------------------------------------------------------------------------------
// native GetMaxPlayers()
static cell AMX_NATIVE_CALL n_GetMaxPlayers(AMX *amx, cell *params)
{
// TODO: GetMaxPlayers
return 0;
CHECK_PARAMS(0);
extern CConsole *pConsole;
return pConsole->GetIntVariable("maxplayers");
}
//----------------------------------------------------------------------------------
static cell AMX_NATIVE_CALL n_SetTimerEx(AMX *amx, cell *params)
{
// TODO: SetTimerEx