Assistance in making a 'damage ban' command
Last read Never
I'm trying to make a custom damage ban command, which bans a player from damaging others. I have no clue where to start. I'm not a competent lua coder, I just know the very basics.
I'm not looking for a copy/paste script, I just need some decent direction and relevent resources.
Any help appreciated
You can use the https://wiki.facepunch.com/gmod/GM:PlayerShouldTakeDamage hook to control if a player should take damage. Use the ply and attacker args to check up against our damage ban (to see if banned from taking damage/doing damage) and then return false or true accordingly in the hook.
thanks for the response, this is all i needed. Much appreciated
Users viewing this thread
Nobody