Raised This Month: $94 Target: $400
 23% 

Anti-Godmode Killing


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   v3x (159)
zssz
Member
Join Date: Aug 2008
Old 10-18-2008 , 18:43   Anti-Godmode Killing
Reply With Quote #1

Description:
This plugin makes it so that whenever a user attains godmode, they will not be able to damage someone else. Shots will still be able to be fired, but no damage will be taken to the player they are shooting at. Knife and grenades will be unable to harm/flash/smoke up the place. When their godmode wears off or is removed, they will get their ability to shoot, knife, and nade people again.

Uses:
  • Prevent users with godmode from damaging/killing other players
  • Prevent users under spawn protection from dealing damage while they are protected
Modules:
  • Fun
  • Fakemeta
Cvars:
  • antig_enabled <0/1> (Set to 1 by default)
Future Updates:
  • Possibly add ability to block killing while they have no-clip (on/off by cvar or something)
  • Add ability whether or not to block killing when player has X hp or over
Change Log:
Oct. 18
  • First Release
Oct. 19
  • Updated code to better (and shorter) way to check if player is attacking
  • Got rid of fun module
  • Compatible with all mods now, not just cstrike
Credits:
  • MeRcyLeZZ for enlightening me on get_pcvar
  • The common rule on most servers -- "Don't kill with godmode on" (for the idea)
Ending notes:

I made this plugin because I was tired of the people that play on my server coming to me complaining about so and so killing them while they were in godmode. I also made it because I think this would be very helpful to other server owners (and possibly server owners that sell admin) so they can keep control on their admins while they are away. Yes, I know that this plugin isn't the most complex, and yes, I also know that I am not the most experienced Pawn coder, but I know what every part of this code does do and doesn't do.
Attached Files
File Type: sma Get Plugin or Get Source (antigod.sma - 1772 views - 1.2 KB)

Last edited by zssz; 10-25-2008 at 03:28. Reason: Updated sma
zssz is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 10-18-2008 , 20:33   Re: Anti-Godmode Killing
Reply With Quote #2

Good idea
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 10-18-2008 , 20:50   Re: Anti-Godmode Killing
Reply With Quote #3

Excellent plugin idea. +K
__________________
+|- KARMA Respectively

HLM is offline
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 10-18-2008 , 20:57   Re: Anti-Godmode Killing
Reply With Quote #4

Very cool
__________________
[B]
{PHILMAGROIN} is offline
koss_4life
BANNED
Join Date: Jun 2008
Location: Heaven
Old 10-18-2008 , 22:10   Re: Anti-Godmode Killing
Reply With Quote #5

Nice to use with GunGame DeathMatch (spawn-protection you know) ppl who has spawn-protection is godlike and can shoot others
koss_4life is offline
zssz
Member
Join Date: Aug 2008
Old 10-18-2008 , 23:08   Re: Anti-Godmode Killing
Reply With Quote #6

Quote:
Originally Posted by koss_4life View Post
Nice to use with GunGame DeathMatch (spawn-protection you know) ppl who has spawn-protection is godlike and can shoot others
I didn't even realize that when I got the idea to make this. I'm surprised I didn't think about that because my server has CSDM enabled on it quite frequently. Thanks for bringing that to my mind!

Glad you all like it ;)
zssz is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 10-19-2008 , 19:20   Re: Anti-Godmode Killing
Reply With Quote #7

If a player with spawn-protection can't shoot anyone, what is the spawn-protection's purpose? Warmup? O_o

But I like the idea with the godlike, which is more useful than spawn-protection.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
zssz
Member
Join Date: Aug 2008
Old 10-19-2008 , 19:41   Re: Anti-Godmode Killing
Reply With Quote #8

Quote:
Originally Posted by dor123 View Post
If a player with spawn-protection can't shoot anyone, what is the spawn-protection's purpose? Warmup? O_o
Spawn protection is there so people dont spawn camp and kill you right when you spawn. It also allows you time to get new weapons (depending on what the spawn protection time is). During that time you have protection, its pretty cheap to be able to get kills while other people cannot kill you.
__________________
zssz is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 10-19-2008 , 20:57   Re: Anti-Godmode Killing
Reply With Quote #9

Ok, sorry. Then it's a good idea!
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 10-20-2008 , 15:45   Re: Anti-Godmode Killing
Reply With Quote #10

I think its a great idea , and usefull , nice
__________________
I am out of order!
grimvh2 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:04.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode