Wysłany: 2015-07-15, 09:30
Given
Wiek: 31 Na forum: 4158 dni Posty: 31
Nick w MP: Given
Piwa : 1
Witam czy kto? wie mo?e jak zablokowa? enter ?eby nikt anim nie m?g? wy??czyc ?
daje piwko
Wysłany: 2015-07-15, 10:24
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
Given , mo?esz zrobi? przy klikni?ciu ENTERa czy ma animacje, je?li ma to:
Więcej informacji znajdziesz w Wikipedii MTA: cancelEvent
Wysłany: 2015-07-15, 10:33
Given
Wiek: 31 Na forum: 4158 dni Posty: 31
Nick w MP: Given
Piwa : 1
czyli takie co? ?
Kod: function stopanimEntry ( theplayer, seat, jacked )
cancelEvent ()
end
addEventHandler("onanimEnter",getRootElement(),stopanimEntry)
Niestety malo sie znam w lua
Wysłany: 2015-07-15, 10:58
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
Given , nie.
U?yj:
Więcej informacji znajdziesz w Wikipedii MTA: onClientKey
Wysłany: 2015-07-15, 11:00
Given
Wiek: 31 Na forum: 4158 dni Posty: 31
Nick w MP: Given
Piwa : 1
Kod: addEventHandler( "onClientKey", root, function(button,press)
if button == "Enter" or button == "Enter" then
outputDebugString( button .. " moved." )
return true
end
return false
end )
tak ?
Wysłany: 2015-07-15, 11:08
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
Given , ehh...
addEventHandler ( "onClientKey" , root , function( button , press )
if button == "enter" and press then
if getPedAnimation ( localPlayer ) then
cancelEvent ()
end
end )
Wysłany: 2015-07-15, 11:17
Given
Wiek: 31 Na forum: 4158 dni Posty: 31
Nick w MP: Given
Piwa : 1
dalej to samo
[ Dodano : 2015-07-15, 11:18 ]
bo mi chodzi o suszarke bo tam sa animacje i jak ktos naci?nie enter to moze chodzi?.
I dalej mo?na chodzi?
[ Dodano : 2015-07-15, 11:23 ]
pisze w debugu unexpected symbol near ')'
Wysłany: 2015-07-15, 11:43
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
addEventHandler ( "onClientKey" , root , function( button , press )
if button == "enter" and press then
if getPedAnimation ( localPlayer ) then
cancelEvent ()
end
end )
Wysłany: 2015-07-15, 11:57
Given
Wiek: 31 Na forum: 4158 dni Posty: 31
Nick w MP: Given
Piwa : 1
tan sam bl?d
[ Dodano : 2015-07-15, 11:59 ]
a to ma by? po stronie clienta czy serwera czy bez ?
Wysłany: 2015-07-15, 12:11
Maximerr
Programmer PHP, LUA
Wiek: 25 Na forum: 4427 dni Posty: 548
Piwa : 1051
Given , client.
[ Dodano : 2015-07-15, 12:12 ]
Given , ahh, jednego enda brak?o.
addEventHandler ( "onClientKey" , root , function( button , press )
if button == "enter" and press then
if getPedAnimation ( localPlayer ) then
cancelEvent ()
end
end
end )
Wysłany: 2015-07-15, 12:15
Given
Wiek: 31 Na forum: 4158 dni Posty: 31
Nick w MP: Given
Piwa : 1
tak wla?nie my?la?em nad endem xd
[ Dodano : 2015-07-15, 14:39 ]
Dobra dzi?ki jeste? wielki masz
[ Dodano : 2015-07-15, 14:40 ]
Mo?na zamyka?
Tagi: zablokować
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: