Add GetClientOriginalLanguage (#1810)

Creates a native which will return the language the client connected with.
This commit is contained in:
Corey D
2022-07-28 18:10:51 -07:00
committed by GitHub
parent e5ebd65176
commit 9321229321
5 changed files with 41 additions and 1 deletions
+2
View File
@@ -96,6 +96,7 @@ public:
bool IsInKickQueue();
IPlayerInfo *GetPlayerInfo();
unsigned int GetLanguageId();
unsigned int GetOriginalLanguageId();
void SetLanguageId(unsigned int id);
int GetUserId();
bool RunAdminCacheChecks();
@@ -145,6 +146,7 @@ private:
bool m_bAdminCheckSignalled = false;
int m_iIndex;
unsigned int m_LangId = SOURCEMOD_LANGUAGE_ENGLISH;
unsigned int m_OriginalLangId = SOURCEMOD_LANGUAGE_ENGLISH;
int m_UserId = -1;
bool m_bFakeClient = false;
bool m_bIsSourceTV = false;