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

Wysłany: 2013-03-04, 18:26


monio







Wiek: 30
Na forum: 4887 dni
Posty: 319
Nick w MP: Monio99

Piwa: 3565

Respekt: 120,5
Respekt: 120,5

Co tu jest ?le.Pomuszcie

function create()
local bramaPD = createObject ( 980, -1528.90002, 482.29999, 9 )
local myMarker1 = createMarker(-1530.09998, 484.89999, 1.4, 'cylinder', 5.0, 255, 0, 0, 255)
local myMarker2 = createMarker(-1530, 478.89999, 1.4, 'cylinder', 5.0, 255, 0, 0, 255)
setMarkerColor ( myMarker1, 0, 255, 0, 255 )
setMarkerColor ( myMarker2, 0, 255, 0, 255 )
end
addCommandHandler("create", create)
function markerHit(thePlayer)
if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Pomoc Drogowa")) then
if getElementPosition(bramaPD) == -1528.90002 and 482.29999 and 9 then
moveObject ( bramaPD, 980, -1528.80005, 482.20001, 3.3 )
outputChatBox("Trwa otwieranie bramy PD", thePlayer, 0, 160, 0, true)
elseif getElementPosition(bramaPD) = -1528.80005, 482.20001, 3.3 then
moveObject ( brama21, 980, -1528.90002, 482.29999, 9 )
outputChatBox("Trwa zamykanie bramy PD", thePlayer, 0, 160, 0, true)
end
end
end
addEventHandler("onMarkerHit", myMarker1, markerHit)
addEventHandler("onMarkerHit", myMarker2, markerHit)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-05, 13:42


pidbulxd







Wiek: 28
Na forum: 5230 dni
Posty: 135
Nick w MP: Word

Piwa: 540

Respekt: 60

---Brama
bramaPD createObject 980, -1528.90002482.29999myMarker1 createMarker(-1530.09998484.899991.4'cylinder'8.025500255) 

function open(hitElement) 
if isObjectInACLGroup "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup("Pomoc Drogowa")) then 
moveObject bramaPD980, -1528.80005482.200013.3 outputChatBox("Trwa otwieranie bramy PD"hitElement01600trueend 
end
addEventHandler("onMarkerHit"myMarker1open)



function close(hitElement) 
if isObjectInACLGroup "user."..getAccountName(getPlayerAccount(hitElement)), aclGetGroup("Pomoc Drogowa")) then 
moveObject bramaPD980, -1528.90002482.29999outputChatBox("Trwa zamykanie bramy PD"hitElement01600trueend
end
addEventHandler("onMarkerLeave"myMaker1close)


My?l? ?e powinno smiga? :)

Edit. Lekka poprawka z thePlayer na hitElement

Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-03-05, 15:18


monio







Wiek: 30
Na forum: 4887 dni
Posty: 319
Nick w MP: Monio99

Piwa: 3565

Respekt: 120,5
Respekt: 120,5

Sory ale nie dzia?a i mam do cb sprawe napisz domnie 32597981 lub skype jasiek11716 z g?ry dzi?ki

Postaw piwo autorowi tego posta
 

 
Tagi: brama :: marker.
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Brama na Marker. 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