All pastes #481524 Raw Edit

Something

public text v1 · immutable
·published 2007-05-10 21:28 UTC
rendered paste body
- resurrection script
function Vehicle_OnDeath(victim, killer, itemid)
local vid = victim:getVehicle():vehicletypeid()
local c = victim:coords()
local kid = killer:getVehicle():vehicletypeid()


--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 
-- this statement is always false because in the if statement before you check for vid == 118 so this always fails
		if (vid == 103) or (vid == 100) or (vid == 109) or (vid == 107) or (vid == 106) or (vid == 105)
			then victim:setVehicle(vid)
		end
				
		
				
-- 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 
		-- this statement is always false because in the if statement before you check for vid == 118 so this always fails
		if (vid == 113) or (vid == 112) or (vid == 116) or (vid == 117) or (vid == 115) or (vid == 12) then
			victim:setVehicle(vid)
			
		end