Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1.  
  2.  
  3. local function Check() // i use timers because i can - less lag anyways
  4.  
  5. for i,pl in pairs(player.GetAll()) do
  6. for k,wep in pairs(pl.GetWeapons()) do
  7. if wep.CanBuy and wep.CanBuy == {ROLE_TRAITOR} and not wep.Scanned then
  8. wep.Scanned = true
  9. chat.AddText(Color(255,0,0), pl, " spawned a ", wep:GetClass())
  10. end
  11. end
  12. end
  13.  
  14. timer.Simple(Check, 1)
  15. end
  16. timer.Simple(Check, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement