Lua [Source | NL] GetClanTag function

  • Miver
  • Автор темы
  • ♂BILLY♂
    191
    18
    Jan 9, 2022
Спойлер: ss


Код:
function C_BasePlayer:GetClanTag()
local player_resource = EntityList.GetPlayerResource()

if not (player_resource and self) then
return
end

local player_index = self:EntIndex()

local m_szClan = player_resource:GetProp("DT_CSPlayerResource", "m_szClan")

return m_szClan[player_index + 1]
end


-- @note: example
local local_player = EntityList.GetLocalPlayer()
local local_player_tag = local_player:GetClanTag()

print(local_player_tag)
 

Members, viewing this thread

No members online now.
Top