Jump to content

[HELP]Looking for safe zone [zombies cant attack you]


Recommended Posts

Hi. im looking for a Safe zone.

I saw some in the Community,

But they are not good. (for my server)

Im looking for a safe zone script,

so when you are in the safe zone Zombies Can't attack you.

And Players cannot attack you.

Could someone fix this for me?

GreetZ: JS

I am a newbie in scripting ^^

PS: Sorry for my bad English

Link to comment

Simple script would be creating a colshape. When onClientPlayerDamage is triggered check if element is within colshape and if attacker is player/ped and just cancelEvent() if it's true.

That would cancel all the damage done to player.

Link to comment
Simple script would be creating a colshape. When onClientPlayerDamage is triggered check if element is within colshape and if attacker is player/ped and just cancelEvent() if it's true.

That would cancel all the damage done to player.

or i could change OnClientPlayerDamage to: OnClientZombieDamage

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...