Knife Kill
HI all.
Can you tell me how I can hook knife or other weapon kill ? |
Re: Knife Kill
There are a couple ways to do it. The method to use will depend on what you want to do with that information.
You can either hook Ham_Killed or hook the event "DeathMsg". |
Re: Knife Kill
I want give points for killer.
When he kill with knife - he got 2 points when with other weapon - he got 1 point |
Re: Knife Kill
Something like this I believe:
PHP Code:
|
Re: Knife Kill
Thanks fysiks I will try it :)
|
Re: Knife Kill
But can you tell me what is read_data(1), (2), (4)
|
Re: Knife Kill
In this case - DeathMsg arguments.Look at DeathMsg structure - http://wiki.alliedmods.net/Half-Life...vents#DeathMsg.
Anyway, read_data is used to get event arguments, i.e. if you hook any event use this to get event arguments. |
Re: Knife Kill
I can't find something about that
PHP Code:
PHP Code:
|
Re: Knife Kill
Quote:
|
Re: Knife Kill
weapon_awp
weapon_ak47. |
| All times are GMT -4. The time now is 23:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.