Jump to content

You can't be moved by explosion


99isme

Recommended Posts

addEventHandler("onPlayerDamage", root, function (attacker, weapon, bodypart, loss) setElementFrozen(sure, true) 
    isVehicleBlown
    end) 

check if attacker is player and weapons are you want to freeze him also check if attacker is vehicle 

Edited by Dimos7
Link to comment
30 minutes ago, Dimos7 said:

addEventHandler("onPlayerDamage", root, function (attacker, weapon, bodypart, loss) setElementFrozen(sure, true) 
    isVehicleBlown
    end) 

check if attacker is player and weapons are you want to freeze him also check if attacker is vehicle 

I can't script it because I need to spend time studying at school. Can you help me?

Edited by loctiem
Link to comment
14 hours ago, LilDawage said:

weapons = {}
weapons[16] = true -------------Grenads 
weapons[39] = true ------------- setchals

addEventHandler("onPlayerDamage", getRootElement(),
	function (attacker, weapon, bodypart, loss)
		if  weapons[weapon] then
			
			setElementFrozen ( source )
		end
	end
)

 

I'll pay 4$ for this script. Can you make it quick?

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...