Wysłany: 2021-01-27, 10:30
Leszek
Programista lua $ Mapper
Wiek: 21 Na forum: 2002 dni Posty: 99
Nick w MP: Leszek
Piwa : 393
Pr?buje zrobi? aby skrypt przenosi? gracza w wybrane miejsce, ale nawet jak w debugscript 3 nie b?dzie s?owa o tym ?e z?y argument to gracza nie przeniesie, a skrypt sie wykonuje napewno.
addEventHandler ( "onVehicleDamage" , root , function( dmg )
local plr = getVehicleOccupant ( source )
if plr and getElementData ( source , "destroyafterimpact" ) then
outputChatBox ( Pracodawca .. " Uszkodzi?e? pojazd!\nIlo?? straconego HP pojazdu przy uderzeniu: " .. tonumber ( dmg ), plr , 255 , 255 , 255 , true )
outputChatBox ( "wykonuje si?" , plr , 255 , 255 , 255 )
setElementPosition ( plr , - 1714.19910 , 888.32092 , 25.74219 )
destroyElement ( source )
end
end )
Ostatnio zmieniony przez Wilq 2021-01-27, 10:53, w całości zmieniany 1 raz
Wysłany: 2021-01-27, 10:42
Qwertick
Coming soon...
Wiek: 23 Na forum: 3577 dni Posty: 472
Nick w MP: Qwertick
Piwa : 2726
addEventHandler ( "onVehicleDamage" , root , function( dmg )
local plr = getVehicleController ( source )
if plr and getElementData ( source , "destroyafterimpact" ) then
outputChatBox ( Pracodawca .. " Uszkodzi?e? pojazd!\nIlo?? straconego HP pojazdu przy uderzeniu: " .. tonumber ( dmg ), plr , 255 , 255 , 255 , true )
outputChatBox ( "wykonuje si?" , plr , 255 , 255 , 255 )
setElementPosition ( plr , - 1714.19910 , 888.32092 , 25.74219 )
destroyElement ( source )
end
end )
Wysłany: 2021-01-27, 11:02
Leszek
Programista lua $ Mapper
Wiek: 21 Na forum: 2002 dni Posty: 99
Nick w MP: Leszek
Piwa : 393
Wysłany: 2021-01-27, 12:49
VVirmex
Sgrypter luja
Wiek: 21 Na forum: 3365 dni Posty: 281
Nick w MP: AxyZ
Piwa : 234
addEventHandler ( "onVehicleDamage" , root , function( dmg )
local plr = getVehicleController ( source )
if plr and getElementData ( source , "destroyafterimpact" ) then
outputChatBox ( Pracodawca .. " Uszkodzi?e? pojazd!\nIlo?? straconego HP pojazdu przy uderzeniu: " .. tonumber ( dmg ), plr , 255 , 255 , 255 , true )
outputChatBox ( "wykonuje si?" , plr , 255 , 255 , 255 )
destroyElement ( source )
setTimer (function()
setElementPosition ( plr , - 1714.19910 , 888.32092 , 25.74219 )
end , 5000 , 1 )
end
end )
Tagi: setelementpositon
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: