amited, s?abo optymalny kod. Trigerujesz na triger.
sasik12, robisz co? takiego
addEventHandler("onPlayerLogin",root,function()
if not isGuestAccount(getPlayerAccount(source)) then
if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(source)), aclGetGroup ( "grupaACL" ) ) then
setElementData(source, "acl", "grupaACL")
end
end
end)
addEventHandler("onResourceStart",root,function()
for k,v in pairs(getElementsByType("player")) do
if not isGuestAccount(getPlayerAccount(v)) then
if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(v)), aclGetGroup ( "grupaACL" ) ) then
setElementData(v, "acl", "grupaACL")
end
end
end
end)
i po stronie clienta sprawdzasz czy ma elementdate acl na grupaACL
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