Wysłany: 2018-03-15, 21:47
IgorPL222
LUA
Wiek: 26 Na forum: 3112 dni Posty: 133
Nick w MP: mxgvr
Piwa : 746
Witam, mam problem.
Ot?? te nosze tworz? si?, i da si? je wyci?ga? oraz chowa?, lecz problem w tym, ?e jak stworzymy DWA lub wi?cej marker?w, problem zaczyna si? taki, ?e dzia?a tylko to wyci?ganie noszy w ostatnim stworzonym markerze.
Za pomoc daj? piwo
Nie ma b??d?w w DB3
Kod server:
function dodajnoszedokaretki ( plr )
if getElementData ( plr , "player:admin" ) then
x , y , z = getElementPosition ( plr )
x2 , y2 , z2 = getElementRotation ( plr )
veh = getPedOccupiedVehicle ( plr )
mrk [ plr ] = createMarker ( 0 , 0 , 0 , "cylinder" , 2 , 255 , 0 , 0 , 50 )
attachElements ( mrk [ plr ], veh , 0 , - 4 , - 1 )
veh1 = createObject ( 1997 , 0 , 0 , 0 , 0 , 0 , 0 )
obcjts [ veh ] = veh1
attachElements ( obcjts [ veh ], veh , 0 , - 1 , - 0.5 )
outputChatBox ( "Dodano nosze do karetki!" , plr )
end
end
addCommandHandler ( "dodaj-nosze-do-karetki" , dodajnoszedokaretki )
function weznosze ( plr )
if isElementWithinMarker ( plr , mrk [ plr ]) then
if not getElementData ( plr , "player:nosze" ) and getElementData ( plr , "player:duty" ) == "SAMD" then
setElementData ( plr , "player:nosze" , true )
outputChatBox ( "Wzi??e? nosze." , plr )
outputChatBox ( "Aby je postawi?/wzi??? wpisz /pusc-nosze." , plr )
detachElements ( obcjts [ veh ], veh )
attachElements ( obcjts [ veh ], plr , 0 , 1.5 , - 1 )
setElementCollisionsEnabled ( obcjts [ veh ], false )
elseif getElementData ( plr , "player:nosze" ) and getElementData ( plr , "player:duty" ) == "SAMD" then
setElementData ( plr , "player:nosze" , false )
detachElements ( obcjts [ veh ], plr )
attachElements ( obcjts [ veh ], veh , 0 , - 1 , - 0.5 )
setElementData ( plr , "player:puscilnosze" , false )
end
end
end
addCommandHandler ( "wez-nosze" , weznosze )
Wysłany: 2018-03-15, 21:55
Barcioo
Kiedyś to było ST
Wiek: 26 Na forum: 4048 dni Posty: 458
Nick w MP: Bartek.
Piwa : 1887
dodaj to nad kod pewny nie jestem
mrk={}
obcjts ={}
Podpis
Kanał Youtube;
A tu zapraszam
[you]
, pomogłem Ci? Wynagrodź mnie
SUPPORT TEAM - 2016-09-03 do 2018-05-25
Test Mod - 2018-05-25
1k dni na Forum - 2018-01-28
GG: 62111935
Wysłany: 2018-03-16, 00:40
IgorPL222
LUA
Wiek: 26 Na forum: 3112 dni Posty: 133
Nick w MP: mxgvr
Piwa : 746
Barcioo , tak wiem, zapomnia?em je tu wklei?, m?j b??d
Tagi: kłopot :: noszami
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: