Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. m4_dmg = getWeaponProperty(31,'pro','damage')
  2.  
  3. addEventHandler('onClientPlayerDamage',localPlayer,function(asesino,arma)  
  4.     if asesino and isElement(asesino) and asesino ~= source then
  5.         if arma == 31 then                 
  6.             local dmg = getElementData(asesino,'m4_dmg') or 0
  7.             local vida = getElementHealth(source)
  8.             setElementHealth(source,vida-dmg)
  9.             cancelEvent()
  10.         end
  11.     end
  12. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement