Jump to content

Need a little Help


SkatCh

Recommended Posts

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

Link to post
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) 

Link to post

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