Tunner Posted January 31, 2011 Posted January 31, 2011 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
Castillo Posted January 31, 2011 Posted January 31, 2011 Could someone answer my question? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Tunner Posted January 31, 2011 Posted January 31, 2011 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
Castillo Posted January 31, 2011 Posted January 31, 2011 That doens't helps me at all, do you mean the "Zombies" script can't set their dimensions defined on .map file? Edit: i've added to set their dimensions, problem fixed. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Slothman Posted February 1, 2011 Author Posted February 1, 2011 yeha, it looks like the randomly spawning zombies dont set the dimension or interior, guess i forgot about that. the good news is that the manual spawn does set the dimension and interior. Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
Castillo Posted February 1, 2011 Posted February 1, 2011 I seen that, but no problem, i've added it myself for map spawnpoints San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Tunner Posted February 2, 2011 Posted February 2, 2011 And what about my problem? how do i do it correctly?
Castillo Posted February 2, 2011 Posted February 2, 2011 why do you use onPlayerConnect? this makes no sense for me o_o, put it onResourceStart (i think will be much better) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Slothman Posted February 3, 2011 Author Posted February 3, 2011 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) Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
Tunner Posted February 4, 2011 Posted February 4, 2011 thx very much. Well i did it so, cause it looked like part of the code so i thought i need some kind of function (like IF something happens, then setelementdata...) and so on so i put it to the place where all of this is . and thanks again
Tunner Posted February 4, 2011 Posted February 4, 2011 bad news....it doesnt wor EDIT: maybe it is related to the error i have. Whenever i try to restart the script debug tells me ERROR, zombies/zombie_server.lua 230:failed to call scoreboardAddColumn or something. Ive got the right scoreboard
Slothman Posted February 5, 2011 Author Posted February 5, 2011 ive discovered after testing that using negative numbers in radararea dimensions doesnt work properly. so your radararea should be local hillRadar = createRadarArea ( 92.38784790039, 1784.4426269531,300,300, 0, 55, 0, 175 ) Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
Tunner Posted February 5, 2011 Posted February 5, 2011 but that will set the area to a diferent place, wont it? EDIT: It doesn't work either and the area is elsewhere.
Slothman Posted February 5, 2011 Author Posted February 5, 2011 are your testing me satan? Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
Tunner Posted February 5, 2011 Posted February 5, 2011 cant tell dude, but it looks like the game thinks the whole world is zombie proof. and theres nothing bad in any other script/line cause when i delete the lines with the area and setelementdata everything works OK.
Slothman Posted February 5, 2011 Author Posted February 5, 2011 go back and check your work, you are doing something wrong. Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
Tunner Posted February 6, 2011 Posted February 6, 2011 It might be a good idea to send you my script so you can try if it works for you. http://www.sendspace.com/file/mz1px6 EDIT: Dont waste your time, ive redownloaded zombie script, put those 2 lines into it and it works lol . I dont know why the previous didnt (perhaps i delted some end or if in the script while i was meesing with the radar) anyway THX fo help.
Nando Posted February 14, 2011 Posted February 14, 2011 [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?
Slothman Posted February 15, 2011 Author Posted February 15, 2011 Zombietown_server.lua is not part of the zombie resource. to solve that problem you will have to ask whoever made that file. Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
Nikula Posted March 4, 2011 Posted March 4, 2011 Thank you very much! I love this resource, I can make my nazi zombie gamemode with this, again thanks SinCity Gaming 2.0 - New owner - New servers - More updates http://sincitygaming.net SinCity Gaming - The new generation of gaming!
Slothman Posted March 5, 2011 Author Posted March 5, 2011 booyah. 10000 downloads. Check out my recent work: ZDay - a zombie script Slothbot - an AI deathmatch bot my community profile (all my resources)
Castillo Posted March 5, 2011 Posted March 5, 2011 Woah, congratulations dude! San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
rikimaru263 Posted March 5, 2011 Posted March 5, 2011 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.
Castillo Posted March 5, 2011 Posted March 5, 2011 That's up to the server owner, he already did much giving this wonderfull resource i think . San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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