Jump to content

Recommended Posts

bad argument @ 'getelementtype' [ expected element at argument 1, got  nill ]

 

Linha 2 < -

function MakePlayerHeadshot( attacker, weapon, bodypart, loss )
	if getElementType ( attacker ) == "ped" then
		if bodypart == 9 then
			triggerEvent( "onPlayerHeadshot", source, attacker, weapon, loss )
			setPedHeadless ( source, true )
			killPed( source, attacker, weapon, bodypart )
			setTimer( BackUp, 900, 1, source )
		end
	end
end

 

Edited by OverKILL
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...