• Zombie-Mode Not Producing Zombies?
    1 replies, posted
That's the problem. My server would be a little more interesting provided that DarkRP 2.4.1 Zombiemode actually worked. I typed /enablezombie in chat and the hint staed that zombies were successfully enabled. I then went about the map with "/addzombie" bound to my keyboard setting spawn points... /showzombie didn't work. No spawn points appeared. /deletezombie zombie # didn't work in any case, so I'm guessing /addzombie was the case of the error. What steps do I have to take to ensure the successful implementation of Zombie Mode... what am I doing wrong (or not doing at all?) Edit: Here's the /addzombie code chunk in my copy of the Lua, is anything wrong? [lua] local function AddZombie(ply) if ply:HasPriv(ADMIN) then DB.RetrieveZombies(function() table.insert(zombieSpawns, tostring(ply:GetPos())) DB.StoreZombies() if ply.DarkRPVars.zombieToggle then LoadTable(ply) end Notify(ply, 1, 4, LANGUAGE.zombie_spawn_added) end) else Notify(ply, 1, 6, string.format(LANGUAGE.need_admin, "/addzombie")) end return "" end AddChatCommand("/addzombie", AddZombie) [/lua]
No responses yet? I know that /addzombie is the source of the issue. This code says that it's supposed to notify me that a spawn point has been added. It does not.
Sorry, you need to Log In to post a reply to this thread.