Jump to content

add bomber zombie


Notorious^

Recommended Posts

Hi all

ı want add explosion to helmet zombie.his skin number 44.ı tried with  createExplosion (x,y,z, 0) but its not worked.its more important for us please help.what can ı do ? thanks ..

function zombiedamaged ( attacker, weapon, bodypart )
	if getElementType ( source ) == "ped" then
		if (getElementData (source, "zombie") == true) then
			if ( bodypart == 9 ) then
				helmeted = "no"                    
				local zskin = getElementModel ( source )
				for k, skin in pairs( helmetzombies ) do
					if skin == zskin then
						helmeted = "yes"                                                
					end
				end
				if helmeted == "no" then
					triggerServerEvent ("headboom", source, source, attacker, weapon, bodypart )
				end
			end
		end
	end
end
addEventHandler ( "onClientPedDamage", getRootElement(), zombiedamaged )

 

Link to comment
  • 1 year later...

On 25/10/2018 at 10:35, Notorious^ said:

Hello, once I have created the zombie bomb script it says "triggerServerside event headexplosion, but event is not added serverside"
in / debugscript 3
Do you know what I can do?

 

Edited by AkqFox
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...