Jump to content

my zombies script problem


Recommended Posts

i was creating a anti tear gas and anti movtova script for a tdm map

i wanted it like zombies doesn't lose hp with moltova or they don't get affected by tear gas, but still there is problem can any one tell me whats wrong in my script?

  
addEventHandler ( "onClientPlayerDamage", localPlayer, 
    function (weaponID ) 
        if ( weaponID == 17,18 ) and ( getTeamName ( source ) == "zombies" ) then 
            cancelEvent ( ) 
        end 
    end 
) 

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