Raised This Month: $ Target: $400
 0% 

Knife Headshot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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