Wysłany: 2014-03-26, 15:28
Ziggiss
Wiek: 28 Na forum: 4479 dni Posty: 4
Witajcie ot?? chodzi o to czy wie kto? ja zrobi? marker na has?o ?
Chodzi mi o to ?e po wpisaniu has?a "tepa?o" by nas w interior, a je?eli jest si? w poje?dzie, tp by r?wnie? pojazd.
Prosz? o pomoc.
Wysłany: 2014-03-26, 15:38
MaLiBu_MTADAYZ
Wiek: 35 Na forum: 4457 dni Posty: 5
Proponuje zrobi? marker na ACL czyli na grup? jak jeste? w grupie to cb tepnie a jak nie jeste? to cb nie tepnie.
Wysłany: 2014-03-26, 16:59
Ziggiss
Wiek: 28 Na forum: 4479 dni Posty: 4
Wysłany: 2014-03-26, 17:46
Artysta
Lua, Lua, Czekolada
Wiek: 28 Na forum: 4466 dni Posty: 240
Nick w MP: Artysta/Koojot
Piwa : 1427
Pod has?o ? Chodzi Ci o "tajn?" komend?, kt?ra nas tam teleportuje ?
Podpis
Something is coming..
Wysłany: 2014-03-26, 18:11
MaLiBu_MTADAYZ
Wiek: 35 Na forum: 4457 dni Posty: 5
Wysłany: 2014-03-26, 19:22
Jacob
Głupiomądry
Wiek: 28 Na forum: 5502 dni Posty: 967
Nick w MP: Jacob
Piwa : 786
markery = {
-- haslo , x , y , z , typ , rozmiar , r , g , b , alpha
{ "haslo123" , 0 , 0 , 1 , "cylinder" , 2.0 , 255 , 255 , 255 , 170 }
}
addEventHandler ( "onResourceStart" , resourceRoot ,
function ( )
for index = 1 , #markery do
local marker = createMarker ( markery [ index ] [ 2 ], markery [ index ] [ 3 ], markery [ index ] [ 4 ], markery [ index ] [ 5 ], markery [ index ] [ 6 ], markery [ index ] [ 7 ], markery [ index ] [ 8 ], markery [ index ] [ 9 ], markery [ index ] [ 10 ] )
addEventHandler ( "onMarkerHit" , marker ,
function ( hitElement )
if ( isElement ( hitElement ) and getElementType ( hitElement ) == "player" ) then
addCommandHandler ( markery [ index ] [ 1 ],
function ( player , cmd )
local x , y , z = 100 , 100 , 100 -- jaka ? pozycja
if ( isElementWithinMarker ( player , marker ) ) then
setElementPosition ( player , x , y , z )
end
end
)
end
end
)
end
end
)
/haslo123 i je?eli jeste? w markerze to Ci? przeniesie na kordy 100, 100, 100.
Wysłany: 2014-03-26, 19:25
MaLiBu_MTADAYZ
Wiek: 35 Na forum: 4457 dni Posty: 5
Wysłany: 2014-03-26, 22:20
Ziggiss
Wiek: 28 Na forum: 4479 dni Posty: 4
Co? nie dzia?a co tu mam nie tak ?
markery = {
-- haslo , x , y , z , typ , rozmiar , r , g , b , alpha
{ "tpbase" , - 249.98692321777 , - 2851.1960449219 , 39.864868164063 , "cylinder" , 2 , 0 , 255 , 0 , 255 }
}
addEventHandler ( "onResourceStart" , resourceRoot ,
function ( )
for index = 1 , #markery do
local marker = createMarker ( markery [ index ] [ 2 ], markery [ index ] [ 3 ], markery [ index ] [ 4 ], markery [ index ] [ 5 ], markery [ index ] [ 6 ], markery [ index ] [ 7 ], markery [ index ] [ 8 ], markery [ index ] [ 9 ], markery [ index ] [ 10 ] )
addEventHandler ( "onMarkerHit" , marker ,
function ( hitElement )
if ( isElement ( hitElement ) and getElementType ( hitElement ) == "player" ) then
addCommandHandler ( markery [ index ] [ 1 ],
function ( player , cmd )
local x , y , z = 2515.8999023438 , - 1739.3000488281 , - 298.10000610352 -- jaka ? pozycja
if ( isElementWithinMarker ( player , marker ) ) then
setElementPosition ( player , x , y , z )
end
end
)
end
end
)
end
end
)
Tagi: baza :: marker
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: