Jump to content

Need a little Help


SkatCh

Recommended Posts

Posted

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

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

Posted

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

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

560x95_FFFFFF_FF9900_000000_000000.png

Posted

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

Posted

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

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