Wysłany: 2014-07-17, 21:51
Erykos1998
Wiek: 30 Na forum: 4574 dni Posty: 74
Nick w MP: Eryk
Piwa : 3
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 )
Wysłany: 2014-07-17, 22:29
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
prawe = createObject ( 2946 , 2303.8999 , - 17.8 , 25.5 , 0 , 0 , 0 )
lewe = createObject ( 2946 , 2303.8999 , - 14.6 , 25.5 , 0 , 0 , 180.5 )
zew = createMarker ( 2302.802734375 , - 16.2080078125 , 25.484375 , "cylinder" , 2 , 255 , 255 , 255 , 0 , 0 )
wew = createMarker ( 2305.1240234375 , - 16.30078125 , 25.749565124512 , "cylinder" , 2 , 255 , 255 , 255 , 0 , 0 )
stan = 0
addEventHandler ( "onMarkerHit" , wew , function()
if stan == 1 then return end
stan = 1
moveObject ( prawe , 1500 , 2303.8999 , - 17.8 , 25.5 , 0 , 0 , 90 )
moveObject ( lewe , 1500 , 2303.8999 , - 14.6 , 25.5 , 0 , 0 , - 90 )
setTimer ( function()
moveObject ( prawe , 1500 , 2303.8999 , - 17.8 , 25.5 , 0 , 0 , - 90 )
moveObject ( lewe , 1500 , 2303.8999 , - 14.6 , 25.5 , 0 , 0 , 90 )
end , 3000 , 1 )
setTimer ( function()
stan = 0
end , 4500 , 1 )
end )
addEventHandler ( "onMarkerHit" , zew , function()
if stan == 1 then return end
stan = 1
moveObject ( prawe , 1500 , 2303.8999 , - 17.8 , 25.5 , 0 , 0 , - 90 )
moveObject ( lewe , 1500 , 2303.8999 , - 14.6 , 25.5 , 0 , 0 , 90 )
setTimer ( function()
moveObject ( prawe , 1500 , 2303.8999 , - 17.8 , 25.5 , 0 , 0 , 90 )
moveObject ( lewe , 1500 , 2303.8999 , - 14.6 , 25.5 , 0 , 0 , - 90 )
end , 3000 , 1 )
setTimer ( function()
stan = 0
end , 4500 , 1 )
end )
Drzwi zrobione do banku na moim serwie.
Wysłany: 2014-07-17, 22:31
Erykos1998
Wiek: 30 Na forum: 4574 dni Posty: 74
Nick w MP: Eryk
Piwa : 3
Ale ja bym prosi? o naprawienie kodu, nie lubie przerabia? innych gotowc?w .
Chcia?bym wychwyci? b??dy tego ?eby nauczy? si? czego?.
Wysłany: 2014-07-17, 23:36
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
Co si? z nimi dzieje ? Jakie? b??dy w db3 czy ?le si? obracaj? ?
Wysłany: 2014-07-18, 00:51
Erykos1998
Wiek: 30 Na forum: 4574 dni Posty: 74
Nick w MP: Eryk
Piwa : 3
Wysłany: 2014-07-18, 01:17
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
moveObject ( pol_brama1 , 1500 , 3089 , 2294 , 2494.400390625 , 3.5999999046326 , 0 , 0 , 270 )
9 argument tej funkcji to
strEasingType: the easing function to use for the interpolation (default is "Linear")
a ty masz wstawion? rotacj?
Wysłany: 2014-07-18, 16:00
Erykos1998
Wiek: 30 Na forum: 4574 dni Posty: 74
Nick w MP: Eryk
Piwa : 3
Wysłany: 2014-07-18, 16:31
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
To, ?e da?e? jeden element za du?o.
Tagi: drzwi
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: