Wiesz ?e ten kod na dole, usunie WSZYSTKIE auta o danym ID? Jednak na razie nie usunie, bo nigdzie nie masz napisane kt?re ID ma usuwa?.
Zr?b tak:
function destroyCar(vehicle, seat)/lua]
if seat == 0 then --jesli wysiadamy z miejsca kierowcy
destroyElement(vehicle)
end
end
addEventHandler("onPlayerVehicleExit", getRootElement(), destroyCar)
function dajbulet(player)
local x,y,z = getElementPosition(player)
local bullet = createVehicle( 541, x , y, z)
warpPedIntoVehicle( player, bullet)
if isPedInVehicle ( player ) then
outputChatBox ( "Jesli wysadziesz z auta, zostanie ono automatycznie usuniete.", player, 255, 255, 0 )
if seat == 0 then
destroyElement ( vehicle)
end
end
end
addEvent("dajbulet", true)
addEventHandler("dajbulet", getRootElement(), dajbulet)
Chcialem to podczepic pod dana funkcje , wyszlo mi ?
[ Dodano: 2013-04-27, 21:26 ]
Em dobra udalo sie ;D
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