AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Double multi kill (https://forums.alliedmods.net/showthread.php?t=45257)

stigma 09-27-2006 05:37

Double multi kill
 
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..

Silencer123 09-27-2006 15:57

Re: Double multi kill
 
C4n sum1 plz tll m3 ghow i dO thet plzpzlpzlzpkthx
...
Erm... Sorry, but...
Would you please explain your Problem a bit better?
:p

stigma 09-27-2006 16:02

Re: Double multi kill
 
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.

XxAvalanchexX 09-27-2006 17:31

Re: Double multi kill
 
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 }

stigma 09-28-2006 08:19

Re: Double multi kill
 
Thanks


All times are GMT -4. The time now is 04:49.

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