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

Wysłany: 2015-07-21, 18:13


Micles258

Uczeń lua






Wiek: 25
Na forum: 4149 dni
Posty: 48

Piwa: 437

Respekt: 60

Ostrzeżeń: 100%
Nie wiem co tu jest nie tak, za pomoc oczywi?cie :piwo: ;)

    function resp (totalAmmo, killerWeapon, bodypart, stealth)
        local bron = getPedWeapon (source)
        local amunicja = getPedTotalAmmo (source)
        fadeCamera(source,true)
        setTimer (spawnPlayer, 10000, 1, source, 1468.30872, -1710.81067, 13.04688, getPedSkin (source), 0, 0)
        setTimer (setCameraTarget, 10250, 1, source, source)
         setTimer (giveWeapon, 10000, 1, source, bron, amunicja, true)
    end
addEventHandler ("onPlayerWasted", getRootElement(), resp)


Ostatnio zmieniony przez Micles258 2015-07-21, 21:12, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-21, 20:07


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4979 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

DB 3 jakie? s??

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-21, 20:25


Micles258

Uczeń lua






Wiek: 25
Na forum: 4149 dni
Posty: 48

Piwa: 437

Respekt: 60

Ostrzeżeń: 100%
Iksdekowski, Db3 nic nie wyskakuje, jak umre to robi sie czarny ekran i dalej nic sie niedzieje.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-21, 23:47


#404







Wiek: 27
Na forum: 4912 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%

    function resp (totalAmmo, killerWeapon, bodypart, stealth)
        local bron = getPedWeapon (source)
        local amunicja = getPedTotalAmmo (source)
        fadeCamera(source,true)
player = source
        setTimer (spawnPlayer, 10000, 1, player, 1468.30872, -1710.81067, 13.04688, getPedSkin (player), 0, 0)
        setTimer (setCameraTarget, 10250, 1, player,player)
         setTimer (giveWeapon, 10000, 1, player, bron, amunicja, true)
    end
addEventHandler ("onPlayerWasted", getRootElement(), resp)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-22, 00:58


Micles258

Uczeń lua






Wiek: 25
Na forum: 4149 dni
Posty: 48

Piwa: 437

Respekt: 60

Ostrzeżeń: 100%
DestroY,

Niestety nadal to samo :/

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-22, 06:35


#404







Wiek: 27
Na forum: 4912 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
Eem to nie mam pojecia, a tak pozatym uzyj zamiast getPedSkin (troszke nie aktualna)

Więcej informacji znajdziesz w Wikipedii MTA:

getElementModel


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-22, 17:36


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4568 dni
Posty: 548

Piwa: 1051

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

function onPlayerDead(element,skin)
    outputChatBox ( "* Umar?e?.", element, 255, 255, 255, true )
    spawnPlayer(element, 1435.5, 343.60000610352, 19.2, 0, skin, 0, 0)
    fadeCamera (element, true)
    setCameraTarget (element, element)
end

addEventHandler( "onPlayerWasted", getRootElement(),function()
    setTimer(onPlayerDead, 5000, 1, source,  getElementModel(source))
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-23, 22:43


Micles258

Uczeń lua






Wiek: 25
Na forum: 4149 dni
Posty: 48

Piwa: 437

Respekt: 60

Ostrzeżeń: 100%
Maximerr, Dzi?ki pomog?e?, do zamkni?cia.

Postaw piwo autorowi tego posta
 

 
Tagi: resp :: śmierci
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