Raised This Month: $12 Target: $400
 3% 

One hit knife kills


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   twistedeuphoria (82)
Rabid Baboon
Member
Join Date: Jul 2004
Old 11-18-2004 , 17:35   One hit knife kills
Reply With Quote #1

One Hit Knife Kills
Author: Rabid Baboon
Version: 1.3
Mod: Counter-Strike
Requires: AMX mod X v1.0
Description: Kills a player in one hit from the knife.

Notes:
Thanks to FireStorm for the sucide message block function

Changelog:
  • v1.3
    • Fixed knife kills from taking fall damage
    v1.2
    • Blocked sucide message from knife kills, so your stats wont get screwed up.
    v1.1
    • Self-kill from fall damage while knife is out prevented.
Attached Files
File Type: sma Get Plugin or Get Source (cs_onehitknifekills.sma - 8820 views - 3.0 KB)
__________________
Rabid Baboon
----------------
Semper Fi

My Plugins
Rabid Baboon is offline
Send a message via AIM to Rabid Baboon Send a message via MSN to Rabid Baboon
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 11-18-2004 , 18:21  
Reply With Quote #2

there's still a log message saying that the knifed player commited suicide, that can fuck up players stats if people use
psychostats or hlstats
blocking it and replacing it with a corresponding message to what happened by the plugin should fix that problem
FeuerSturm is offline
Rabid Baboon
Member
Join Date: Jul 2004
Old 11-18-2004 , 19:34  
Reply With Quote #3

If you or someone could tell me how to block that message then I would be more than happy to update it.
__________________
Rabid Baboon
----------------
Semper Fi

My Plugins
Rabid Baboon is offline
Send a message via AIM to Rabid Baboon Send a message via MSN to Rabid Baboon
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 11-18-2004 , 20:17  
Reply With Quote #4

*EDIT look below at what Fire wrote.*
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 11-19-2004 , 00:05  
Reply With Quote #5

he's blockig the deathmessage and replacing it, the problem is the
log message that will screw players stats

you can use fakemeta to block the logmessage:

in plugin init:
Code:
   register_forward(FM_AlertMessage,"blocksuicide")

corresponding function:
Code:
public blocksuicide(at_type, message[]){    if(containi(message,"suicide") > -1 && containi(message,"world") > -1 && knifekill == 1){          knifekill = 0          return FMRES_SUPERCEDE          }    return PLUGIN_CONTINUE }

in the root:
Code:
new knifekill = 0

in your killing function:
Code:
knifekill = 1


and last but not least, you can add your own log message
FeuerSturm is offline
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 11-19-2004 , 06:47  
Reply With Quote #6

lol, showoff ;) j/k use fire's method its much better.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
Rabid Baboon
Member
Join Date: Jul 2004
Old 11-29-2004 , 17:33  
Reply With Quote #7

Thanks for the help guys. I just got back from Thanksgiving break so that is the reason for the delay.
__________________
Rabid Baboon
----------------
Semper Fi

My Plugins
Rabid Baboon is offline
Send a message via AIM to Rabid Baboon Send a message via MSN to Rabid Baboon
Rabid Baboon
Member
Join Date: Jul 2004
Old 05-10-2005 , 11:44  
Reply With Quote #8

Updated.
Getting a knife kill from an enemy taking fall damage should be fixed now.
__________________
Rabid Baboon
----------------
Semper Fi

My Plugins
Rabid Baboon is offline
Send a message via AIM to Rabid Baboon Send a message via MSN to Rabid Baboon
MESSER
New Member
Join Date: Feb 2006
Old 03-18-2006 , 09:21  
Reply With Quote #9

i have error:
Code:
/home/users/amxmodx/public_html/forums/files/onehitknifekills_699.sma(57) : error 017: undefined symbol "set_user_frags" 1 Error. Could not locate output file /home/groups/amxmodx/public_html/compiled3/onehitknifekills_699.amx (compile failed).

whats wrong??
MESSER is offline
Rabid Baboon
Member
Join Date: Jul 2004
Old 03-27-2006 , 13:51  
Reply With Quote #10

Fixed the problem. I just needed to include the fun module.
__________________
Rabid Baboon
----------------
Semper Fi

My Plugins
Rabid Baboon is offline
Send a message via AIM to Rabid Baboon Send a message via MSN to Rabid Baboon
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 15:45.


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