anyone know where i can find the script where if a player is in god mode and does damage to another player, it slays them? Note !god will be thru permission ULX. Thanks.
I'm not sure about how ULX hooks God mode and to tell if the player has it enabled, however, you can create a command like this to disable doing damage and having damage done to you.
[code]CreateClientConVar( "buddha", 0, false, false )
cvars.AddChangeCallback( "buddha", function( name, old, new )
if ( new > 0 ) then
hook.Add( "PlayerShouldTakeDamage", "buddha", function( vic, att )
if ( ( vic == LocalPlayer() ) or ( att == LocalPlayer() ) ) then
return false
end
end )
else
hook.Remove( "PlayerShouldTakeDamage", "buddha" )
end
end )[/code]
Sorry, you need to Log In to post a reply to this thread.