Jump to content

God mode


Recommended Posts

Posted

Why this dont save me of damage?

function godmode() 
if (getPlayerTeam( localplayer ) == getTeamFromName("Staff") ) then 
cancelEvent() 
  
end 
  
end 
addEventHandler ( "onClientPlayerDamage", root, godmode ) 
  

Need paid scripter just pm me i will accept every job!

Posted
function godmode() 
if (getPlayerTeam( localPlayer ) == getTeamFromName("Staff") ) then 
cancelEvent() 
  
end 
  
end 
addEventHandler ( "onClientPlayerDamage", root, godmode ) 

Team, MTA Scripters.

Posted (edited)
addEventHandler('onClientPlayerDamage', root, 
function() 
    if(getPlayerTeam(getTeamName( localPlayer ) == ('Staff'))) then 
    cancelEvent( ) 
  end 
end 
) 

Edited by Guest

My ingame nickname : Ops!

-DeathMatch GameMode By Ops! : 5%

Posted (edited)
addEventHandler('onClientPlayerDamage', root, 
function() 
    if(getPlayerTeam(getTeamName( localPlayer ) == ('Staff'))) then 
    cancelEvent( ) 
  end 
end 
) 

It's Better to Have an Orgnized Code :D

I think it's even better not to say anything at all if you don't know, that condition does not make sense.

Edited by Guest

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted
addEventHandler('onClientPlayerDamage', root, 
function() 
    if(getPlayerTeam(getTeamName( localPlayer ) == ('Staff'))) then 
    cancelEvent( ) 
  end 
end 
) 

It's Better to Have an Orgnized Code :D

I think it's even better to not say anything at all if you don't know, that condition does not make sense.

+1 Anderl

  

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