Advertisement
Guest User

Untitled

a guest
Jan 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.71 KB | None | 0 0
  1. // A table full of player jobs by Name. Not Variable.
  2. // Set to true to disallow these jobs from picking up tiems.
  3.  
  4. local Teams = {}
  5. Teams["Professor Flitwick"] = true
  6. Teams["Professor Lupin"] = true
  7. Teams["Professor Snape"] = true
  8. Teams["Substitue Teacher"] = true
  9.  
  10. // We will also need some Entities to blacklist from being picked up
  11. local Bents = {}
  12.  
  13. Bents["entity_hpwand_spell_accio"] = true
  14. Bents["entity_hpwand_spell_acriea"] = true
  15. Bents["entity_hpwand_spell_aguamenti"] = true
  16. Bents["entity_hpwand_spell_alarte_ascendare"] = true
  17. Bents["entity_hpwand_spell_alohomora"] = true
  18. Bents["entity_hpwand_spell_antihellia"] = true
  19. Bents["entity_hpwand_spell_apparition"] = true
  20. Bents["entity_hpwand_spell_arresto_momentum"] = true
  21. Bents["entity_hpwand_spell_arrow-shooting_spell"] = true
  22. Bents["entity_hpwand_spell_ascendio"] = true
  23. Bents["entity_hpwand_spell_balloonico"] = true
  24. Bents["entity_hpwand_spell_bombarda"] = true
  25. Bents["entity_hpwand_spell_bombarda_maxima"] = true
  26. Bents["entity_hpwand_spell_brevis_circuitous"] = true
  27. Bents["entity_hpwand_spell_carpe_retractum"] = true
  28. Bents["entity_hpwand_spell_collapsio"] = true
  29. Bents["entity_hpwand_spell_colloportus"] = true
  30. Bents["entity_hpwand_spell_colloshoo"] = true
  31. Bents["entity_hpwand_spell_color_lumos"] = true
  32. Bents["entity_hpwand_spell_colovaria"] = true
  33. Bents["entity_hpwand_spell_conjunctivitis_curse"] = true
  34. Bents["entity_hpwand_spell_deprimo"] = true
  35. Bents["entity_hpwand_spell_confringo"] = true
  36. Bents["entity_hpwand_spell_depulso"] = true
  37. Bents["entity_hpwand_spell_descendo"] = true
  38. Bents["entity_hpwand_spell_dimentio"] = true
  39. Bents["entity_hpwand_spell_disarm_curse_duo"] = true
  40. Bents["entity_hpwand_spell_dragoner"] = true
  41. Bents["entity_hpwand_spell_dremboom"] = true
  42. Bents["entity_hpwand_spell_dwisp"] = true
  43. Bents["entity_hpwand_spell_ear_shrivelling_curse"] = true
  44. Bents["entity_hpwand_spell_engorgio"] = true
  45. Bents["entity_hpwand_spell_engorgio_skullus"] = true
  46. Bents["entity_hpwand_spell_episkey"] = true
  47. Bents["entity_hpwand_spell_everte_statum"] = true
  48. Bents["entity_hpwand_spell_expelliarmus"] = true
  49. Bents["entity_hpwand_spell_expulso"] = true
  50. Bents["entity_hpwand_spell_extinguishing_spell"] = true
  51. Bents["entity_hpwand_spell_feather-light_charm"] = true
  52. Bents["entity_hpwand_spell_flarus"] = true
  53. Bents["entity_hpwand_spell_forbefire"] = true
  54. Bents["entity_hpwand_spell_fuelus_descendo"] = true
  55. Bents["entity_hpwand_spell_fumos"] = true
  56. Bents["entity_hpwand_spell_geminio"] = true
  57. Bents["entity_hpwand_spell_godivillio"] = true
  58. Bents["entity_hpwand_spell_gonfiare"] = true
  59. Bents["entity_hpwand_spell_green_sparks"] = true
  60. Bents["entity_hpwand_spell_grenadio"] = true
  61. Bents["entity_hpwand_spell_hail_of_bullets"] = true
  62. Bents["entity_hpwand_spell_heyedillio"] = true
  63. Bents["entity_hpwand_spell_hiding_charm"] = true
  64. Bents["entity_hpwand_spell_hillium"] = true
  65. Bents["entity_hpwand_spell_hocus"] = true
  66. Bents["entity_hpwand_spell_immobulus"] = true
  67. Bents["entity_hpwand_spell_impedimenta"] = true
  68. Bents["entity_hpwand_spell_inflatus"] = true
  69. Bents["entity_hpwand_spell_legimmio"] = true
  70. Bents["entity_hpwand_spell_levicorpus"] = true
  71. Bents["entity_hpwand_spell_locomotor_turret"] = true
  72. Bents["entity_hpwand_spell_lumos"] = true
  73. Bents["entity_hpwand_spell_lumos_maxima"] = true
  74. Bents["entity_hpwand_spell_lumos_solem"] = true
  75. Bents["entity_hpwand_spell_lux_bulbus"] = true
  76. Bents["entity_hpwand_spell_mimblewimble"] = true
  77. Bents["entity_hpwand_spell_mostro"] = true
  78. Bents["entity_hpwand_spell_muffliato"] = true
  79. Bents["entity_hpwand_spell_no_collide_charm"] = true
  80. Bents["entity_hpwand_spell_obscuratio"] = true
  81. Bents["entity_hpwand_spell_obscuro"] = true
  82. Bents["entity_hpwand_spell_perfectium"] = true
  83. Bents["entity_hpwand_spell_periculum"] = true
  84. Bents["entity_hpwand_spell_petrificus_totalus"] = true
  85. Bents["entity_hpwand_spell_protego"] = true
  86. Bents["entity_hpwand_spell_punchek"] = true
  87. Bents["entity_hpwand_spell_punchek_duo"] = true
  88. Bents["entity_hpwand_spell_purple_firecrackers"] = true
  89. Bents["entity_hpwand_spell_rechargio"] = true
  90. Bents["entity_hpwand_spell_red_sparks"] = true
  91. Bents["entity_hpwand_spell_rechargio"] = true
  92. Bents["entity_hpwand_spell_reducio"] = true
  93. Bents["entity_hpwand_spell_reducto"] = true
  94. Bents["entity_hpwand_spell_revealing_charm"] = true
  95. Bents["entity_hpwand_spell_rictusempra"] = true
  96. Bents["entity_hpwand_spell_salvio_hexia"] = true
  97. Bents["entity_hpwand_spell_secare"] = true
  98. Bents["entity_hpwand_spell_sectumsempra"] = true
  99. Bents["entity_hpwand_spell_shield_penetration"] = true
  100. Bents["entity_hpwand_spell_speedavec"] = true
  101. Bents["entity_hpwand_spell_stupefy"] = true
  102. Bents["entity_hpwand_spell_switching_spell"] = true
  103. Bents["entity_hpwand_spell_tarantallegra"] = true
  104. Bents["entity_hpwand_spell_timesum"] = true
  105. Bents["entity_hpwand_spell_trap_curse"] = true
  106. Bents["entity_hpwand_spell_trap_curse_duo"] = true
  107. Bents["entity_hpwand_spell_unbreakable_charm"] = true
  108. Bents["entity_hpwand_spell_vulnera_sanentur"] = true
  109. Bents["entity_hpwand_spell_waddiwasi"] = true
  110. Bents["entity_hpwand_spell_walkspeeden"] = true
  111. Bents["entity_hpwand_spell_welding_charm"] = true
  112. Bents["entity_hpwand_spell_winborium"] = true
  113. Bents["entity_hpwand_spell_winborium_duo"] = true
  114. Bents["entity_hpwand_spell_winborium_maxima"] = true
  115. Bents["entity_hpwand_spell_wingardium_leviosa"] = true
  116.  
  117.  
  118.  
  119.  
  120. // p is the Player, ent is the ENTITY
  121. hook.Add( "AllowPlayerPickup", "Game.NewHooks.AllowPPickupBooks", function( p, ent )
  122.  
  123. // Get the players Team Name into a simple > tn < Variable
  124. local tn = team.GetName( p:Team() )
  125.  
  126. // See if our job name matches a table, and if the ENTITY we are trying to pick up matches the Bents Table.
  127. if Teams[tn] && Bents[ent:GetClass()] then
  128. return false
  129. end
  130.  
  131. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement