Guest User

glua_strip_empty_swep

a guest
Mar 25th, 2022
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. function SWEP:PrimaryAttack()
  2.     -- anything here will be executed on both, server and client realms
  3.     self:TakePrimaryAmmo(1)
  4.    
  5.     if CLIENT then return end -- stop anything past this line from executing on the client realm
  6.     if self:Clip1() <= 0 then
  7.         self.Owner:StripWeapon("weapon_ttt_dummy")
  8.     end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment