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

Wysłany: 2014-07-17, 21:51


Erykos1998







Wiek: 30
Na forum: 4574 dni
Posty: 74
Nick w MP: Eryk

Piwa: 3

Respekt: 50

Witam, pisa?em co? na to ?eby po wej?ciu na marker otwiera?y si? drzwi pod k?tem.
Marker si? nie stworzy?, i nie dzia?a.
Kod:

Kod:

pol_marker1 = createMarker( 2293.3000488281, 2493.6999511719, 2.5 , 'cylinder', 7, 0, 1, 0, 0)
pol_brama1 = createObject (3089, 2294, 2494.400390625, 3.5999999046326, 0, 0, 270)


function MarkerPOL4 (hitPlayer, matchingDimension)
local playera = hitPlayer
if getElementType( playera ) == "player" then
if isObjectInACLGroup( 'user.'..getAccountName( getPlayerAccount( playera ) ), aclGetGroup( 'Policja' ) ) then
moveObject ( pol_brama1, 2500, 3089, 2294, 2494.400390625, 3.5999999046326, 0, 0, 180)
outputChatBox("Policja - Witamy", playera,0,255,0,true)
end
end
end


function MarkerPOL5 (thePlayer)
moveObject ( pol_brama1, 1500, 3089, 2294, 2494.400390625, 3.5999999046326, 0, 0, 270 )
end
addEventHandler ( "onMarkerLeave", pol_marker1, MarkerPOL5 )
addEventHandler ( "onMarkerHit", pol_marker1, MarkerPOL4 )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-17, 22:29


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

   prawe createObject 29462303.8999, -17.825.50)
      lewe createObject 29462303.8999, -14.625.50180.5 )
      
      zew createMarker 2302.802734375, -16.208007812525.484375"cylinder"22552552550)
      wew createMarker 2305.1240234375, -16.3007812525.749565124512"cylinder"22552552550)
      
      
      stan 0
      
      addEventHandler "onMarkerHit"wew, function()
      if stan == 1 then return end
      stan 1
      moveObject prawe15002303.8999, -17.825.50090 )
      moveObject lewe15002303.8999, -14.625.500, -90 )
      setTimer ( function()
      moveObject prawe15002303.8999, -17.825.500, -90 )
      moveObject lewe15002303.8999, -14.625.50090 )
      end3000)
      setTimer ( function()
      stan 0
      end4500)
      end)
      
      addEventHandler "onMarkerHit"zew, function()
      if stan == 1 then return end
      stan 1
      moveObject prawe15002303.8999, -17.825.500, -90 )
      moveObject lewe15002303.8999, -14.625.50090 )
            setTimer ( function()
      moveObject prawe15002303.8999, -17.825.50090 )
      moveObject lewe15002303.8999, -14.625.500, -90 )
      end3000)
      setTimer ( function()
      stan 0
      end4500)
      end)
      



Drzwi zrobione do banku na moim serwie.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-17, 22:31


Erykos1998







Wiek: 30
Na forum: 4574 dni
Posty: 74
Nick w MP: Eryk

Piwa: 3

Respekt: 50

Ale ja bym prosi? o naprawienie kodu, nie lubie przerabia? innych gotowc?w :D .
Chcia?bym wychwyci? b??dy tego ?eby nauczy? si? czego?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-17, 23:36


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Co si? z nimi dzieje ? Jakie? b??dy w db3 czy ?le si? obracaj? ?

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-18, 00:51


Erykos1998







Wiek: 30
Na forum: 4574 dni
Posty: 74
Nick w MP: Eryk

Piwa: 3

Respekt: 50

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-18, 01:17


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

moveObject pol_brama11500308922942494.4003906253.599999904632600270 


9 argument tej funkcji to

strEasingType: the easing function to use for the interpolation (default is "Linear")


a ty masz wstawion? rotacj? :)

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-18, 16:00


Erykos1998







Wiek: 30
Na forum: 4574 dni
Posty: 74
Nick w MP: Eryk

Piwa: 3

Respekt: 50

Jak to mo?na ustawi? ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-18, 16:31


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

To, ?e da?e? jeden element za du?o.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Tagi: drzwi
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

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