Jump to content

Anti zombie area


Mike269

Recommended Posts

Hello guys I would like to know how can I make a zone that zombies can't enter, like they die when they try to enter, colored zone or somethin..

+

I really need level system connected with zombies and cool zombies

If anyone know some zombie scripts please share them with me, because I'm making Zombie RPG server, thanks!

Link to comment
Hello guys I would like to know how can I make a zone that zombies can't enter, like they die when they try to enter, colored zone or somethin..

+

I really need level system connected with zombies and cool zombies

If anyone know some zombie scripts please share them with me, because I'm making Zombie RPG server, thanks!

You can use this:

setElementData 
createRadarArea 
createColRectangle 
onColShapeHit/onColShapeLeave -- Events 

I found a level system that might be good for you: https://community.multitheftauto.com/in ... ls&id=8663

Link to comment
Not really, it won't take years,

It depends on how active you are and if you believe in yourself and say to yourself that you can do it.

Than it'll take you less than a year ! : )

In my opinion learning scripting and Lua is pretty easy but depends how you learn and do you realy want it. I saw a lot peoples asking for help in scripting forum but the only thing they want is that someone do all the work for them and after a year they didn't learned anything that's bad.

Link to comment

taken from my save zone script ( near the 0 coordinate )

only works if the script spawns "peds" ( wich is most likely )

  
  
safearea = createColRectangle( 1.9072265625, 0.46875, 50, 100 ) 
safezone = createRadarArea( 2.43359375, 1.63671875, 50, 100, 0, 255, 0, 255, root ) 
  
  
function savezoneenter( thePlayer, matchingDimension ) 
    if(getElementType(thePlayer) == "ped") then 
    killPed( thePlayer ) 
end 
end 
  
addEventHandler ( "onColShapeHit", safearea, savezoneenter ) 
  
  

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