Okay, so I run a sandbox build server and I was wondering if its possible to make it so if you are in godmode (I use ULX Godmode if it makes a difference), you aren't able to deal damage towards other players. Because it would be nice to separate the people trying to build from the people killing eachother. I asked this on another forum and they basically told me to figure it out myself. The problem being I am not good with writing lua and I haven't been able to find anything online.
If anyone was able to do this would you care to help me out?
You'd have to put a flag on each player to track whether they had godmode enabled, and hook into/override one of the damage functions such as [i]EntityTakeDamage[/i], or [i]PlayerShouldTakeDamage[/i].
Sorry, you need to Log In to post a reply to this thread.