mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[server] Implement n_GetMaxPlayers(...)
This commit is contained in:
parent
dc695e05d7
commit
c7992ab797
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user