Cze?c, teraz mam kolejny problem.
Jak, zawsze prosze o nie gotowce tylko wyt?umaczenie.
//Edit jeszcze jeden b?ad, gdy gracz ju? wejdzie raz w marker, wi?cej razy napis si? nie pojawia.
Kod:
[lua]
function gui()
okno = guiCreateWindow(1080, 431, 346, 99, "System Bramy", false)
guiWindowSetSizable(okno, false)
ozbrame = guiCreateButton(10, 33, 326, 49, "Otw?rz/Zamknij Bram?.", false, okno)
end
-- Kod Gui --
-- Pokaz Gui --
function showgui()
guiSetVisible(okno, true)
guiSetVisible(ozbrame, true)
showCursor(true)
end
-- Schowaj gui --
function hidegui()
guiSetVisible(okno, false)
guiSetVisible(ozbrame, false)
showCursor(false)
end
-- Kod na stworzenie bramy, oraz zamykanie/otwieranie.
marker = createMarker (1583.45386, -1637.70154, 12 , "cylinder", 1.5, 0, 0, 255, 170 )
bramaob = createObject(10671, 1590.50, -1638.12134, 14 , 0, 0, 90) -- tworzysz bram? i w x, y, z podajesz kordy, a w rx, ry, rz rotacj? obiektu
function MarkerHit( hitElement, matchingDimension )
local elementType = getElementType( hitElement )
outputChatBox("Wszed?es w marker..", player)
end
addEventHandler( "onClientMarkerHit", marker, MarkerHit, showgui )
--TO JEST NIEWAZNE NIE CZYTAJ TAMTEOG.....----
function sysbramy()
if getElementData(bramaob, "brama") then
setElementData(bramaob, "brama", false)
mo... |