// ---------------------------------------------------------------------------
// 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/
// ---------------------------------------------------------------------------
// Redirection

sm_mode2 set l

sm_menu "Redirection\\y\\R{sm_mode2&l?ON:OFF}" "sm_mode2 {sm_mode2&l?remove:set} l"

localinfo mypw "1" // password for "setinfo _rr" which won't allow to redirect (i.e. admins)
localinfo maxppl 19 // number of ppl on which server will start redirecting
localinfo myip "127.0.0.1:27015" //address for redirection

sm_reg "SM_Connect l 2" "{playersnum<{I.maxppl}?#}{p.I._rr={I.mypw}?#}sm_clexec2 #{p.uid} \'echo \\'Redirecting to {I.myip}\\';connect {I.myip}\';sm_log \'{p.name}<{p.uid}><{p.authid}><{p.tm.gm.name}>\' redirecting (ip \'{I.myip}\')" "be"
