[Support] anti barrel
-
anyone got an anti barrel script ?
Put this somewhere in your onplayerdamage() function, assuming you already have one :
if( (distance(eattacker.origin, self.origin ) ) < 200 ) { iDamage = 0; return iDamage; }You can change 200 to something higher/lower.
-
kuxqi It looks super dumb and ugly but here you go I guess....
if( (distance(eattacker.origin, self.origin ) ) < 200 ) { eattacker iPrintLnBold("bro ur 2 close bro wtf"); iDamage = 0; return iDamage; } -
Put this somewhere in your onplayerdamage() function, assuming you already have one :
if( (distance(eattacker.origin, self.origin ) ) < 200 ) { iDamage = 0; return iDamage; }You can change 200 to something higher/lower.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login