Jump to content

[HELP] Zone Zombies


Sticmy

Recommended Posts

As far as I know, those zombies use "radar areas" to create safe zones so zombies die, that would mean there is an "isInsideRadarArea" function which kills the zombies using "killPed" and also cancels the spawn of the zombies. If you can find something like: 

if isInsideRadarArea (area,x,y) then
  killPed ()
  end

Use this:

if not isInsideRadarArea (area,x,y) then
  killPed()
  end

In that case, you should create a radar area using:

local radar = createRadarArea (x,y,width,height,r,g,b,a)
setElementData (radar,"zombieProof",true)

This radar area will let zombies spawn and will kill or cancel the spawn of the zombies who are not inside it.

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...