events.createmove:set(function(e)
local me = entity.get_local_player()
if not me then return end
if me:get_player_weapon() then
local last_shot_time = me:get_player_weapon()["m_fLastShotTime"]
local time_difference = globals.curtime - last_shot_time
if time_difference <= 5.000 then --или больше, сам посмотри и выстави время
--выключение рейджбота
end
end
end)
if player_info_prev ~= nil and player_info_prev[idx] ~= nil then
if ui.get(menu.dormant_timeout) > 0 then
if not (timeout < globals.realtime() - (ui.get(menu.dormant_timeout))) then
shooting()
end
elseif ui.get(menu.dormant_timeout) == 0 then
shooting()
end
else
timeout = globals.realtime()
end