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: noszami
1. Kłopot ze noszami
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:
[lua]

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" th...