Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
611
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.58 KB | None | 0 0
  1. if CLIENT then return end
  2.  
  3. // Here are some Hooks you can use for Custom Code
  4. // If you need any more hooks just open a ticket or write me on steam
  5.  
  6. // This hook gets called before anything else and can be used to prevent a player from getting infected, no matter what
  7. // Its a simpler version of zbl.config.ProtectionCheck
  8. hook.Add("zbl_BlockInfection", "zbl_BlockInfection_Test", function(ply, vaccine_id)
  9.  
  10.     /*
  11.     // Return true to block the player getting infected
  12.     if ply:IsSuperAdmin() then
  13.         return true
  14.     end
  15.     */
  16.  
  17. end)
  18.  
  19. // Called when a player gets infected
  20. hook.Add("zbl_OnPlayerInfect", "zbl_OnPlayerInfect_Test", function(ply, vaccine_id)
  21.     /*
  22.     print("zbl_OnPlayerInfect")
  23.     print("Player: " .. tostring(ply))
  24.     print("VaccineID: " .. vaccine_id)
  25.     print("-----------------------------")
  26.     */
  27. end)
  28.  
  29. // Called when a player injects another player
  30. hook.Add("zbl_OnPlayerInject", "zbl_OnPlayerInject_Test", function(target, vaccine_id, inflictor)
  31.     /*
  32.     print("zbl_OnPlayerInject")
  33.     print("Target: " .. tostring(target))
  34.     print("Inflictor: " .. tostring(inflictor))
  35.     print("VaccineID: " .. vaccine_id)
  36.     print("-----------------------------")
  37.     */
  38. end)
  39.  
  40.  
  41. // Called when a player cures another player
  42. hook.Add("zbl_OnPlayerCurePlayer", "zbl_OnPlayerCurePlayer_Test", function(target, vaccine_id, inflictor)
  43.     /*
  44.     print("zbl_OnPlayerInject")
  45.     print("Target: " .. tostring(target))
  46.     print("Inflictor: " .. tostring(inflictor))
  47.     print("VaccineID: " .. vaccine_id)
  48.     print("-----------------------------")
  49.     */
  50. end)
  51.  
  52. // Called when a player gets a sample from a other player or entity
  53. hook.Add("zbl_OnPlayerGetSample", "zbl_OnPlayerGetSample_Test", function(target, inflictor, sample_name, sample_identifier, sample_points)
  54.     /*
  55.     print("zbl_OnPlayerGetSample")
  56.     print("Target: " .. tostring(target))
  57.     print("Inflictor: " .. tostring(inflictor))
  58.     print("Sample_name: " .. sample_name)
  59.     print("Sample_identifier: " .. sample_identifier)
  60.     print("Sample_points: " .. sample_points)
  61.     print("-----------------------------")
  62.     */
  63. end)
  64.  
  65. // Called when a player gets cured
  66. hook.Add("zbl_OnPlayerCured", "zbl_OnPlayerCured_Test", function(ply, vaccine_id)
  67.     /*
  68.     print("zbl_OnPlayerCured")
  69.     print("Player: " .. tostring(ply))
  70.     print("VaccineID: " .. vaccine_id)
  71.     print("-----------------------------")
  72.     */
  73. end)
  74.  
  75. // Called when a player gets scanned by a fence
  76. hook.Add("zbl_OnPlayerFenceScanned", "zbl_OnPlayerFenceScanned_Test", function(ply, fence_entity)
  77.  
  78. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement