diff --git a/server/netgame.h b/server/netgame.h index 6a0e139..054407b 100644 --- a/server/netgame.h +++ b/server/netgame.h @@ -38,6 +38,11 @@ private: int m_iServerTickRate; BOOL m_bLanMode; + + void UpdateNetwork(); + +public: + int m_iShowPlayerMarkers; bool m_bShowNameTags; BYTE m_byteWorldTime; @@ -65,8 +70,6 @@ private: double m_dElapsedTime; #endif -public: - CScriptTimers* GetTimers() { return m_pScriptTimers; }; CNetGame(); diff --git a/server/scrcustom.cpp b/server/scrcustom.cpp index b0082b8..9332214 100644 --- a/server/scrcustom.cpp +++ b/server/scrcustom.cpp @@ -405,10 +405,11 @@ static cell AMX_NATIVE_CALL n_SetNameTagDrawDistance(AMX *amx, cell *params) return 0; } +// native DisableNameTagLOS() static cell AMX_NATIVE_CALL n_DisableNameTagLOS(AMX *amx, cell *params) { - // TODO: DisableNameTagLOS - return 0; + pNetGame->m_bNameTagLOS = false; + return 1; } static cell AMX_NATIVE_CALL n_ConnectNPC(AMX *amx, cell *params)