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

Wysłany: 2015-11-04, 06:28


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

Masz Notepad++? Zmie? kodowanie na UTF-8. A jak nie to masz ten kod:



mk1 createMarker ( -725.2596969.447411.2028 ,"cylinder"60102255170 )


function MarkerHit (hitElementmd)
if not md then return end
if source ~= mk1 then return end

if getElementType(hitElement) == "player" then
 if isPedInVehicle(hitElementthen

 outputChatBox("Jestes w pojezdzie")

 else
 
 outputChatBox("Nie jestes w pojezdzie")

 end
end
end
addEventHandler "onClientMarkerHit"getRootElement(), MarkerHit )


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-11-04, 06:42


Vxen







Wiek: 27
Na forum: 4086 dni
Posty: 293

Piwa: 1299

Respekt: 130,5
Respekt: 130,5

mk1 createMarker 1959.55, -1714.4615,"cylinder"30102255170 )

function MarkerHit (hitElementmd)
    if not md then return end
        if source ~= mk1 then return end

        if getElementType(hitElement) == "player" then
            if isPedInVehicle(hitElementthen
        
            outputChatBox("Jeste? w pojezdzie. ")
        
        else
    
            local luckyBugger getLocalPlayer() -- get the local player
            local xygetElementPosition luckyBugger ) -- retrive the player's position
            createVehicle ( 432, x, y, z + 10 ) -- create the tank 10 units above them
            
        end
    end
end
addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit )


Gdy wciskam do auta nie moge wej??. :(

Postaw piwo autorowi tego posta
 

 
Tagi: else
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » if else 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