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

Wysłany: 2017-08-23, 01:11


Gravgor







Wiek: 22
Na forum: 3620 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

Jak zrobi? zeby gracz przed zap?at? nie m?g? ruszy? sie z miejsca?


Pomocy


local marker=createMarker(1710.05176, -808.8296556.35443'corona', -1235155,0,250)

function MarkerHit hitPlayermatchingDimension )
    outputChatBox " cos")
    
end

addEventHandler("onClientMarkerHit"getRootElement(), MarkerHit )
    
        
function zaplac thePlayercommand ,amount)
            takePlayerMoney thePlayertonumber20 ) )
end
addCommandHandler "zaplac" zaplac)


Podpis
Portfolio marceliborowczak.me
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-23, 08:48


l3g3nd4

Mapper & Modeler






Wiek: 22
Na forum: 3399 dni
Posty: 156
Nick w MP: l3g3nd4

Piwa: 602

Respekt: 95,3

Musisz da? setElementFrozen czy co? takiego, znajedziesz to tutaj: https://wiki.multitheftauto.com/wiki/SetElementFrozen

xd

Podpis

Discord: l3g3nd4#9882
GG: 66391457
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-23, 16:20


Gravgor







Wiek: 22
Na forum: 3620 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"l3g3nd4" napisał/a:

Musisz da? setElementFrozen czy co? takiego, znajedziesz to tutaj: https://wiki.multitheftauto.com/wiki/SetElementFrozen

xd


No wiem ale gdzie to da??

Podpis
Portfolio marceliborowczak.me
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-23, 17:09


neku^







Wiek: 24
Na forum: 3521 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5


local marker=createMarker(1710.05176, -808.8296556.35443'corona', -1235155,0,250)

function MarkerHit hitPlayermatchingDimension )
    outputChatBox " cos")
    setElementFrozen(hitPlayertrue)
end

addEventHandler("onClientMarkerHit"getRootElement(), MarkerHit )
    
        
function zaplac thePlayercommand ,amount)
            takePlayerMoney thePlayertonumber20 ) )
     setElementFrozen(thePlayerfalse)
end
addCommandHandler "zaplac" zaplac)

Tw?j kod ma jeden b??d - mianowicie, je?li gracz nie b?dzie mia? 20 to i tak mu zabierze ( i b?dzie mia? na minusie) chyba ?e jest to zamierzone

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-23, 17:25


Gravgor







Wiek: 22
Na forum: 3620 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"dbn69" napisał/a:


local marker=createMarker(1710.05176, -808.8296556.35443'corona', -1235155,0,250)

function MarkerHit hitPlayermatchingDimension )
    outputChatBox " cos")
    setElementFrozen(hitPlayertrue)
end

addEventHandler("onClientMarkerHit"getRootElement(), MarkerHit )
    
        
function zaplac thePlayercommand ,amount)
            takePlayerMoney thePlayertonumber20 ) )
     setElementFrozen(thePlayerfalse)
end
addCommandHandler "zaplac" zaplac)

Tw?j kod ma jeden b??d - mianowicie, je?li gracz nie b?dzie mia? 20 to i tak mu zabierze ( i b?dzie mia? na minusie) chyba ?e jest to zamierzone

Nie wiedzia?em o tym.

Daje freeza ale graczowi a nie samochodowi

Podpis
Portfolio marceliborowczak.me
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-23, 18:46


neku^







Wiek: 24
Na forum: 3521 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5

Jak zrobi? zeby gracz przed zap?at? nie m?g? ruszy? sie z miejsca?

Zdecyduj sie

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-23, 18:50


Gravgor







Wiek: 22
Na forum: 3620 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"dbn69" napisał/a:

Jak zrobi? zeby gracz przed zap?at? nie m?g? ruszy? sie z miejsca?

Zdecyduj sie


Sorki to mi chodzi?o o pojazd.

Podpis
Portfolio marceliborowczak.me
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-23, 18:54


neku^







Wiek: 24
Na forum: 3521 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5


local marker=createMarker(1710.05176, -808.8296556.35443'corona', -1235155,0,250)

function MarkerHit hitPlayermatchingDimension )
    if not getPedOccupiedVehicle (hitPlayerthen return end
    outputChatBox " cos")
    setElementFrozen(hitPlayertrue)
end

addEventHandler("onClientMarkerHit"markerMarkerHit )
    
        
function zaplac thePlayercommand ,amount)
     if getPlayerMoney(thePlayer) < 20 then return end
            takePlayerMoney thePlayertonumber20 ) )
     setElementFrozen(getPedOccupiedVehicle(thePlayer), false)
end
addCommandHandler "zaplac" zaplac)

Powinno dzia?a?

Licz? na R*

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-23, 19:08


Gravgor







Wiek: 22
Na forum: 3620 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

"dbn69" napisał/a:


local marker=createMarker(1710.05176, -808.8296556.35443'corona', -1235155,0,250)

function MarkerHit hitPlayermatchingDimension )
    if not getPedOccupiedVehicle (hitPlayerthen return end
    outputChatBox " cos")
    setElementFrozen(hitPlayertrue)
end

addEventHandler("onClientMarkerHit"markerMarkerHit )
    
        
function zaplac thePlayercommand ,amount)
     if getPlayerMoney(thePlayer) < 20 then return end
            takePlayerMoney thePlayertonumber20 ) )
     setElementFrozen(getPedOccupiedVehicle(thePlayer), false)
end
addCommandHandler "zaplac" zaplac)

Powinno dzia?a?

Licz? na R*


Dzia?a dzi?ki

Podpis
Portfolio marceliborowczak.me
Postaw piwo autorowi tego posta
 

 
Tagi: bramki
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