AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Admin Knife Punish (https://forums.alliedmods.net/showthread.php?t=70450)

TheRadiance 04-25-2008 06:24

Admin Knife Punish
 
1 Attachment(s)
Admin Knife Punish v 0.1 by TheRadiance

Hi all :) I know that many admins don't like when simple players kills them with knife. This plugin will momently slay player (with lightning effect from ATAC) who killed admin with knife.

Cvars:
akp_enable 1|0 - enables|disables slaying.

Credits:
ATAC - Lightning effect has been taken from ATAC plugin.

thnx.
Enjoy :)

Exolent[jNr] 04-25-2008 07:20

Re: Admin Knife Punish
 
You should add a #define for the admin flag to check for people who want it on a certain flag.
Also, you don't need the cstrike module. CSW_* constants are included with amxconst.inc

TheRadiance 04-25-2008 07:54

Re: Admin Knife Punish
 
Quote:

You should add a #define for the admin flag to check for people who want it on a certain flag.
example
PHP Code:

#define ADMIN_FLAG (1<<19) // for example AMDIN_LEVEL_H
...
if(
access(vIndexADMIN_FLAG) && !access(kIndexADMIN_FLAG)) 

X-olent, I'm right?

YamiKaitou 04-25-2008 09:59

Re: Admin Knife Punish
 
Or you can do #define ADMIN_FLAG ADMIN_LEVEL_H


And, you can remove the cstrike and csx includes, they are not needed to compile. And you can change your Mod in the first post to CStrike

TheRadiance 04-26-2008 03:55

Re: Admin Knife Punish
 
Update :-)

anakin_cstrike 04-30-2008 16:24

Re: Admin Knife Punish
 
You can use the forward of csx : client_death...and CSW_KNIFE:wink:

TheRadiance 05-01-2008 01:53

Re: Admin Knife Punish
 
Quote:

You can use the forward of csx : client_death...and CSW_KNIFE
To use this i need include csx.
In my script i made it for all mods, by using DeathMsg

KiimpaN 05-07-2008 16:28

Re: Admin Knife Punish
 
This would be the most annoying plugin ever, if an admin gets pwned, why slay the guy who pwned him so bad? Sounds pretty lame

dissonantallure 05-11-2008 18:47

Re: Admin Knife Punish
 
Quote:

Originally Posted by KiimpaN (Post 622788)
if an admin gets pwned, why slay the guy who pwned him so bad?

I think you did a great job with this plugin but i agree with Kiimpan. So what if your admin and get knifed? You dont like it get better LoL! Still, I bet I know a few admins on my server that would like this hehe :twisted: good job!

tobstr 05-12-2008 12:01

Re: Admin Knife Punish
 
Quita nice man!!


All times are GMT -4. The time now is 16:28.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.