AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   One hit knife kills (https://forums.alliedmods.net/showthread.php?t=7719)

Rabid Baboon 11-18-2004 17:35

One hit knife kills
 
1 Attachment(s)
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.

FeuerSturm 11-18-2004 18:21

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 :wink:
blocking it and replacing it with a corresponding message to what happened by the plugin should fix that problem :wink:

Rabid Baboon 11-18-2004 19:34

If you or someone could tell me how to block that message then I would be more than happy to update it.

kingpin 11-18-2004 20:17

*EDIT look below at what Fire wrote.*

FeuerSturm 11-19-2004 00:05

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

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 :wink:

kingpin 11-19-2004 06:47

lol, showoff ;) j/k use fire's method its much better.

Rabid Baboon 11-29-2004 17:33

Thanks for the help guys. I just got back from Thanksgiving break so that is the reason for the delay.

Rabid Baboon 05-10-2005 11:44

Updated.
Getting a knife kill from an enemy taking fall damage should be fixed now.

MESSER 03-18-2006 09:21

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??

Rabid Baboon 03-27-2006 13:51

Fixed the problem. I just needed to include the fun module.


All times are GMT -4. The time now is 06:59.

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