Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-07-15, 09:30


Given







Wiek: 31
Na forum: 4158 dni
Posty: 31
Nick w MP: Given

Piwa: 1

Respekt: 50

Ostrzeżeń: 100%
Witam czy kto? wie mo?e jak zablokowa? enter ?eby nikt anim nie m?g? wy??czyc ?
daje piwko

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-15, 10:24


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

Given, mo?esz zrobi? przy klikni?ciu ENTERa czy ma animacje, je?li ma to:

Więcej informacji znajdziesz w Wikipedii MTA:

cancelEvent
;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-15, 10:33


Given







Wiek: 31
Na forum: 4158 dni
Posty: 31
Nick w MP: Given

Piwa: 1

Respekt: 50

Ostrzeżeń: 100%
czyli takie co? ?
Kod:

function stopanimEntry ( theplayer, seat, jacked )
cancelEvent ()
end
addEventHandler("onanimEnter",getRootElement(),stopanimEntry)

Niestety malo sie znam w lua

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-15, 10:58


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

Given, nie.
U?yj:

Więcej informacji znajdziesz w Wikipedii MTA:

onClientKey


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-15, 11:00


Given







Wiek: 31
Na forum: 4158 dni
Posty: 31
Nick w MP: Given

Piwa: 1

Respekt: 50

Ostrzeżeń: 100%
Kod:

addEventHandler( "onClientKey", root, function(button,press)
if button == "Enter" or button == "Enter" then
outputDebugString( button .. " moved." )
return true
end
return false
end )

tak :) ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-15, 11:08


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

Given, ehh...
addEventHandler"onClientKey"root, function(button,press) 
if button == "enter" and press then 
if getPedAnimation(localPlayerthen
cancelEvent()
end
end )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-15, 11:17


Given







Wiek: 31
Na forum: 4158 dni
Posty: 31
Nick w MP: Given

Piwa: 1

Respekt: 50

Ostrzeżeń: 100%
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 ')'

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-15, 11:43


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

addEventHandler"onClientKey"root, function(button,press) 
if button == "enter" and press then 
if getPedAnimation(localPlayerthen
cancelEvent()
end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-15, 11:57


Given







Wiek: 31
Na forum: 4158 dni
Posty: 31
Nick w MP: Given

Piwa: 1

Respekt: 50

Ostrzeżeń: 100%
tan sam bl?d

[ Dodano: 2015-07-15, 11:59 ]
a to ma by? po stronie clienta czy serwera czy bez ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-15, 12:11


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

Given, client.

[ Dodano: 2015-07-15, 12:12 ]
Given, ahh, jednego enda brak?o. lol
addEventHandler"onClientKey"root, function(button,press) 
if button == "enter" and press then 
if getPedAnimation(localPlayerthen
cancelEvent()
end
end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-15, 12:15


Given







Wiek: 31
Na forum: 4158 dni
Posty: 31
Nick w MP: Given

Piwa: 1

Respekt: 50

Ostrzeżeń: 100%
tak wla?nie my?la?em nad endem xd

[ Dodano: 2015-07-15, 14:39 ]
Dobra dzi?ki jeste? wielki masz :piwo: :piwo: :piwo: :D

[ Dodano: 2015-07-15, 14:40 ]
Mo?na zamyka?

Postaw piwo autorowi tego posta
 

 
Tagi: zablokować
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku