Raised This Month: $ Target: $400
 0% 

Knife Headshot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Blunr552
Member
Join Date: May 2008
Old 12-30-2010 , 17:53   Knife Headshot
Reply With Quote #1

Is it possible to write a plugin when someone get knifed, that the counter part will get a headshot no matter what?

Like 1 knifeattack, 1 kill
Blunr552 is offline
Elusive138
Senior Member
Join Date: Dec 2010
Old 12-30-2010 , 22:17   Re: Knife Headshot
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=66076

Read the whole thing, especially the "A Potentially Evil Plugin" section. Just add a check for the attacker's weapon.

If you just want to 1hit kill and don't really need the headshot, you can
PHP Code:
register_event("Damage""FwdDamage","be","2!0"
, check if attacker has knife and make him do 100 damage or whatever the victim's hp is.

Last edited by Elusive138; 12-30-2010 at 22:20.
Elusive138 is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 12-30-2010 , 22:46   Re: Knife Headshot
Reply With Quote #3

Quote:
Originally Posted by Elusive138 View Post
http://forums.alliedmods.net/showthread.php?t=66076

Read the whole thing, especially the "A Potentially Evil Plugin" section. Just add a check for the attacker's weapon.

If you just want to 1hit kill and don't really need the headshot, you can
PHP Code:
register_event("Damage""FwdDamage","be","2!0"
, check if attacker has knife and make him do 100 damage or whatever the victim's hp is.
No need to change the damage.

PHP Code:
user_silentkill(victimid
or
PHP Code:
user_kill(victimid
will do the trick.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
Blunr552
Member
Join Date: May 2008
Old 12-30-2010 , 23:18   Re: Knife Headshot
Reply With Quote #4

Quote:
Originally Posted by Elusive138 View Post
http://forums.alliedmods.net/showthread.php?t=66076

Read the whole thing, especially the "A Potentially Evil Plugin" section. Just add a check for the attacker's weapon.

If you just want to 1hit kill and don't really need the headshot, you can
PHP Code:
register_event("Damage""FwdDamage","be","2!0"
, check if attacker has knife and make him do 100 damage or whatever the victim's hp is.
thanks!

Was easy cake

plugin works with headshot ^^ But i made a version where i only did more dmg to the knifeattack, was easier
Blunr552 is offline
Reply



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:06.


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