mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-11 17:58:16 +08:00
[server] Implement n_GetMaxPlayers(...)
This commit is contained in:
1 parent
dc695e05d7
commit
c7992ab797
1 file changed
+8
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user