--serverside
function whokilledvic ( thehitted )
local thehitter = source
local hitterp = getPlayerName(getVehicleOccupant( thehitter ))
local hittedp = getPlayerName(getVehicleOccupant( thehitted ))
setVehicleColor ( thehitter , 0, 0, 255, 0, 0, 255, 0, 0, 255, 0, 0, 255 )
outputChatBox( hitterp.. " > hitted > " ..hittedp, root )
end
addEvent ( "whowasit", true )
addEventHandler ( "whowasit", root, whokilledvic )