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: policyjna
1. Brama Policyjna
Zrobi?em takie co?:

local marker = createMarker(1067,1359,10, "cylinder", 10, 255, 0, 0, 0)

    
st = createObject ( 980, 1067.7998046875, 1359.400390625, 12.5, 0, 0, 180 ) 
    function 
stO ()
        if 
isObjectInACLGroup("user."..getAccountName(getPlayerAccount(el)),aclGetGroup("Policja"))then 
            moveObject 
( st, 5000, 1056.3000488281, 1359.5999755859, 12.5 ) 
            else
        
outputChatBox ("Nie jestes w Policji", thePlayer, 219, 78, 1, true )
       
end
    end 
    addEventHandler
("onPlayerMarkerHit",getRootElement(),stO)

    function 
stC () 
        
moveObject ( st, 4000, 1067.7998046875, 1359.400390625, 12.5 )
    
end 
    addEventHandler
("onPlayerMarkerLeave",getRootElement(),stC)


Kto jest w grupie Policja moze przejsc przez brame, ale niestety, skrypt nie dzia?a a mi wywala b??dy.
Brama jest owszem, po prostu jestem w ACL Policja i brama sie nie otwiera.
dopowiem, ?e jesli wylacze zapytanie o ACL to wszystko dziala !

B??DY:

[2015-07-19 20:30:46] WARNING: [gameplay]/brama/brama.lua:5: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil]
[
2015-07-19 20:30:46] WARNING: [gameplay]/brama/brama.lua:5: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean]
[
2015-07-19 20:30:46] ERROR: [gameplay]/brama/brama.lua:5: attempt to concatenate a boolean value
2. Akademia Policyjna
Akademia Policyjna
Odcinek 1

PEŁNY EKRAN Odnośnik YouTube