All pastes #514287 Raw Edit

SteveUK

public lua v1 · immutable
#514287 ·published 2007-05-27 17:21 UTC
rendered paste body
function GM:OnNPCKilled(npcVictim, npcKiller, npcInflictor) 	if( npcKiller:IsValid() and npcKiller:IsVehicle() and and npcKiller:GetPhysicsAttacker():IsPlayer():IsValid() and npcKiller:GetPhysicsAttacker():IsPlayer() ) then 		npcKiller:GetPhysicsAttacker():AddFrags(1) 	elseif( npcKiller:IsPlayer() )		npcKiller:AddFrags(1) 	end end