Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Poweradmin Changeteam command  (Read 2470 times)

Offline Glock

  • Sr. Member
  • ****
  • Posts: 172
  • Running B3 on 4 busy BF3 servers myself! B3 FTW!
Poweradmin Changeteam command
« on: December 02, 2012, 09:02:09 PM »
Hi guys,

I would like to be able to manage the usage of the !changeteam commands, so a user cannot move another user of the same level.

I have tried this;


Code: [Select]
         <set name="no_level_check_level">20</set>
        <!-- no_autoassign_level : Players this level and above will not be auto assigned-->
<set name="no_autoassign_level">20</set> == to 60 - 80- and 100=
        <set name="autoassign">On</set>
        <set name="autobalance">On</set>
        <set name="autobalance_timer">120</set>
        <set name="team_swap_threshold">3</set>
</settings>

        <set name="no_autoassign_level">20</set> == to 60 - 80- and 100=


But the user can STILL move another user, in the same usergroup.
Is it possible to do this?

Many thanks in advance

Glock
Need B3 Bot Hosting for your gameservers in the UK & Europe?
Take a look at Rcon-Admin.com
Cheap + reliable B3 Bot hosting in the UK and Europe

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: Poweradmin Changeteam command
« Reply #1 on: December 02, 2012, 09:23:28 PM »
open the file poweradminbf3.py in a text editor such as Notepad++ and

search for
Code: python [Select]
if client.maxLevel >= self._no_autoassign_level:

replace with
Code: python [Select]
if client.maxLevel > self._no_autoassign_level:


search for
Code: python [Select]
if cl.teamId == team and cl.maxLevel <= self._no_autoassign_level:

replace with
Code: python [Select]
if cl.teamId == team and cl.maxLevel < self._no_autoassign_level:


That should do the trick

Offline Glock

  • Sr. Member
  • ****
  • Posts: 172
  • Running B3 on 4 busy BF3 servers myself! B3 FTW!
Re: Poweradmin Changeteam command
« Reply #2 on: December 02, 2012, 11:40:03 PM »
Thanks Courgette will try asap and let you know.  ;)   :)
Need B3 Bot Hosting for your gameservers in the UK & Europe?
Take a look at Rcon-Admin.com
Cheap + reliable B3 Bot hosting in the UK and Europe

Offline Glock

  • Sr. Member
  • ****
  • Posts: 172
  • Running B3 on 4 busy BF3 servers myself! B3 FTW!
Re: Poweradmin Changeteam command
« Reply #3 on: December 07, 2012, 12:03:20 PM »
This stopped the Poweradmin plugin from working completely.
Since then I've deleted the logs - meh  ::)

It could easily have been a typo made by myself, so I will try again and see if I can reproduce the error, or see if it works..

 :)
Need B3 Bot Hosting for your gameservers in the UK & Europe?
Take a look at Rcon-Admin.com
Cheap + reliable B3 Bot hosting in the UK and Europe

 


Rate this page +1 at Google Search