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: tartak
1. tartak nie działa poprawnie
Witam zrobi?em sobie prac? na tartak wszystko ?adnie dzia?a wi?c postanowi?em zrobi?, ?e musisz donie?? stworzone drewno z tabeli "o" lecz teraz to ani drzew nie pokazuje ani niczego debugscript 3 czysty

[lua]q = {
{-1183.07, -1054.53, 129.22},
{-1172.19, -1037.23, 129.22},
{-1152.89, -957.45, 129.22},
{-1043.15, -1033.05, 129.21},
{-1088.06, -1046.35, 129.21},
{-1154.39, -1048.53, 129.22},
{-1181.89, -982.51, 129.22},
{-1157.75, -938.56, 129.22},
{-1157.03, -934.55, 129.22},

}
o = {
{-1196.55, -1069.02, 129.22},


}
function stworztartak(plr, md)
x = math.random(1, #q)
y = math.random(1, #o)
object = createObject(616, q[x][1], q[x][2], q[x][3]-1.55, 0,0, q[x][4], false)
setObjectScale(object, 1)
object2 = createObject(1463, q[x][1], q[x][2], q[x][3]-1.55, 0,0, q[x][4], false)
setObjectScale(object2, 1)
marker = createMarker(q[x][1], q[x][2], q[x][3]+4, "arrow", 1.4, 255,0,0, 40)
blip = createBlip(q[x][1], q[x][2], q[x][3],12)
blip2 = createBlip(o[y][1], o[y][2], o[y][3],12)
marker2 = createMarker(q[x][1], q[x][2], q[x][3], "corona", 1.2, 0,0,0)
marker3 = createMarker(q[x][1], q[x][2], q[x][3], "arrow", 1.2, 0,0,0)
marker4 = createMarker(o[y][1], o[y][2], q[y][3], "arrow", 1.2, 0,0,0)
toggleControl("sprint", false)
attachElements ( object2, 0, 0.8, 0.5)
setElementAlpha(marker2, 255)
end

addEvent("tartak", true)

addEvent("usunmarkery...
2. Tartak
Jakich funkcji u?y? do zrobienia tartaku? M.in. animacja, warunek czy posta? uderzy w drzewo.
3. Tartak
Witam. Pisz? sobie tartak lecz natrafi?em na ma?y problem, chodzi mi o to i? mam marker do dawania kasy za przyniesione drewno na setElementData



addEventHandler 
("onMarkerHit"odbior_Kasa,
function (
thePlayer)
if 
getElementData (thePlayer"Podniusl"then
exports
.informacje:pokazInfo (thePlayer"info""Odniosles drewno do magazynu :). Dostajesz wynagrodzenie 25$")
setElementData (thePlayer"Podniusl"false)
givePlayerMoney (thePlayer25)
destroyElement (sciete_drzewo1)
else
exports.informacje:pokazInfo (thePlayer"info""Nie masz w rekach drewna aby je oddac do magazywnu")
end
end
)



i jak podnosze drewno daje sobie setElementData:


setElementData 
(thePlayer"Podniusl"true)


i jak mam juz mam jedno drewno zaniesione kt?re zwie si?:


destroyElement 
(sciete_drzewo1)


a 2 drzewo ma juz nazwe:

destroyElement 
(sciete_drzewo2)


i juz mi nie usunwa.... Jaki? pomys? mo?e ?

[ Dodano: 2014-10-17, 23:01 ]
Ok do zamkni?cia !! :D . Poradzi?em sobie juz z tym. Wiem nale?y ruszy? troszk? g?ow? a wszystko staje si? prostsze :) Dzi?ki