// ---------------------------------------------------------------------------
// 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/
// ---------------------------------------------------------------------------
// Perform the action on spectating players

localinfo apw "pass" // admin should type in the console "setinfo _sm pass" to get access, or set it in autoexec.cfg

sm_mode3 set e

sm_menu "Spec. admin\\y\\R{sm_mode3&e?ON:OFF}" "sm_mode3 {sm_mode3&e?remove:set} e"

sm_reg "ResetHUD e 3" "{%.psi{p.id}=1}{%.asi{p.id}=0}{%.zsi{p.id}={p.I._sm={I.apw}?0:1}}" bde
sm_reg "TextMsg e 3" "{%.zsi{p.id}?#}{%.psi{p.id}={V2&2?0:1}}" bdeh "2=#Spec_Mode"
sm_reg "StatusValue e 3" "{%.psi{p.id}?#}{%.asi{p.id}={V2.uid}}{%.bsi{p.id}={V2.name}}sm_tell2 #{p.uid} \'[SM] You may perform an action on\\n{V2.name}, say /slay, /kick or /ban\' 4"  bdeh "1=2"

// During spectating type one of these aliases

sm_alias "/ban" "{sm_mode3&e?:#}{%.psi{p.id}?#}sm_setmenu #{p.uid} \' \' \'banid 5 #{%.asi{p.id}} kick\';sm_showmenu #{p.uid} \'\\yBan {%.bsi{p.id}} for 5 min.?\\n\\n\\w1. Yes\\n0. No\' 10" b
sm_alias "/perban" "{sm_mode3&e?:#}{%.psi{p.id}?#}sm_setmenu #{p.uid} \' \' \'banid 0 #{%.asi{p.id}} kick\';sm_showmenu #{p.uid} \'\\yBan {%.bsi{p.id}} permanently?\\n\\n\\w1. Yes\\n0. No\' 10" b
sm_alias "/kick" "{sm_mode3&e?:#}{%.psi{p.id}?#}sm_setmenu #{p.uid} \' \' \'kick # {%.asi{p.id}}\';sm_showmenu #{p.uid} \'\\yKick {%.bsi{p.id}}?\\n\\n\\w1. Yes\\n0. No\' 10" b
sm_alias "/slay" "{sm_mode3&e?:#}{%.psi{p.id}?#}sm_setmenu #{p.uid} \' \' \'sm_clexec2 #{%.asi{p.id}} kill\';sm_showmenu #{p.uid} \'\\ySlay {%.bsi{p.id}}?\\n\\n\\w1. Yes\\n0. No\' 10" b
