local ffi = require "ffi"
ffi.cdef[[
typedef int(__fastcall* clantag_t)(const char*, const char*);
]]
local set_clantag = ffi.cast("clantag_t", utils.find_signature("engine.dll", "53 56 57 8B DA 8B F9 FF 15"))
local old_time = 0
local anim = {
" ",
"k",
"ko",
"kob",
"koby",
"kobya",
"kobyac",
"kobyaco",
"kobyacor",
"kobyacord",
"kobyacord",
"kobyacor",
"kobyaco",
"kobyac",
"kobya",
"koby",
"kob",
"ko",
"k",
" ",
}
function clan_tag()
if menu.get_bool("Enable Clantag") then
local time = globals.get_curtime()
local speed = math.floor((time * 2.33)+0.5)
local local_player = entitylist.get_local_player()
if local_player then
local site = local_player:get_prop_int("CBaseEntity","m_iTeamNum")
if site ~= 0 then
if old_time ~= speed and (globals.get_tickcount() % 2) == 1 then
set_clantag(anim[speed % #anim+1], anim[speed % #anim+1])
old_time = speed
end
end
end
end
end
client.add_callback("on_paint", function()
clan_tag()
end)