Get user attack
Hi i was wonding how i can get a user attacker and make it so if a user is attacked with anything but a knife it will force them to drop a weapon i been trying to use something like
Code:
register_event("Damage", "checkDamage", "b", "2!0") |
Code:
|
Thx, but if i fall of something it still makes me drop my own weapon.
|
Try the edited version.
|
Thanks now it doesnt make me drop my weapon just need to get some1 on my server now to see if works.
|
Is there anyway i can make it so it checks every few seconds for a few seconds if your being attacked rather then always? i have been lookin at somethin like set_task(1.0,"checkDamage",0,"",0,"b" ) but i not sure how it would be used?
|
Yes.
Code:
|
But how can u make it loop for a few seconds then stop for few etc?
|
| All times are GMT -4. The time now is 20:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.