Wysłany: 2019-07-24, 10:51
Fl!k
Wiek: 26 Na forum: 3592 dni Posty: 162
Piwa : 18
Witam posiadam skrypt na prace autobus?w lecz gdy daje linie pozamiejsk? moge jecha? bez prawa jazdy prosze o pomoc
Kod gdzie jest prawko na linie miejsk? :
addEventHandler ( "onClientClick" , root , function( button , state , absoluteX , absoluteY , worldX , worldY , worldZ , clickedElement )
if button == "left" and state == "down" then
if isElementWithinMarker ( localPlayer , praca ) then
if isMouseInPosition ( sx / 2 - 112 / 2 - 60 , sy / 2 - 64 / 2 , 112 , 64 ) then
if getElementData ( localPlayer , "player:srp" ) < 1000 then
exports [ "pystories-notifications" ]: createAlert ( "Nie posiadasz wymaganej reputacji. (1000 RP)" )
else
if getElementData ( localPlayer , "player:license:pjC" ) ~= 1 and getElementData ( localPlayer , "player:license:pjC" ) ~= true then
exports [ "pystories-notifications" ]: createAlert ( "Nie posiadasz prawajazdy kategorii C." )
else
triggerServerEvent ( "startujPrace" , resourceRoot , localPlayer , "miejska" )
end
end
end
if isMouseInPosition ( sx / 2 - 112 / 2 + 60 , sy / 2 - 64 / 2 , 112 , 64 ) then
if getElementData ( localPlayer , "player:srp" ) < 2000 then
exports [ "pystories-notifications" ]: createAlert ( "Nie posiadasz wymaganej reputacji. (2000 RP)" )
else
triggerServerEvent ( "startujPrace" , resourceRoot , localPlayer , "pozamiejska" )
end
end
end
end
end
Wysłany: 2019-07-24, 10:53
Wilq
Wiek: 24 Na forum: 4429 dni Posty: 3410
Piwa : 739
Stan prawa jazdy sprawdzasz tylko kiedy kursor jest w pierwszym warunku, w drugim ju? tego nie sprawdzasz.
Kopiuj wklej I po problemie.
Wysłany: 2019-07-24, 10:58
Fl!k
Wiek: 26 Na forum: 3592 dni Posty: 162
Piwa : 18
"Wilq" napisał/a :Stan prawa jazdy sprawdzasz tylko kiedy kursor jest w pierwszym warunku, w drugim ju? tego nie sprawdzasz.
Kopiuj wklej I po problemie.
if getElementData ( localPlayer , "player:license:pjC" ) ~= 1 and getElementData ( localPlayer , "player:license:pjC" ) ~= true then
exports [ "pystories-notifications" ]: createAlert ( "Nie posiadasz prawajazdy kategorii C." )
else to ?
Wysłany: 2019-07-24, 11:00
Wilq
Wiek: 24 Na forum: 4429 dni Posty: 3410
Piwa : 739
Tak, to.
Nie zapomnij doda? 'end'.
Wysłany: 2019-07-24, 11:04
Fl!k
Wiek: 26 Na forum: 3592 dni Posty: 162
Piwa : 18
A gdzie dok?adnie to end?
Wysłany: 2019-07-24, 11:14
Kalizman
Wiek: 23 Na forum: 3652 dni Posty: 1394
Piwa : 4619
nie bierz si? za serwer skoro nie znasz jakichkolwiek podstaw lua?
Więcej szczegółów
Wystawiono 1 piw(a):kuba43
Tagi: prawko :: busy
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: