Jump to content

[REL] Zday, a Zombie Infestation Script


Recommended Posts

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

thats something someone would be able to script. keep in mind that the zombie free zones only mean that no zombies spawn there, it doesnt automatically clear out existing zombies and it doesnt prevent them from walking into the zone.

  • 4 weeks later...
Posted

hi slothman ...

sorry to tell you that but your scrips i think its not compitable with linux mta server

it cause crash after random time

but works well with windows mta server

i asked many ppl in irc they had same problem with your script in linux also

you can check what error appear in this topic :

viewtopic.php?f=106&t=32557

Posted

i almost forgot

i remmbered it now that your script cause ppl kicked by "ac #2" (anti cheat that built in with MTA) i test that on 1.0.4 latest version released on nightly site before 1.0.5 released

I havn't test that on 1.0.5 if it kicks or not but still crashes the server :evil:

Posted

most of the ac kicks are due to conflicting scripts, like another script preventing or altering damage to players. when the zombies attack.

Posted

If you use my safezones resource (or any other resource that calls cancelEvent() when a player takes damage, the anticheat will kick the player. The only way around this is to set up a no-zombie-spawn area (in slothman's resource) and map some barriers around said area (so they can't walk in). That, are I suppose I could mod my resource to destroy any peds that walk into a safezone with "zombie" in their element data (right?).

Posted

Can somebody help me fix this error?

ERROR: zombies\zombie_server.lua:225: call: failed to call 'scoreboard:scoreboardAddColumn'

Posted

Download dxscoreboard and replace: scoreboard with: dxscoreboard then it should work.

Like this:

call(getResourceFromName("dxscoreboard"), "scoreboardAddColumn", "Zombie kills") --ADDS TO SCOREBOARD 

Posted
people are looking into the linux crashing thing, something of that nature is beyond my abiility to help with.

I'm running my server on linux for about 2 weeks, and my server didn't crash once.

And how can I save zombie kills?

Posted

You can easily make an script to save them on account data.

functions for that:

getPlayerAccount 
getAccountData 
setAccountData 

events:

onZombieWasted 

  • 1 month later...
Posted

Sorry for bumping this, but is there any way you can change the health of the zombies?

I think the health is too high, i looked trough the code but i couldn't find anything.

I'll be really happy for an answer.

Posted

if you have notepad++ , then use search function for all files, and search for "setElementHealth" , it will show u the files down the screen, look them and set the zombies health which u want, i hope this going to work.

Posted
if you have notepad++ , then use search function for all files, and search for "setElementHealth" , it will show u the files down the screen, look them and set the zombies health which u want, i hope this going to work.

I found it and changed it to "1" but nothing changes ingame.

Posted

Hey i've got a problem. It happens everytime i restart the resource(Cause zombies dont work:8)

I searched for the answer in debugscript (3 ofc:D) and it said Error at line 217 "Attempt to compare boolean with number")

/\ that line and found this : "if newZombieLimit > ZombieLimit then", Hope you know what is wrong with this:D

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