-
Автор темы
- #1
помогите получить индекс ножа
код:
код:
code_language.lua:
local group = ui.create("Main")
local enable = group:switch("Enable")
safe_knife = function()
local nums = {59, 42, 500, 503, 505, 506, 507, 508, 509, 512, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523}
local lp = entity.get_local_player()
if enable:get() then
if bit.band(lp.m_fFlags, bit.lshift(1,0)) == 0 then
if lp:get_player_weapon():get_weapon_index() == nums then
print("fdgdfgs")
refs.pitch:set("Down")
refs.body_yaw:set(true)
refs.yaw:set("Backward")
refs.yaw_modifier_offset:set(0)
refs.yaw_modifier:set("Disabledd")
refs.yaw_offset:override(0)
refs.left_limit:set(27)
refs.right_limit:set(27)
refs.options:set("")
ram.jit_yaw = 0
ram.yaw_add = 0
end
end
end
end
events.createmove:set(safe_knife)