• 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!

Solved Zombile event

The global storage value is set to 1 when ite broadcasts "Big foot event starting in..."
You can do more tests with print, see where it doesn't say 1 when it shouldn't.
It's set to 2 when the tp is removed, so from that moment people can't join the event anymore with !join.
 
there something missing :S when open my server and player say !joinevent "The event already started, you can't join anymore" and after event launch and finish player can join event without launch again
EaMw7eei5.png
 
You can add this in start.lua under function onStartup()
Code:
setGlobalStorageValue(80001, 0)

If the player can join the event when it shouldn't look what it prints in your console, the storage value.

You can change this.
Code:
if getGlobalStorageValue(80001) ~= 1 then
     doPlayerSendCancel(cid, "There is no event launching.")
end
To this
Code:
if getGlobalStorageValue(80001) == 0 then
     doPlayerSendCancel(cid, "There is no event launching.")
end
 
Back
Top