Advertisement
Guest User

yep

a guest
Jul 27th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. function shit()
  2. -- Check if a weapon is active
  3. local wpn = db.actor:active_item()
  4. wpn = packet_utils.item_is_fa(wpn) and wpn
  5.  
  6. if (wpn) then
  7. local se_wpn = alife():object(wpn:id())
  8. local data = stpk_utils.get_weapon_data(se_wpn)
  9. -- Check if weapon firing
  10. if (data.weapon_state == 5) then
  11. do_some_shit
  12. end
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement