From 9cd7b2a0ba2c9e2c3f36dd3cc7fd9447c752ab7e Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Sun, 28 Apr 2024 20:32:09 +0800 Subject: [PATCH] [server] Implement and match `n_ShowPlayerMarkers(...)` --- server/scrcustom.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/server/scrcustom.cpp b/server/scrcustom.cpp index 393a2cc..0d0b961 100644 --- a/server/scrcustom.cpp +++ b/server/scrcustom.cpp @@ -341,12 +341,18 @@ static cell AMX_NATIVE_CALL n_ShowNameTags(AMX *amx, cell *params) return 1; } +//---------------------------------------------------------------------------------- + +// native ShowPlayerMarkers(mode) static cell AMX_NATIVE_CALL n_ShowPlayerMarkers(AMX *amx, cell *params) { - // TODO: ShowPlayerMarkers - return 0; + CHECK_PARAMS(1); + pNetGame->m_iShowPlayerMarkers = params[1]; + return 1; } +//---------------------------------------------------------------------------------- + static cell AMX_NATIVE_CALL n_SetWorldTime(AMX *amx, cell *params) { // TODO: SetWorldTime