Код:
local function GetVelocity()
local player = g_EntityList:GetClientEntity(g_EngineClient:GetLocalPlayer())
local me = player:GetPlayer()
if player == nil or me == nil then return end
local vec0 = me:GetProp("DT_BasePlayer", "m_vecVelocity[0]")
local vec1 = me:GetProp("DT_BasePlayer", "m_vecVelocity[1]")
local vec2 = me:GetProp("DT_BasePlayer", "m_vecVelocity[2]")
local velocity = Vector.new(vec0, vec1, vec2):Length();
return velocity
end
local strafer = false
Cheat.RegisterCallback("createmove", function()
G_config:FindVar("Miscellaneous", "Main", "Movement", "Auto Strafe"):SetBool(strafer)
if cheat.IsKeyDown(0x57) or cheat.IsKeyDown(0x41) or cheat.IsKeyDown(0x53) or cheat.IsKeyDown(0x44) then
strafer = true
elseif GetVelocity() < 2 then
strafer = false
end
end)
(в луа не шарю помогите плз)
Последнее редактирование модератором: