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

Previously known as MrTasty.

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
)

 

RPG/CnR servers Developer , You want help ? contact me on discord >>>lilDawage#8508<<< i'm at your Service 10/24 hours 7/7 days , >>>Welcome<<<

Asking Discord Channel JOIN US ON here , you are welcome 10/24 active

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?

Posted

as i said above and you need tow side client and server 

setTimer for Unfreeze players as Zorgman said 

make it with countdown better

RPG/CnR servers Developer , You want help ? contact me on discord >>>lilDawage#8508<<< i'm at your Service 10/24 hours 7/7 days , >>>Welcome<<<

Asking Discord Channel JOIN US ON here , you are welcome 10/24 active

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