// ---------------------------------------------------------------------------
// StatsMe 2.8.3 Config Pack [16 June, 2004]
// ---------------------------------------------------------------------------
// This file is part of StatsMe (See README for more information).
// Copyright 2002 - 2004 UnitedAdmins (www.unitedadmins.com)
// Project originally created by OLO (http://olo.counter-strike.pl)
// ---------------------------------------------------------------------------
// Please read the manual and the forums carefully before altering this file!
// The Manual is located at http://docs.unitedadmins.com/statsme/
// The Forum can be found at http://forums.unitedadmins.com/
// ---------------------------------------------------------------------------
// KillingSpree

sm_mode2 set h

alias set_ks "sm_sayformat 0 100 200 0.05 0.65 2 0.02 6 0.01 0.1 2"

sm_menu "KillingSpree\\y\\R{sm_mode2&h?ON:OFF}" "sm_mode2 {sm_mode2&h?remove:set} h"

sm_reg "SM_PutInServer h 2" "{%.ks_k{p.id}=0}{%.ks_d{p.id}=0}" "bde" //reset values on player game entering
sm_reg "SM_DeathMsg h 2" "{%.ks_k{k.id}+1}{%.ks_d{k.id}=0}{%.ks_k{v.id}=0}{%.ks_d{v.id}+1}" "ade" "5=0" // don't accept TK
sm_reg "SM_DeathMsg h 2" "{%.ks_k{k.id}=3?:#}set_ks;sm_tell * \'{k.name}: Multi-Kill!\';sm_clexec #{k.uid} \'spk misc/multikill\'" "ade" "5=0"
sm_reg "SM_DeathMsg h 2" "{%.ks_k{k.id}=5?:#}set_ks;sm_tell * \'{k.name}: Ultra-Kill!!!\';sm_clexec #{k.uid} \'spk misc/ultrakill\'" "ade" "5=0"
sm_reg "SM_DeathMsg h 2" "{%.ks_k{k.id}=7?:#}set_ks;sm_tell * \'{k.name} IS ON A KILLING SPREE!!!\';sm_clexec #{k.uid} \'spk misc/killingspree\'" "ade" "5=0"
sm_reg "SM_DeathMsg h 2" "{%.ks_k{k.id}=9?:#}set_ks;sm_tell * \'{k.name} IS A MONSTER!\';sm_clexec #{k.uid} \'spk misc/monsterkill\'" "ade" "5=0"
sm_reg "SM_DeathMsg h 2" "{%.ks_k{k.id}=11?:#}set_ks;sm_tell * \'{k.name} IS GODLIKE!\';sm_clexec #{k.uid} \'spk misc/godlike\'" "ade" "5=0"
sm_reg "SM_RoundStart h 2" "{%.ks_k{p.id}<2?#}sm_tell #{p.uid} \'* You've killed {%.ks_k{p.id}} in a row so far\' 3" "bde"
sm_reg "SM_RoundStart h 2" "{%.ks_d{p.id}<2?#}sm_tell #{p.uid} \'* Careful! You've died {%.ks_d{p.id}} rounds in a row now...\' 3" "bde"