Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (CLIENT) then return; end;
- local HookName = "WeaponSwitch.Delay"
- local DelayTime = 3;
- hook.Add("PlayerSwitchWeapon", HookName, function(ply, oldWeapon, newWeapon)
- ply.WeaponSwitchDelay = ply.WeaponSwitchDelay or 0;
- if (ply.WeaponSwitchDelay > CurTime()) then
- return true;
- end
- ply.WeaponSwitchDelay = CurTime() + DelayTime;
- end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement