Sticmy Posted December 9, 2017 Share Posted December 9, 2017 Hi i would like to know how to put the zombies appear in a zone that i put and when leaving that area they die or they can not leave only they are in that zone i use the script of slothman script: https://community.multitheftauto.com/index.php?p=resources&s=details&id=347 someone helps me please? Link to comment
Sticmy Posted December 11, 2017 Author Share Posted December 11, 2017 On 9/12/2017 at 16:57, Steven'Bc said: Hi i would like to know how to put the zombies appear in a zone that i put and when leaving that area they die or they can not leave only they are in that zone i use the script of slothman script: https://community.multitheftauto.com/index.php?p=resources&s=details&id=347 someone helps me please? Help??? Link to comment
DRW Posted December 11, 2017 Share Posted December 11, 2017 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now