catch knife attack
how to catch knife-attack,knife-attacker, victim & the dmg?
* the attackers weapon can be knife but he can make dmg with touching the victim. so i cant check attackers weapon. |
Re: catch knife attack
Ham_TakeDamage? Didn't quite understand this: * the attackers weapon can be knife but he can make dmg with touching the victim.
|
Re: catch knife attack
Quote:
the user can make damage without any weapons. for example by jumping or touching other players. in this case the weapon can be all weapons. i need to get only the damage which made by knife. |
Re: catch knife attack
Quote:
PHP Code:
|
Re: catch knife attack
What I think he means is that he wants the plugin to damage the victim if the attacker has a knife out. And right now its damaging with all weapons correct?
|
Re: catch knife attack
One means that he has an other plugin in his server which makes players able to damage other players by just touching them. Like this they can do damage by touching and just holding knife out. One doesn't want to get that damage but only the real damage done with knife.
|
Re: catch knife attack
Quote:
yea i just want to give em victim the damage as HP back. but the damage which players do with jumping or touching other users, is real & victim will take damage. only no knife damage. ( i dont want to disable the knife damage. because when you knife anyone, player can't walk anymore or will be slower. so i can't disable the knife damage but i can to give the damage which made by knife, back to the victim. ) i hope unterstand what i mean. |
Re: catch knife attack
PHP Code:
|
Re: catch knife attack
Quote:
imaing : there is a mod, which strips all you'r weapon & you just get a knife. you can kill an enemey by jumping/touching the players. so you'r weapon which you have in you'r hand is KNIFE but you dont make damage with the knife. you just make the damage with jumping. so now i want to disable knife's damage but the effect which a knife damage do ( slowdown when attacked ) must be there. you just get damage when knifed but after 0.00000000000x sec. you become the damage back & you can't die by knife damages. only jump or touch damage can kill you oO |
Re: catch knife attack
I'm not kidding you, if you look at the code I changed it. It checks if the weapon used was knife, so the statement will return false if the attacker damaged the victim by touching him.
|
| All times are GMT -4. The time now is 22:43. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.