• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Zombie Event - Without Bugs! Work on all TFS

[14:25:19.817] > Loading Lottery System.xml... done.
[14:25:19.825] > Loading Zombie Event.xml...[Warning - Event::loadScript] Event
onTime not found (domodlib("zombieEvent_conf")
[14:25:19.825] function onTimer()
[14:25:19.826] addEvent(function()
[14:25:19.827] if getStorage(zombieStorageStatus) == 2 then return true end
[14:25:19.828] if getStorage(zombieStorageStatus) == 1 and #getZombiesEventPlaye
rs() >= zombieMinPlayers then
[14:25:19.828] doSetStorage(zombieStorageStatus, 2)
[14:25:19.829] for i = 1, math.random(2) do
[14:25:19.829] spawnNewZombie(getThingPos(cid))
[14:25:19.830] end
[14:25:19.831] for _, v in ipairs(getZombiesEventPlayers()) do
[14:25:19.831] addPlayerToZombiesArea(v, false)
[14:25:19.832] end
[14:25:19.832] return doBroadcastMessage('Zombie Event is started. We have '..#g
etZombiesEventPlayers()..' players on area')
[14:25:19.833] end
[14:25:19.833] for _, v in ipairs(getZombiesEventPlayers()) do
[14:25:19.834] kickPlayerFromZombiesArea(v)
[14:25:19.834] end
[14:25:19.835] return doBroadcastMessage('Zombie Event is stopped. We could not
find enough players.')
[14:25:19.835] end,
[14:25:19.836] timeOnJoinToEvent * 1000 * 60)

[14:25:19.837] return setZombieEventStart()
[14:25:19.837] end
[14:25:19.838] )


any suggestions?
_________
WORK ON TfS 0.4
only change time to interval
globalevent name="zombieTime" interval="43200"

I upload this to you ,try it
http://speedy*****malware.localhost/ZqccX/Zombie-event.rar
 
Back
Top