Advertisement
Guest User

New MyAffliction script

a guest
Nov 9th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.54 KB | None | 0 0
  1. function MyAfflictions(eventname, data)
  2.  
  3.     if eventname == "svo got aff" then
  4.         if data == "prone" then
  5.             if not IgnoreProne then
  6.                 send("recover")
  7.             end
  8.         end
  9.     end
  10.    
  11.     if eventname == "svo lost aff" then
  12.         if data == "crippledleftleg" or data == "crippledrightleg" then
  13.             if svo.affl.prone then
  14.                 send("recover")
  15.             end
  16.         end
  17.     end
  18. end
  19.  
  20.  
  21. registerAnonymousEventHandler("svo got aff", "MyAfflictions")
  22. registerAnonymousEventHandler("svo lost aff", "MyAfflictions")
  23. registerAnonymousEventHandler("svo updated aff", "MyAfflictions")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement