[server] Implement and match n_SetGameModeText(...)

This commit is contained in:
RD42
2024-04-28 22:34:20 +08:00
parent 6996d316e6
commit 7767dc226c

View File

@ -287,9 +287,15 @@ static cell AMX_NATIVE_CALL n_GameModeExit(AMX *amx, cell *params)
return 0; return 0;
} }
// native SetGameModeText(const string[])
static cell AMX_NATIVE_CALL n_SetGameModeText(AMX *amx, cell *params) static cell AMX_NATIVE_CALL n_SetGameModeText(AMX *amx, cell *params)
{ {
// TODO: SetGameModeText CHECK_PARAMS(1);
char* szGameModeText;
amx_StrParam(amx, params[1], szGameModeText);
pConsole->SetStringVariable("gamemodetext", szGameModeText);
return 0; return 0;
} }