SkatCh Posted December 28, 2014 Posted December 28, 2014 Hi guys please i have a simple question and i need answer , how can i stop player coughing when i use spraycan as a medic ? Failure is simply an opportunity to begin again more intelligently - Henry Ford
Addlibs Posted December 28, 2014 Posted December 28, 2014 function immunity ( attacker, weapon, bodypart ) if ( weapon == 41 ) then --if the weapon used was the spray-can (41) cancelEvent() --cancel the event end end addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), immunity ) You'll need to edit this to make it cancel only when 'attacker' is a medic Previously known as MrTasty.
SkatCh Posted December 28, 2014 Author Posted December 28, 2014 i know evrey thing about how to stop damage etc but the player still coughing when i use the sprycan to heal him. Failure is simply an opportunity to begin again more intelligently - Henry Ford
xeon17 Posted December 28, 2014 Posted December 28, 2014 function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) if (weapon == 41) then toggleControl ( "fire" , false) else toggleControl ( "fire",true) end end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) A unique GangWar gamemode waiting for you!Click here for more information.
ViRuZGamiing Posted December 28, 2014 Posted December 28, 2014 https://wiki.multitheftauto.com/wiki/IsPedChoking "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
SkatCh Posted December 29, 2014 Author Posted December 29, 2014 sorry guys no one gave me the right answer , can anyone tell me how to stop coughing . Failure is simply an opportunity to begin again more intelligently - Henry Ford
SkatCh Posted December 29, 2014 Author Posted December 29, 2014 any help just i need to check if the player is coughing to stop him. is it possible using this function isPedChoking Failure is simply an opportunity to begin again more intelligently - Henry Ford
SkatCh Posted December 29, 2014 Author Posted December 29, 2014 guys any help. Failure is simply an opportunity to begin again more intelligently - Henry Ford
MTA Team botder Posted December 29, 2014 MTA Team Posted December 29, 2014 Does this [onClientPlayerChoke] event work? GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
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