// ---------------------------------------------------------------------------
// 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/
// ---------------------------------------------------------------------------
// Italy Bonus Kill

sm_mode2 set z

sm_menu "Italy Script\\y\\R{sm_mode2&z?ON:OFF}" "sm_mode2 {sm_mode2&z?remove:set} z"

sm_reg "SM_MapStart" "sm_mode2 {currentmap=cs_italy?set:remove} z" ade // enable script only on cs_italy

// version with no CPU usage
sm_reg "23 z 2" "set_hs;sm_tell * \'Somebody killed a chicken!!!\'" "ae" "1=108" "12=278" "15=4"
sm_reg "23 z 2" "set_hs;sm_tell * \'Somebody blew up the radio!!!\'" "ae" "1=108" "12=279" "15=2"

// version with name detection (shows wrong name when item is killed with knife)
//sm_reg "CurWeapon z 2" "{%.ibk={p.id}}" bdeg "1=1"
//sm_reg "23 z 2" "set_hs;sm_tell * \'{p{%.ibk}.name} killed a chicken!!!\'" "ae" "1=108" "12=278" "15=4"
//sm_reg "23 z 2" "set_hs;sm_tell * \'{p{%.ibk}.name} blew up the radio!!!\'" "ae" "1=108" "12=279" "15=2"