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

Admin Knife Punish


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Emp` (115)
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-25-2008 , 07:24   Admin Knife Punish
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (admin_knife_punish.sma - 2326 views - 2.4 KB)

Last edited by TheRadiance; 04-26-2008 at 04:55.
TheRadiance is offline
Send a message via ICQ to TheRadiance
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-25-2008 , 08:20   Re: Admin Knife Punish
Reply With Quote #2

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
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-25-2008 , 08:54   Re: Admin Knife Punish
Reply With Quote #3

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?
TheRadiance is offline
Send a message via ICQ to TheRadiance
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 04-25-2008 , 10:59   Re: Admin Knife Punish
Reply With Quote #4

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
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 04-26-2008 , 04:55   Re: Admin Knife Punish
Reply With Quote #5

Update :-)
TheRadiance is offline
Send a message via ICQ to TheRadiance
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 04-30-2008 , 17:24   Re: Admin Knife Punish
Reply With Quote #6

You can use the forward of csx : client_death...and CSW_KNIFE
__________________

anakin_cstrike is offline
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 05-01-2008 , 02:53   Re: Admin Knife Punish
Reply With Quote #7

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
TheRadiance is offline
Send a message via ICQ to TheRadiance
KiimpaN
Member
Join Date: Jun 2005
Location: Sweden
Old 05-07-2008 , 17:28   Re: Admin Knife Punish
Reply With Quote #8

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
KiimpaN is offline
dissonantallure
Member
Join Date: Apr 2008
Old 05-11-2008 , 19:47   Re: Admin Knife Punish
Reply With Quote #9

Quote:
Originally Posted by KiimpaN View Post
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 good job!
dissonantallure is offline
tobstr
Member
Join Date: Mar 2008
Old 05-12-2008 , 13:01   Re: Admin Knife Punish
Reply With Quote #10

Quita nice man!!
__________________
+ Karma if I Helped!
tobstr 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 14:23.


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