Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2017-08-17, 10:00


DaVeCS

Mapper






Wiek: 31
Na forum: 3386 dni
Posty: 193
Nick w MP: DaVe

Piwa: 59

Respekt: 70,5

Witajcie, pomo?e mi kto? jak zrobi? te brame by dwa UID mogly j? otwiera??


Otokod:

 brama createObject 9802101.882464.9711.82000local t createElement('text')
setElementPosition(t,2101.882464.9711.82)
setElementData(t,"name","Teren VemcziN")


function bramaop(elthePlayer)
        if getElementData(el,"player:uid") ~= 96 or 94 then
        exports["1"]:outputNotificationBox (el"Nie jeste? w?a?cicielem bramy")                
        return
    end
       moveObject (brama20002101.882464.971000)  
       exports["1"]:outputNotificationBox (el"#00ccccBrama si? otwiera!")
       setTimer(moveBack50001)
end
addCommandHandler("vo"bramaop) 

function bramacl(elthePlayer)
        if getElementData(el,"player:uid") ~= 96 or 94 then
        exports["1"]:outputNotificationBox (el"Nie jeste? w?a?cicielem Bramy")            
        return
    end
      moveObject (brama20002101.882464.9711.82000)  
      exports["1"]:outputNotificationBox (el"#00ccccBrama si? zamyka!")
end
addCommandHandler("vz"bramacl


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-17, 10:17


neku^







Wiek: 24
Na forum: 3521 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5


brama createObject 9802101.882464.9711.82000local t createElement('text')
setElementPosition(t,2101.882464.9711.82)
setElementData(t,"name","Teren VemcziN")


function bramaop(elthePlayer)
        if getElementData(el,"player:uid") == 96 or getElementData(el"player:uid") == 94 then
       moveObject (brama20002101.882464.971000)  
       exports["1"]:outputNotificationBox (el"#00ccccBrama si? otwiera!")
       setTimer(moveBack50001)
        return
end
addCommandHandler("vo"bramaop) 

function bramacl(elthePlayer)
        if getElementData(el,"player:uid") == 96 or getElementData(el"player:uid") == 94 then
        moveObject (brama20002101.882464.9711.82000)  
      exports["1"]:outputNotificationBox (el"#00ccccBrama si? zamyka!")
    end
end
addCommandHandler("vz"bramacl


Zedytowane

Ostatnio zmieniony przez neku^ 2017-08-17, 11:03, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-17, 10:55


DaVeCS

Mapper






Wiek: 31
Na forum: 3386 dni
Posty: 193
Nick w MP: DaVe

Piwa: 59

Respekt: 70,5

niestety nie dziala :(

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-17, 11:04


neku^







Wiek: 24
Na forum: 3521 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5

Po 1. jakie masz uid? Po 2 co wy?wietla si? w db3 Po 3 zedytowalem tamten post.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-17, 11:08


DaVeCS

Mapper






Wiek: 31
Na forum: 3386 dni
Posty: 193
Nick w MP: DaVe

Piwa: 59

Respekt: 70,5

0 b??d?w.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-17, 17:45


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8


 brama createObject 9802101.882464.9711.82000local t createElement('text')
setElementPosition(t,2101.882464.9711.82)
setElementData(t,"name","Teren VemcziN")


function bramaop(elthePlayer)
        if getElementData(el,"player:uid") == 96 or getElementData(el,"player:uid") == 94 then        
       moveObject (brama20002101.882464.971000)  
       exports["1"]:outputNotificationBox (el"#00ccccBrama si? otwiera!")
       setTimer(moveBack50001)
end
end
addCommandHandler("vo"bramaop) 

function bramacl(elthePlayer)
        if getElementData(el,"player:uid") == 96 or getElementData(el,"player:uid") == 94 then            
      moveObject (brama20002101.882464.9711.82000)  
      exports["1"]:outputNotificationBox (el"#00ccccBrama si? zamyka!")
end
end
addCommandHandler("vz"bramacl


Licz? na respekt.

Postaw piwo autorowi tego posta
 

 
Tagi: brama
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Odpowiedz do tematu

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
Dodaj temat do Ulubionych
Wersja do druku