Jump to content

[REL] Zday, a Zombie Infestation Script


Recommended Posts

  
local hillArea = createColRectangle ( 392.38784790039, 1784,4426269531, 0, 15, 15 ) 
local hillRadar = createRadarArea ( 392.38784790039, 1784.4426269531,-300,300, 0, 55, 0, 175 ) 
  
ZombieLimit = get("zombies.MaxZombies")-- HOW MANY ZOMBIES SHOULD EXIST AT MAXIMUM? 
ZombieStreaming = get("zombies.StreamMethod") -- 1 to constantly stream zombies, 0 to only allow zombies to spawn via.........and so on  

and now the part with SetElementData

  
function player_Connect() 
    setElementData (hillRadar, "zombieProof", true) 
    setElementData ( source, "dangercount", 0 ) 
end 
addEventHandler ( "onPlayerConnect", getRootElement(), player_Connect ) 

please note that it doesn t matter if i use hillArea or hillRadar..it has the same effect :/

Link to comment

well, try it and you will see. I think its 10000x faster than waiting for a reply. just set the spawns dimension in map editor or something. But peds i think, will have to be modified in the script to appear in diff dimension (map editor cant do that). Anyway. Dimensions have never worked for me :D

Link to comment

im not sure why your putting it inside the actal zombie resource, or why your setting the elementdata seperate from the creating of the radarareawhile using the local arg. but heres what you would need to do:

local hillRadar = createRadarArea ( 392.38784790039, 1784.4426269531,-300,300, 0, 55, 0, 175 ) 
setElementData (hillRadar, "zombieProof", true) 

Link to comment
  • 2 weeks later...

[2011-02-14 02:52:09] start: Requested by Console 
[2011-02-14 02:52:09] Starting zombie 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] WARNING: zombie\Zombietown_server.lua:55: Bad 'ped' pointer @ 'isPedOnGround'(1) 
[2011-02-14 02:52:09] start: Resource 'zombie' started 
  

How can I fix this problem?

Link to comment
  • 3 weeks later...

I was wondering slothman if you could make an admin toggle for zombie free zones so you could zone off a city and give everyone like five minutes to get guns and life then toggle zombie free zone on admin menu so the zombies would come into the city. mabe put a fence around a city and make gates open up win you toggle the zombies? Im not exactly a scripter or id try to do 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...