Was ist outputChatbox ... xD ne SPaß beiseite...
also ich habe meine Befehle bis jetzt immer mit !comamnd gemacht aber wollte es jetzt mal umändern in / commands.
Warum bekomme ich jetzt keine Farbigen outputs.
Wass muss ich denn noch ändern ?
Damits Farbig wird.
Spoiler anzeigen
Lua
addCommandHandler("mapticket",
function ()
local map = "none"
players = getElementsByType ( "player" )
for k,v in ipairs(players) do
local accountname = ""
if (isGuestAccount(getPlayerAccount(v)) == false) then
accountname = getAccountName (getPlayerAccount(v))
if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "nextmap" ) ) then
if (map == "none") then
map = "#FF0000"..getPlayerName(v)
else
map = map .. "#FF0000, " .. getPlayerName(v)
end
end
end
end
setTimer(outputChatBox, 50, 1, "#00ccffMaptickets : #FF9900" .. map, source, 255, 0, 0,true)
end )
Alles anzeigen