fix error when you ded

This commit is contained in:
Jonny_Bro (Nikita) 2023-09-10 13:46:53 +05:00
parent 102f7c4a14
commit a3a054a3af

View file

@ -55,7 +55,7 @@ end
local standpunch = Angle(-5, 0, 0)
local function Quickturn(ply, mv, cmd)
local keypressed = mv:KeyPressed(IN_ATTACK2) and ply:GetActiveWeapon():GetClass() == "runnerhands"
local keypressed = mv:KeyPressed(IN_ATTACK2) and ply:Alive() and ply:GetActiveWeapon():GetClass() == "runnerhands"
if ply:GetWallrun() ~= 0 then
if mv:KeyDown(IN_BACK) and mv:KeyPressed(IN_JUMP) or ply:GetQuickturn() then