Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. function cancelDamage( attacker, weapon, bodypart )
  2.     local team = getPlayerTeam(source)
  3.         if getElementType(source) == "player" then
  4.             if team == "Event Green" or team == "Event Blue" then
  5.             cancelEvent()
  6.         end
  7.     end
  8. end
  9. addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), cancelDamage)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement