Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- you can also place here your clantag
- local c_tbl =
- {
- [0] = "",
- [1] = "B",
- [2] = "B0",
- [3] = "B0B",
- [4] = "B0BE",
- [5] = "B0BER",
- [6] = "B0BERH",
- [7] = "B0BERH00",
- [8] = "B0BERH00K",
- }
- local ffi = require("ffi")
- ffi.cdef[[
- typedef int(__fastcall* clantag_t)(const char*, const char*);
- ]]
- local fn_change_clantag
- local set_clantag
- menu.set_bool("Misc.clantag_spammer", false)
- local function clantag()
- if engine.is_in_game() then
- if (fn_change_clantag == nil) then
- fn_change_clantag = utils.find_signature("engine.dll", "53 56 57 8B DA 8B F9 FF 15")
- end
- if ((set_clantag == nil) and (fn_change_clantag ~= nil)) then
- set_clantag = ffi.cast("clantag_t", fn_change_clantag)
- end
- local lc_player = entitylist.get_local_player()
- local tickbase = lc_player:get_prop_int("CBasePlayer", "m_nTickBase")
- local server_time = tickbase * globals.get_intervalpertick() * 2.4
- local choke = cmd.get_choke()
- local gcase = math.fmod(server_time,16)
- local wcase = gcase
- -- reverse our clantag
- if (wcase > 8) then
- wcase = 8 - (gcase - 8)
- end
- -- we need int
- wcase = math.floor(wcase + 0.5)
- local ctag = c_tbl[wcase]
- if (choke == 0) then
- set_clantag(ctag, ctag)
- end
- end
- end
- client.add_callback("on_createmove", clantag)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement