Advertisement
Guest User

IGS.Notify override by @amd_nick

a guest
Apr 22nd, 2021
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.43 KB | None | 0 0
  1.  
  2. hook.Add("IGS.Initialized", "igs_notify_override", function()
  3.     IGS.Notify_orig = IGS.Notify_orig or IGS.Notify
  4.     assert(IGS.Notify_orig, "IGS.Notify почему-то отсутствует на сервере")
  5.  
  6.     function IGS.Notify(pl, ...)
  7.         local args = {...}
  8.         if isstring(args[1]) and args[1]:StartWith("Вы можете потратить") then
  9.             return
  10.         end
  11.  
  12.         return IGS.Notify_orig(pl, unpack(args))
  13.     end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement