// ---------------------------------------------------------------------------
// 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/
// ---------------------------------------------------------------------------
// tk punish script

sm_mode set o

sm_menu "ForgiveTK\\y\\R{sm_mode&o?ON:OFF}" "sm_mode {sm_mode&o?remove:set} o"

sm_reg "SM_DeathMsg o" "sm_setmenu #{v.uid} \' \' \'sm_clexec2 #{k.uid} kill;localinfo pn{k.id} 0\' \'localinfo pn{k.id} 0;sm_tell2 * \\'* {v.name} forgave {k.name} \\' 3\'" ade "5=1"
sm_reg "SM_DeathMsg o" "localinfo pn{k.id} 1;sm_showmenu #{v.uid} \'\\yTK Revenge\\n\\n\\w1. Kill now\\n2. Forgive\\n\\n0. Punish on next round\' 120" ade "5=1"
sm_reg "ResetHUD o" "{I.pn{p.id}?:#}localinfo pn{p.id} 0;sm_clexec2 #{p.uid} kill" bde
sm_alias "/forgivetk" "{p.k.name?:#}{p.k.team!{p.team}?#}localinfo pn{p.k.id} 0;sm_tell2 * \'* {p.name} forgave {p.k.name} \' 3" "b"

mp_tkpunish 0 // must be disabled
