Wysłany: 2017-05-05, 16:06
AssasiPlayGames
Wiek: 22 Na forum: 3757 dni Posty: 176
Nick w MP: NiFeKpL
Piwa : 909
witam chcia?bym si? dowiedzie? jak zrobi? wej?cie/wyj?cie z interioru na binda
kod
local blip = createBlip ( 2269.76 ,- 74.16 , 26.77 , 13 , 2 , 255 , 0 , 0 , 255 , 0 , 400 )
wejscie = createMarker ( 2269.76 ,- 74.16 , 26.77 + 0.8 , "arrow" , 1.5 , 0 , 71 , 255 )
wyjscie = createMarker ( 2265.86035 ,- 86.18610 , 8.05354 + 0.6 , "arrow" , 1.5 , 0 , 71 , 255 )
setElementDimension ( wyjscie , 0 )
setElementInterior ( wyjscie , 0 )
addEventHandler ( "onMarkerHit" , wejscie , function( el , md )
if isPedInVehicle ( el ) then return end
outputChatBox ( " #0053FFWitamy w urz?dzie " , el , 255 , 255 , 255 , true )
setElementDimension ( el , 0 )
setElementInterior ( el , 0 )
setElementPosition ( el , 2266.23462 ,- 84.65352 , 8.05354 )
end )
addEventHandler ( "onMarkerHit" , wyjscie , function( el , md )
if isPedInVehicle ( el ) then return end
outputChatBox ( "#0053FF Zapraszamy ponownie " , el , 255 , 255 , 255 , true )
setElementDimension ( el , 0 )
setElementInterior ( el , 0 )
setElementPosition ( el , 2269.68 ,- 77.71 , 26.58 )
end )
Wysłany: 2017-05-05, 17:11
neku^
Wiek: 24 Na forum: 3521 dni Posty: 461
Nick w MP: neku^
Piwa : 1186
Przy u?yciu oto tej funkcji:
Więcej informacji znajdziesz w Wikipedii MTA: bindKey
a dok?adniej
function wejdzurzad ( el , md )
if isPedInVehicle ( el ) then return end
outputChatBox ( " #0053FFWitamy w urz?dzie " , el , 255 , 255 , 255 , true )
setElementDimension ( el , 0 )
setElementInterior ( el , 0 )
setElementPosition ( el , 2266.23462 ,- 84.65352 , 8.05354 )
end
bindKey ( thePlayer , "k" , "up" , wejdzurzad )
Wysłany: 2017-05-05, 17:36
AssasiPlayGames
Wiek: 22 Na forum: 3757 dni Posty: 176
Nick w MP: NiFeKpL
Piwa : 909
dbn69 , a mo?esz ca?y kod
Wysłany: 2017-05-05, 20:42
neku^
Wiek: 24 Na forum: 3521 dni Posty: 461
Nick w MP: neku^
Piwa : 1186
tzn?
Na wychodzenie masz analogicznie, a czy ty chcesz ?e mo?na by?o wej??/wyj?? tylko jak si? jest w markerze?
Wysłany: 2017-05-05, 21:44
AssasiPlayGames
Wiek: 22 Na forum: 3757 dni Posty: 176
Nick w MP: NiFeKpL
Piwa : 909
Wysłany: 2017-05-05, 22:07
neku^
Wiek: 24 Na forum: 3521 dni Posty: 461
Nick w MP: neku^
Piwa : 1186
function wejdzurzad ( el , md )
If isElementWithinMarker ( el , wejscie ) then
if isPedInVehicle ( el ) then return end
outputChatBox ( " #0053FFWitamy w urz?dzie " , el , 255 , 255 , 255 , true )
setElementDimension ( el , 0 )
setElementInterior ( el , 0 )
setElementPosition ( el , 2266.23462 ,- 84.65352 , 8.05354 )
else
outputChatBox ( "* Nie stoisz w markerze!" , el , 255 , 0 , 0 )
end
end
bindKey ( thePlayer , "k" , "up" , wejdzurzad )
Jak b?d? b??dy to sory, pisane na tel.
Tagi: jak :: zrobić :: interior :: binda
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: