What about this
function playerDamage_text ( attacker, driver ) --when a player is damaged
local driver = getVehicleOccupant ( source ) -- get the player sitting in seat 0
if ( attacker ) then
local tempString
if ( getElementType ( attacker ) == "vehicle" ) then
local tempString = getPlayerName ( getVehicleController ( attacker ) ).." killed "..getPlayerName ( source ).."
end
end
addEventHandler ( "onPlayerDamage", getRootElement (), playerDamage_text )
addEventHandler ( "onPlayerWasted", getRootElement(), player_Wasted )