Wysłany: 2017-07-08, 12:48
sabarupl
Wiek: 43 Na forum: 4825 dni Posty: 347
Piwa : 163
S:
marker = createMarker ( 2419.49219 , - 1398.14539 , 23.00038 , "cylinder" , 1.5 , 0 , 255 , 100 )
function bind ( plr )
if ( marker ) then
triggerClientEvent ( "dzwiek" , marker , getRootElement (), plr )
end
end
addEventHandler ( "onPlayerJoin" , root , function()
bindKey ( source , "e" , "down" , bind )
end )
C:
addEvent ( "dzwiek" , true )
addEventHandler ( "dzwiek" , root , function()
dzwiek = playSound3D ( "sounds/syrena.mp3" , 2419.49219 , - 1398.14539 , 23.00038 )
outputChatBox ( "Uruchomi?e? syren? OSP!" )
setSoundMaxDistance ( dzwiek , 100 )
setSoundVolume ( dzwiek , 1 )
triggerServerEvent ( "wiadomosc" , localPlayer )
end )
META:
< file src = "sounds/syrena.mp3" type = "client" />
Po wej?ciu do markera i wci?niejciu przycisku e nic si? nie dzieje.
Wysłany: 2017-07-08, 14:52
marcin778
Krytyk serwerów MTA
Wiek: 24 Na forum: 4149 dni Posty: 2268
Nick w MP: Marcineg
Piwa : 4662
marker = createMarker ( 2419.49219 , - 1398.14539 , 23.00038 , "cylinder" , 1.5 , 0 , 255 , 100 )
function bind ( source )
if isElement ( marker ) then
triggerClientEvent ( "dzwiek" , root )
end
end
addEventHandler ( "onPlayerJoin" , root , function()
bindKey ( source , "e" , "down" , bind )
end )
Wysłany: 2017-07-08, 15:41
sabarupl
Wiek: 43 Na forum: 4825 dni Posty: 347
Piwa : 163
Niestety te? nie dzia?a. Powinien si? te? tekst w czacie pojawia si? ale si? nie pojawia.
Wysłany: 2017-07-08, 15:50
.RiV
Wiek: 25 Na forum: 3587 dni Posty: 554
Nick w MP: Split
Piwa : 2596
Trigger do strony Clienta powinien wygl?da? tak:
triggerClientEvent ( root , "dzwiek" , root )
Ca?y kod:
marker = createMarker ( 2419.49219 , - 1398.14539 , 23.00038 , "cylinder" , 1.5 , 0 , 255 , 100 )
function bind ( plr )
if ( marker ) then
triggerClientEvent ( root , "dzwiek" , root )
end
end
addEventHandler ( "onPlayerJoin" , root , function()
bindKey ( source , "e" , "down" , bind )
end )
addEvent ( "dzwiek" , true )
addEventHandler ( "dzwiek" , root , function()
dzwiek = playSound3D ( "sounds/syrena.mp3" , 2419.49219 , - 1398.14539 , 23.00038 )
outputChatBox ( "Uruchomi?e? syren? OSP!" )
setSoundMaxDistance ( dzwiek , 100 )
setSoundVolume ( dzwiek , 1 )
triggerServerEvent ( "wiadomosc" , client )
end )
Podpis
Autor OGRPG, na scenie MTA od 2012 roku.
Użytkownik: 08.08.2016
GTAO Member: 06.02.2017
Support-Team: 17.06.2017 & 01.06.2019 - 18.11.2019
Moderator: 14.01.2018 - 09.08.2018
Tagi: syrena :: przycisk :: nie :: działa
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: