Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: isobjectinaclgroup
1. isObjectInACLGroup
Witam, nie dziala mi ten kod

function zeznanie()

if 
isObjectInACLGroup ("user."..getAccountName getPlayerAccount element ) ), aclGetGroup "SAPD" ) ) then 
outputChatBox 
zeznanie1source )
else 
outputChatBox ("Nie jeste? policjantem!"source)
end

end
addCommandHandler
("zeznajtir",zeznanie)

Dokladniej:
if isObjectInACLGroup ("user."..getAccountName getPlayerAccount element ) ), aclGetGroup "SAPD" ) ) then 


Pisze mi, ze mam zla wartosc.
2. Nie dziala isObjectInACLGroup
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Policja")) then 
addCommandHandler
("onColShapeHit"autoOtworzBrame )
else 
end


jest to skrypt na bramy ale daje kawa?ek, oco chodzi? pisze:
3. isObjectInACLGroup
Witam. Wie kto? czemu na mta sa wiki jest z?y kod na isObjectInACLGroup albo ja ?le przekopiowa?em go ?. Generalnie tak :
Kod:
function modifyChatMessage(messagemsgtype)
      
local localPlayerName getPlayerName(source)
      if 
isObjectInACLGroup "user." .. localPlayerNameaclGetGroup "RPC" ) ) then
        setPlayerNametagColor
(source25500)
        
local outputText "[Wlasiciel] #FFFFFF"..getPlayerName(source)..": #FF0000"..message
        outputChatBox
(outputTextroot25500true)
    else
        
local nickRnickGnickB getPlayerNametagColor(source)
        
local outputText getPlayerName(source)..": #FFFFFF"..message
        outputChatBox
(outputTextrootnickRnickGnickBtrue)
    
end
end


DB3: Nie ma ,ale po napisaniu nie mam nametagu oraz tekst napisany przez mnie doubluje si?.
4. isObjectInACLGroup
Witam, mam pewien problem, chce zrobic komende dla RCON'?w

if isObjectInACLGroup ("user."..accNameaclGetGroup "RCON" ) ) then

I mam problem bo nie chce mi dzia?ac :
 
    local accName 
getAccountName getPlayerAccount thePlayer ) ) -- get his account name
     
if isObjectInACLGroup ("user."..accNameaclGetGroup "RCON" ) ) then
O co mo?e chodzic, jest error z getPlayerAcconunt.
5. isObjectInACLGroup
Witam!

Pr?buje zrobi? skrypt na dawanie praw. Lecz nie dzia?a mi jeden if

Kod:
function giveHA(sourcecommandNameaccountName)
    
local konto getAccountName(getPlayerAccount(source))
    if 
isObjectInACLGroup("user." .. kontoaclGetGroup("HeadAdmin"))then
        
if accountName then 
            aclGroupAddObject 
(aclGetGroup("HeadAdmin"), "user."..accountName)
            
outputChatBox("#ff4500Konto #808080" .. accountName .. "#ff4500 dosta?o rang? HeadAdmin"source000true
            
outputChatBox("#ff4500Dosta?e? rang? HeadAdmin"accountName000true)
        else
            
outputChatBox("#ff4500Nie poda?e? konta!"source000true)
            
outputChatBox("#ff4500Poprawna forma: #808080/dajha [konto]"source000true)
        
end
    
else
        
outputChatBox("#ff4500Nie posiadasz uprawnie?!"source000true)
    
end
end
addCommandHandler 
("dajha"giveHA)


B??dy: