// LastMan

sm_mode2 set iv

alias set_lm "sm_sayformat 0 200 100 -1 0.25 0 6 6 0.5 0.5 2"
alias set_sj "sm_sayformat 255 255 255 0.02 0.90 2 0.02 3 0.01 0.1 2"

sm_menu "LastMan\\y\\R{sm_mode2&i?ON:OFF}" "sm_mode2 {sm_mode2&i?remove:set} i"
sm_menu "Enemy remaining\\y\\R{sm_mode2&v?ON:OFF}" "sm_mode2 {sm_mode2&v?remove:set} v"


sm_do "{%.txtlm0=Now it all depends on you!}"
sm_do "{%.txtlm1=I hope you still have a healthpack :)}"
sm_do "{%.txtlm2=All your teammates were killed. Good luck!}"
sm_do "{%.txtlm3=You are the only one left. Have fun!}"

// LastMan

sm_do "{%.last=0}"

sm_reg "SM_Lastman i 2"	"{%.last=1?:#}set_lm;sm_tell * \'{%.lastname} vs. {V3}\'" ade
sm_reg "SM_Lastman i 2" "{%.last=0?:#}{%.lastname={V3}}{%.last=1}set_lm;sm_tell * \'{V3}: {%.txtlm{R.3}}\'" ade
sm_reg "SM_RoundStart i 2" "{%.last=0}" bcde

// Enemy Remaining

sm_reg "SM_DeathMsg v 2" "{v.teamcount>0?:#}set_sj;sm_tell {k.team} \'{v.teamcount} {v.team}{{v.teamcount}!1?s}  remaining...\'" ade "5=0"