From 658432bae08e7e35ef78b6f1fd0c9d5b4e2a2e0f Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sun, 28 Apr 2024 20:31:49 +0800 Subject: [PATCH] [server] Implement and match `n_ShowNameTags(...)` --- server/scrcustom.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/scrcustom.cpp b/server/scrcustom.cpp index e2e6ec8..393a2cc 100644 --- a/server/scrcustom.cpp +++ b/server/scrcustom.cpp @@ -331,10 +331,14 @@ static cell AMX_NATIVE_CALL n_SetPlayerWorldBounds(AMX *amx, cell *params) return 0; } +//---------------------------------------------------------------------------------- + +// native ShowNameTags(show) static cell AMX_NATIVE_CALL n_ShowNameTags(AMX *amx, cell *params) { - // TODO: ShowNameTags - return 0; + CHECK_PARAMS(1); + pNetGame->m_bShowNameTags = (bool)params[1]; + return 1; } static cell AMX_NATIVE_CALL n_ShowPlayerMarkers(AMX *amx, cell *params)