Jump to content

Activate panzers on 5 vs 5 - Jaymod 2.1.7


foley

Recommended Posts

Hello

 

Im foley from (CEW) clan. We have a jaymod 2.1.7 server in the 2.60b version.

 

I was searching some way to activate panzers when we are 5 vs 5 players in the server or more. In etpro this can be done easy if you install kmod but in jaymod i dont know how to do that, maybe you someone can you help us?

 

If you need some more information of the server just tell me.

 

Thanks in advance ;)

Link to comment
Share on other sites

Our server has 24 players on it and panzer is always active but we want it to be active when there are 5 players per team.

 

I dont have etadmin mod. If i have to install it tell me.

 

Thank you for your fast answers ;)

Link to comment
Share on other sites

  • Administrators

Try this in your server config if you don't want to use et admin mod. But out come would be, they will be able to have their second panzer when they have 11 players on the team.

 

set team_maxPanzers 10%

 

If you install et admin mod, then also please patch it with the security fixes or your server can be hacked in 5 mins.

Link to comment
Share on other sites

  • Administrators

Find the following in bin/etadmin_mod.pl:

 

elsif ( index( $line, "Userinfo" ) == 0 )
   {

       #$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/:.*$//;

       $over_ip      = $ip;
       $over_guid    = $guid;
       $over_name    = $name;
       $ready{$guid} = time;

 

Replace it with:

 

elsif ( index( $line, "Userinfo" ) == 0 )
   {

       #$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/:.*$//;

       # START: Lucel's admin steal fix....
  if ( $$rhash{'name'} =~ /.+^$/ )
  {
     &log("Kicked $name. Has trailing carrot in their name, can be used to hack etadmin mod!");
     $kick = "You have an invalid name! Please remove the last character!";
     next;
  }
       # END: Lucel's admin steal fix....

       $over_ip      = $ip;
       $over_guid    = $guid;
       $over_name    = $name;
       $ready{$guid} = time;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.