Double/Triple Kill with the same bullet
How can i hook this event in a smart way? time would be one way but then it does not have to be the same bullet :)
Best regards |
Re: Double/Triple Kill with the same bullet
death gametime and death killer should be the same.
|
Re: Double/Triple Kill with the same bullet
Would you mind showing me and example?
Would i have to put the gametime in an array and pass it on to the next kill to compare? Thanks for your answer. |
Re: Double/Triple Kill with the same bullet
Something like this. You need to add counter yourself (for triple kills).
Code:
|
Re: Double/Triple Kill with the same bullet
Thanks alot m8! :) Will try it out right away :)
|
Re: Double/Triple Kill with the same bullet
Have been troubleshooting this for a while now and just realized that the timestamp is not the same when it reaches the second death.
Code:
First Death: flGameTime 109.524772 |
Re: Double/Triple Kill with the same bullet
Maybe cut down to a tenth of a second?
Or if you want, might be a lot less accurate, just same second? |
Re: Double/Triple Kill with the same bullet
Use a global variable to count player kills.
Reset this variable when a player shoots a bullet. Increase the variable when player kills another player. Check variable for double kill. |
Re: Double/Triple Kill with the same bullet
Quote:
What function or event is called when a player shoots a bullet? Thanks for your answer! |
Re: Double/Triple Kill with the same bullet
you can check weapon
in event curWeapon new weapon = get_user_weapon(id) case CSW_DEAGLE : client_cmd(id,"say oops I have deagle") some thing like that , also check buttons && IN_ATTACK I have another questionn how to check If player killed some one with one bullet and then again the second with another bullet to give him reward * ( similar to awp kills - 1st and 2nd) lets see I have AWP PHP Code:
|
| All times are GMT -4. The time now is 03:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.