Raised This Month: $ Target: $400
 0% 

Double multi kill


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 09-27-2006 , 05:37   Double multi kill
Reply With Quote #1

Can someone give me and eksample how the Double/multi kill has been made in the stats plugin? - I've looked for it in the plugin, but i cant find the function..

Last edited by stigma; 09-27-2006 at 05:38. Reason: Spelling ;)
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
Silencer123
Veteran Member
Join Date: Jul 2006
Old 09-27-2006 , 15:57   Re: Double multi kill
Reply With Quote #2

C4n sum1 plz tll m3 ghow i dO thet plzpzlpzlzpkthx
...
Erm... Sorry, but...
Would you please explain your Problem a bit better?
:p
__________________
EAT YOUR VEGGIES
Silencer123 is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 09-27-2006 , 16:02   Re: Double multi kill
Reply With Quote #3

Well you know on most AMX servers, when a client kills f.e 3 in a row, then 5-10 secondes later the "Multi-Kill" announcemet appears, thats the thing i want to make. But cant figure out how they can register that there has been 3 kills in a row.. :/ cant explain better.
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-27-2006 , 17:31   Re: Double multi kill
Reply With Quote #4

Make an array that contains every player's kill streak. When they get a kill (hook DeathMsg), add to it, and check if it's now 3. When they die (DeathMsg again), reset it to 0. To get you started:

Code:
#include <amxmodx> new killStreak[33]; public plugin_init() {    register_event("DeathMsg","event_deathmsg","a"); } public event_deathmsg() {    new killer = read_data(1);    new victim = read_data(2);    // calculations here }
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
stigma
Senior Member
Join Date: Mar 2005
Location: Denmark
Old 09-28-2006 , 08:19   Re: Double multi kill
Reply With Quote #5

Thanks
stigma is offline
Send a message via MSN to stigma Send a message via Skype™ to stigma
Reply



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 04:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode