Wysłany: 2013-04-17, 16:28
Funky
Wiek: 33 Na forum: 4847 dni Posty: 44
Nick w MP: Funky
Piwa : 1
Witam , co musz? zmieni? w tym skrypcie by marker teleportowa? gracza razem z pojazdem . Chodzi o wjazd autem w marker kt?ry teleportuje go w dane miejsce .
Kod: local Enter1 = createMarker( -1431.6999511719, 385.89999389648, 30.10000038147, "corona", 2, 150, 0, 0, 255 )
setElementInterior( Enter1, 0, -1431.6999511719, 385.89999389648, 30.10000038147)
function marker1( player )
if (source == Enter1)
then if getElementType(player) == "player"
then fadeCamera ( player, false, 1, 0, 0, 0 )
setTimer ( fadeCamera, 1000, 1, player, true, 1 ) setTimer ( setElementPosition, 1000, 1, player, -1586.5,557.79998779297,4210.1000976563)
setTimer ( setElementInterior, 1000, 1, player, 0, -1586.5,557.79998779297,4210.1000976563)
end
end
addEventHandler ("onMarkerHit", getRootElement() ,marker1 )
Wysłany: 2013-04-17, 16:33
Piorun
Wiek: 32 Na forum: 6712 dni Posty: 1837
Nick w MP: Piorun
Piwa : 516
Wysłany: 2013-04-18, 17:46
Yakamashi
Skrypter
Wiek: 41 Na forum: 4797 dni Posty: 19
Nick w MP: Yakamashi
Piwa : 18
Funky , nic nie piszesz, to chyba uda?o si??
Podpis
[you]
, jestem alkoholikiem, postaw mi prosze zimne piwo.
Wysłany: 2013-04-18, 19:17
Funky
Wiek: 33 Na forum: 4847 dni Posty: 44
Nick w MP: Funky
Piwa : 1
Tak da??m rade , zapomnia?em tu o tym napisa? . Dzi?ki podpowiedzi Pioruna napisa??m taki skrypt
Kod: local Enter1 = createMarker( -1078.0999755859, -986.09997558594, 128, "corona", 2, 150, 0, 0, 255 )
setElementInterior( Enter1, 0, -1078.0999755859, -986.09997558594, 128)
function teleport( player )
if (source == Enter1)
then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(player)),
aclGetGroup("Admin")) then
local veh = getPedOccupiedVehicle(player)
if (veh) then
setElementPosition(veh, -1105.5,-1006.700012207,1586.6999511719)
else
setElementPosition(player, -1105.5,-1006.700012207,1586.6999511719)
end
end
end
end
addEventHandler ("onMarkerHit", getRootElement() ,teleport )
No i oczywi?cie dzia?a , piwko leci .
Tagi: marker
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: