broadcast on lvl up

Joined
Jun 21, 2012
Messages
59
Best answers
0
Likes
1
#1
Hey, im looking for a scritp that will broadcast a msg like name up level 100 for tfs 1.3
 

Printer

if Printer then print("LUA") end
Premium User
Joined
Dec 27, 2009
Messages
5,726
Best answers
20
Likes
1,982
Location
Sweden?
#3
Lua:
local levels = {50, 100, 200}

function onAdvance(player, skill, oldLevel, newLevel)
    if skill ~= SKILL_LEVEL or newLevel <= oldLevel then
        return true
    end

    if isInArray(levels, newLevel) then
        broadcastMessage(("%s has reached level %d."):format(player:getName(), newLevel), MESSAGE_STATUS_WARNING)
    end

    return true
end
 
Top