Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. function GM:PlayerCanPickupItem(ply, item)
  2.     local pickup = item:GetClass()
  3.     for k,v in pairs(ply:GetWeapons()) do
  4.         if v:GetPrintName() == pickup then
  5.             return false
  6.         end
  7.     end
  8.     return true
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement