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

This commit is contained in:
RD42
2024-04-27 18:27:03 +08:00
parent 7f97bd273f
commit 44ac7453d4
2 changed files with 8 additions and 4 deletions
+5 -2
View File
@@ -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();
+3 -2
View File
@@ -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)