• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Windows Zombie Event Auto, Print Test Help.

kozmo

Member
Joined
Jan 30, 2009
Messages
433
Solutions
2
Reaction score
22
Code:
function onThink(words, param, channel)
print("test1")
if(getStorage(ZE_STATUS) ~= 2) then
print("test2")
local players_on_arena_count = #getZombiesEventPlayers()
if(param == 'force') then
print("test3")
if(players_on_arena_count > 0) then
print("test4")
setZombiesEventPlayersLimit(players_on_arena_count )
addZombiesEventBlockEnterPosition()
doSetStorage(ZE_STATUS, 2)
doBroadcastMessage("Zombie Arena Event started.")
doPlayerSendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Zombies event started.")
else
print("test5")
doPlayerSendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Cannot start Zombies event. There is no players on arena.")
end
else
print("test6")
if(param ~= '' and tonumber(param) > 0) then
print("test7")
setZombiesEventPlayersLimit(tonumber(param))
end
removeZombiesEventBlockEnterPosition()
doSetStorage(ZE_STATUS, 1)
doPlayerSendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Event started.")
doPlayerBroadcastMessage("Zombie Arena Event teleport is opened. We are waiting for " .. getZombiesEventPlayersLimit() - players_on_arena_count .. " players to start.")
end
else
print("test8")
doPlayerSendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Zombies event is already running.")
end
return true
end

The prints that did not show up were. 3,4,5,8
Clearly there are a few problems here but i will need help fixing them please.
 
Back
Top