Jump to content

You can't be moved by explosion


99isme

Recommended Posts

Posted

Just as the title said above, I want a script that make you can't be moved by explosion (Grenade, satchel, vehicle explosion, RPG, etc... ). I've searched in forum but there is no topics.

Posted (edited)
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
Posted

If you're not willing to do this yourself, you should employ a paid scripter to do stuff for you. We're not here to script for you and have you just take the finished product not learning anything.

  • Like 2
Posted
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
)

 

Posted
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?

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