AteX, poprawi?em nawias. Nadal nie dzia?a, ale binduje
addCommandHandler("Premium:",
function(plr, cmd, ...)
for _,v in ipairs(getElementsByType("player")) do
local accName = getAccountName(getPlayerAccount(v))
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
local msg = table.concat({...}," ")
outputChatBox("[CZAT PREMIUM] "..getPlayerName(plr)..": "..msg, v)
end
end
end
)
addEventHandler("onPlayerJoin", root,
function()
bindKey(source, "o", "down", "chatbox", "Premium:")
end)
Podpis
Użytkownik - 10-05-2016
Support Team - 17.06.2017 Moderator - 25.11.2017 Mod-Team - 02.07.2018
Rookspack, Nie wiem co ty robisz ,ale ten kod mi dzia?a
addCommandHandler("Premium:",
function(plr, cmd, ...)
local msg = table.concat({...}," ")
if not msg then return end
for _,v in ipairs(getElementsByType("player")) do
local accName = getAccountName(getPlayerAccount(v))
if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then
outputChatBox("[CZAT PREMIUM] "..getPlayerName(plr)..": "..msg, v)
end
end
end
)
addEventHandler("onPlayerJoin", root,
function()
bindKey(source, "o", "down", "chatbox", "Premium:")
end)
Nie możesz pisać nowych tematów Nie możesz odpowiadać w tematach Nie możesz zmieniać swoich postów Nie możesz usuwać swoich postów Nie możesz głosować w ankietach