99isme Posted April 18, 2018 Share Posted April 18, 2018 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. Link to comment
Dimos7 Posted April 18, 2018 Share Posted April 18, 2018 You want to not moe when get damage of a expolsion? Link to comment
99isme Posted April 18, 2018 Author Share Posted April 18, 2018 2 hours ago, Dimos7 said: You want to not moe when get damage of a expolsion? Yes sir. Link to comment
Dimos7 Posted April 18, 2018 Share Posted April 18, 2018 (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 April 18, 2018 by Dimos7 Link to comment
99isme Posted April 18, 2018 Author Share Posted April 18, 2018 (edited) 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 April 18, 2018 by loctiem Link to comment
Addlibs Posted April 18, 2018 Share Posted April 18, 2018 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. 2 Link to comment
LilDawage Posted April 19, 2018 Share Posted April 19, 2018 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 ) Link to comment
99isme Posted April 20, 2018 Author Share Posted April 20, 2018 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
Zorgman Posted April 20, 2018 Share Posted April 20, 2018 Damage type might serve better than the weapon id, since player can be damaged by an exploding prop or vehicle. player attacker, int attackerweapon, int bodypart, float loss attackerweapon: an int representing the attacker weapon or the damage type. Also don't forget to unfreeze the player on a timer. Link to comment
LilDawage Posted April 21, 2018 Share Posted April 21, 2018 as i said above and you need tow side client and server setTimer for Unfreeze players as Zorgman said make it with countdown better Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now