Jump to content

Need a little Help


Recommended Posts

function immunity ( attacker, weapon, bodypart ) 
    if ( weapon == 41 ) then --if the weapon used was the spray-can (41) 
        cancelEvent() --cancel the event 
addEventHandler ( "onClientPlayerDamage", getLocalPlayer(), immunity ) 

You'll need to edit this to make it cancel only when 'attacker' is a medic

Link to comment
function onClientPlayerWeaponFireFunc(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) 
    if (weapon == 41) then  
       toggleControl ( "fire" , false)  
      toggleControl ( "fire",true) 
addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFireFunc) 

Link to comment

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