Jump to content

godmode


boro

Recommended Posts

Hi all i have godmode script, this script work fine but how make godmode only for player vs player ?

because when zombie attack me soo i have still 100% and this is bad

i try this but it dont work

function god ( attacker ) 
if ( getElementType ( attacker ) == "player" ) then 
if attacker == player then  
cancelEvent() 
end 
end 
end 
addEventHandler("onPlayerDamage", getRootElement(), god) 

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