tz-ac + etadmin_mod


(Kynval) #1

hi.
I have question about add etadmin_mod to etpro server with tzac.
can I in some way add levels in adminmod there?

i know etadmin_mod based on etkey guid. so can I skip it and add levels for TZAC guid?

greetz, Kynval


(Kynval) #2

is that possible?


(ETJump-Zero) #3

If it’s possible to get the TZAC guid with rcon and you modify etadminmod a bit.


(schnoog) #4

Its possible (i tried it in 2010 when SLAC was very new):


        #$line =~ /cl_guid\\([^\\]*)\\.*name\\([^\\]*)\\.*\\/; #ip\\(\d+\.\d+\.\d+\.\d+):\+\\/;
        my $rhash           = &parse_userinfo($line);
 #       my $guid            = $$rhash{'cl_guid'};
        my $name            = &strip_name( $$rhash{'name'} );
        my $ip              = $$rhash{'ip'};
        my $custom_password = $$rhash{'hp_password'};
        my $custom_exec     = $$rhash{'hp_logincmd'};
        my $greeting        = $$rhash{'hp_greeting'};

        $kick = "";
        $ip =~ s/:.*$//;

		my $client_id = &name2client_id($name);
    	

my $guid =`/pathTo/my/script/scriptname.sh $client_id`;
chop($guid);

later in same perl script


       ## $guid =~ s/ $//g;
$guid=`/pathTo/my/script/scriptname.sh $client_id`;
chop($guid);


Script;


LOG=/path/to/your/etconsole.log
NEEDLE1='\[SLSV\]'
NEEDLE2="^\[SLSV\] Client #$1"
ERG=`grep "$NEEDLE2" $LOG 2>/dev/null | tail -n 1`
ERG2=`echo $ERG | grep disconnected | wc -l`


if [ "$ERG2" != "0" ]
then
OUT="00000000"
else
OUT=`echo $ERG | cut -d " " -f 4`
fi

echo $OUT

You have to check the Needles defines (don`t know if they still [SLSV] or how they are called now)
Maybe you need to change this based on the new Needle set bei TZAC

Kind regards
Schnoog