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"10255000)

    
st createObject 9801067.79980468751359.40039062512.500180 
    function 
stO ()
        if 
isObjectInACLGroup("user."..getAccountName(getPlayerAccount(el)),aclGetGroup("Policja"))then 
            moveObject 
st50001056.30004882811359.599975585912.5 
            else
        
outputChatBox ("Nie jestes w Policji"thePlayer219781true )
       
end
    end 
    addEventHandler
("onPlayerMarkerHit",getRootElement(),stO)

    function 
stC () 
        
moveObject st40001067.79980468751359.40039062512.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:46WARNING: [gameplay]/brama/brama.lua:5Bad argument 'getPlayerAccount' [Expected element at argument 1got nil]
[
2015-07-19 20:30:46WARNING: [gameplay]/brama/brama.lua:5Bad argument 'getAccountName' [Expected account at argument 1got boolean]
[
2015-07-19 20:30:46ERROR: [gameplay]/brama/brama.lua:5attempt to concatenate a boolean value
2. Akademia Policyjna
Akademia Policyjna
Odcinek 1

PEŁNY EKRAN Odnośnik YouTube