- resurrection script function Vehicle_OnDeath(victim, killer, itemid) local vid = victim:getVehicle():vehicletypeid() local c = victim:coords() local s = victim:getStat() local kid = killer:getVehicle():vehicletypeid() if (vid == 103) then victim:setstat(1,103) elseif (vid == 100) then victim:setstat(1,100) elseif (vid == 109) then victim:setstat(1,109) elseif (vid == 107) then victim:setstat(1,107) elseif (vid == 106) then victim:setstat(1,106) elseif (vid == 105) then victim:setstat(1,105) elseif (vid == 113) then victim:setstat(1,113) elseif (vid == 112) then victim:setstat(1,112) elseif (vid == 116) then victim:setstat(1,116) elseif (vid == 117) then victim:setstat(1,117) elseif (vid == 115) then victim:setstat(1,115) elseif (vid == 12) then victim:setstat(1,12) --Shockpad Eurpa if ((itemid == 1025) and ((kid == 103) or (kid == 100) or (kid == 109) or (kid == 107) or (kid == 106) or (kid == 105)) and (vid == 118)) then if ((victim:getstat(1) == 103) then victim:setVehicle(103) and victim:clearStats() elseif (victim:getstat(1) == 100) then victim:setVehicle(100) and victim:clearStats() elseif (victim:getstat(1) == 109) then victim:setVehicle(109) and victim:clearStats() elseif (victim:getstat(1) == 107) then victim:setVehicle(107) and victim:clearStats() elseif (victim:getstat(1) == 106) then victim:setVehicle(106) and victim:clearStats() elseif (victim:getstat(1) == 105) then victim:setVehicle(105) and victim:clearStats() -- Shockpad Titan elseif ((itemid == 1025) and ((kid == 113) or (kid == 112) or (kid == 116) or (kid == 117) or (kid == 115) or (kid == 12)) and (vid == 118)) then if ((victim:getstat(1) == 113) then victim:setVehicle(113) and victim:clearStats() elseif (victim:getstat(1) == 112) then victim:setVehicle(112) and victim:clearStats() elseif (victim:getstat(1) == 116) then victim:setVehicle(116) and victim:clearStats() elseif (victim:getstat(1) == 117) then victim:setVehicle(117) and victim:clearStats() elseif (victim:getstat(1) == 115) then victim:setVehicle(115) and victim:clearStats() elseif (victim:getstat(1) == 12) then victim:setVehicle(12) and victim:clearStats() ---death timer respawn elseif (itemid == timerexplosion) then if ((victim:getstat(1) == 113) then victim:warp(6000, 2448, 50) and victim:setVehicle(113) and victim:clearStats() elseif (victim:getstat(1) == 112) then victim:warp(6000, 2448, 50) and victim:setVehicle(112) and victim:clearStats() elseif (victim:getstat(1) == 116) then victim:warp(6000, 2448, 50) and victim:setVehicle(116) and victim:clearStats() elseif (victim:getstat(1) == 117) then victim:warp(6000, 2448, 50) and victim:setVehicle(117) and victim:clearStats() elseif (victim:getstat(1) == 115) then victim:warp(6000, 2448, 50) and victim:setVehicle(115) and victim:clearStats() elseif (victim:getstat(1) == 12) then victim:warp(5000, 2448, 50) and victim:setVehicle(12) and victim:clearStats() -- death timer respawn elseif ((itemid == timerexplosion) then if ((victim:getstat(1) == 103) then victim:warp(14976, 2448, 50) and victim:setVehicle(103) and victim:clearStats() elseif (victim:getstat(1) == 100) then victim:warp(14976, 2448, 50) and victim:setVehicle(100) and victim:clearStats() elseif (victim:getstat(1) == 109) then victim:warp(14976, 2448, 50) and victim:setVehicle(109) and victim:clearStats() elseif (victim:getstat(1) == 107) then victim:warp(14976, 2448, 50) and victim:setVehicle(107) and victim:clearStats() elseif (victim:getstat(1) == 106) then victim:warp(14976, 2448, 50) and victim:setVehicle(106) and victim:clearStats() elseif (victim:getstat(1) == 105) then victim:warp(14976, 2448, 50) and victim:setVehicle(105) and victim:clearStats() -- if player dies and not corpse vehicle elseif ((vid == 113) or (vid == 112) or (vid == 116) or (vid == 117) or (vid == 115) or (vid == 12) or (vid == 103) or (vid == 100) or (vid == 109) or (vid == 107) or (vid == 106) or (vid == 105)) then victim:warp(c.x, c.y, 0) and victim:setVehicle(118) and arena:explosion_create("Corpse detector", c.x, c.y) end