Garry's Mod

Garry's Mod

Not enough ratings
Player Shield
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
File Size
Posted
Updated
2.093 KB
21 Sep, 2015 @ 10:09pm
11 Feb, 2017 @ 7:28pm
7 Change Notes ( view )

Subscribe to download
Player Shield

Description
Player Shield Mod is a server-side addon for GMod providing a few anti-griefing features, most notably neutrality setting (aka shielding) which gives a player god mode unless they kill someone.

For superadmins, there are commands that reset or remove shields from others, this can be changed by the superadmin to be used by admins for example.

We have a github! if you have suggestions/issues, right here's the place to go!
https://github.com/zenforic/GMOD-Player-Shield/

Features:

• 120-second default modifiable Initial spawn kill protection (configure on variables section)
• 60-second default modifiable Spawn kill protection (configure on variables section)
• 45-minute default modifiable Shield loss cooldown (configure on variables section)
• "Peace" mode

Dependencies:

Ulysses Mod (ULX + ULib)

"Peace" Mode:

Peace mode may be activated by sending !shield or !neutral in chat, disabled by typing !forfeitshield in chat. While activated, one is unable to be killed. If, however, they kill another player their shield will be removed and other players can kill them again with a 45 minute re-activation cooldown.

Anti-Spawn Kill:

The spawn kill protection works similar to the "peace" mode, but rather than when they kill a player it is stripped when they harm a player.

To-do:

• Add modifiable CVars for cooldown.

Admin Commands:

!disableshield player - Revoke shield from the given player.
!removecooldown player - Reset shield cooldown from the given player.
!resetcooldowntimers - resets all cooldown timers.
!resetshields - Reset shield cooldown timers and revokes all shields.
5 Comments
SuperDean 3 Sep, 2021 @ 8:59am 
what is the command to change how long the spawn protection lasts?
field day 17 Jun, 2019 @ 7:19pm 
Where do you change the variables?
1986Hz 31 Oct, 2018 @ 2:18am 
[Player Shield] lua/ulx/modules/sh/shield.lua:43: Tried to use a NULL entity!
1. Nick - [C]:-1
2. ExpireProtection - lua/ulx/modules/sh/shield.lua:43
3. unknown - lua/ulx/modules/sh/shield.lua:227

Timer Failed! [Simple][@lua/ulx/modules/sh/shield.lua (line 226)]
A'eala  [author] 10 Feb, 2017 @ 7:08pm 
Checkout master branch via svn or git if it continues not to work, I also recently made changes to it so I need to commit that to the workshop version too.
SuperDean 10 Feb, 2017 @ 6:55pm 
it wont add to the collection that my server uses somereasion