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

Premium Points to the winner of EVENT.

ohman

Member
Joined
Oct 24, 2008
Messages
294
Reaction score
8
Location
Sweden
Hi! I want the players who wins the event to get premium points to there account. I use 0.3.7 rev 5969 and Gesior AAC.

This is a part of the event: (its called rush event)

Code:
            if blue >= t.v then
                doBroadcastMessage(t.y, MESSAGE_STATUS_WARNING)
                setGlobalStorageValue(t.h, 1)
                for _, pid in ipairs(getPlayersOnline()) do
                    if(getPlayerStorageValue(pid, t.f_1) == 1) then
        doPlayerAddItem(cid, 2160, 30)
                    end
                end
            elseif red >= t.v then
                doBroadcastMessage(t.o, MESSAGE_STATUS_WARNING)
                setGlobalStorageValue(t.h, 1)
                for _, pid in ipairs(getPlayersOnline()) do
                    if(getPlayerStorageValue(pid, t.f_2) == 1) then
                    doPlayerAddItem(cid, 2160, 30)
                    end
                end
            end
          
</mod>


Thanks for the help! :)
 
I dont care about the white skull. Its only 45 sec. But! When I made the event to start automaticly there is an error in console:
[20:57:03.909] [Error - GlobalEvents::timer] Couldn't execute event: RushStart

The event work as it should. But why this error? Thanks
 
Back
Top