Ptahhotep’s Team Balancer 1.8b3
Ptahhotep’s Team Balancer 1.8b3
Download : Click Here
Amxmodx 1.70 or higher is required as this version uses the new autochanneling system for hudmessages
Immunity for admins (Controlled by CVARS)
Transfers player alive without killing them.
Weapons and equipment aren’t lost in transfers.
Immunity for the VIP in as_* maps
* Ptahhotep’s Team Balancer (PTB)
* Version 1.8b3
* ORIGINAL AUTHOR: Ptahhotep ([email protected])
* CURRENT Support of the plugin: LAntz69 (IRC #amxmodx @Gamesurge or #vanilla.se @Quakenet)
* 1.8b3 lantz69: 2007-03-08
– Fixed so you can have mp_roundtime to almost whatever you want and PTB will still work.
* Before PTB did not work if you had mp_roundtime set to 2.10 or 1.75 etc It had to be 1.5, 2.0, 2.5 etc
– Added log_message to hlds logs when a player is transfered (player X joined team ..) for PsychoStats 3.X
– Changed the time player is transfered from 4.0 to 4.5 seconds
– Added cvar ptb_immunity_level so you dont need to recompile to change the admin flag for immunity
– Added cvar ptb_access_level so you dont need to recompile to change the admin flag for access to ptb
– Added cvar ptb_show_in_hlsw If you want to see Transfers made in the HLSW chat have this set to 1
– Added the above cvars into ptb.cfg ptb_immunity_level, ptb_show_in_hlsw and ptb_access_level
– Made all cvars use the new pcvars system.
– Added protection for VIP to be transfered (Uncomment #define PTB_VIP_IMMUNITY in the source for this to work)
* 1.8b2 lantz69: 2006-08-03
– If player has defuse kit before a transfer it will be removed (thx teame06)
– Added compile option #define SHOW_IN_HLSW To be able to remove transfers being showed in HLSW chat (Sug. Brad)
* 1.8b1 lantz69: 2006-04-05
– ptb.cfg is now back in addons/amxmodx/configs/
– wtj.log is now in addons/amxmodx/logs/
– using amxmodx function floatabs
– added amxmodx 1.70 autochanneling for hud messages
– admins with kick flag is able to join spec even if autojoin is enabled
– new cvars ptb_switch_immunity and ptb_limitjoin_immunity. (in ptb.cfg)
Now it’s easy to disable admins immunity.
* 1.7b9.3 lantz69: 2006-01-12
– small fix for client_prints.
* 1.7b9.2 lantz69: 2005-10-03
– changed how players are transfered and cleaned up the code.
– Players are now transfered without being killed and they also keep their weapons
– lastRoundSwitched[id] is also updated at transfers. Before the amx_ptb playerfreq was broken
* 1.7b3 PTB converted for AMX Mod by OLO
* 1.7b5 Modified for CS 1.6 by XAD.
* Thanks Redmist (“slot1” to close old-style-menus).
* Added fix by ‘Panzermensh’ for lost kill when moved
* (thanks r0otd0wn).
* 1.7b6 Ported to AMX Mod X 0.16 by XAD.
* Changed config file path to configs/ptb.cfg
* 1.7b7 Added admin immunity by Ingerfara. (Thanks to EpsychE and rootdown)
* 1.7b8 JGHG: changed the path of ptb.cfg to use AMXx’s default custom path.
Compiler options in the ptb.sma line 58
This is for the VIP immunity
// Uncomment for support immunity on VIP
CVARS (All are in configs/ptb.cfg)
0 for disabling all ptb chat messages
1 for enabling all ptb chat messages (Default)
2 Transfers will show as hudmessage and in chat
3 Shows all messages in chat and transfers in hudtext
1 PTBs original transfertype (Default)
2 a little more agressive than 1
3 the most agressive transfer
Originally Posted by Explaination for agressive transfer
With more aggressive transfers it transfers one player to the other team rather than just swithing 2 players.
This makes the losing team get one more player and the winning team 1 less.
The default setting almost always swith 2 players and almost always doesn’t do any effect to balance the team.
0 admins with immunity will be switched.
1 admins with immunity will be protected from switches. (Default)
0 admins with immunity will not be able to choose any team they want.
1 admins with immunity can choose any team they want. (Default)
Here you set which flag an admin must have to be immune against transfers (Default o ADMIN_LEVEL_C)
Here you set which flag an admin must have to be able to change PTB settings (Default l ADMIN_RCON)
If you want to see Transfers made in the HLSW chat have this set to 1
1. Copy the new ptb.cfg to addons/amxmodx/configs/
2. Copy ptb.sma to addons/amxmodx/scripting/ and compile it
3. Copy the compiled file ptb.amxx from the compiled folder to the plugins folder.
4. Add a line ptb.amxx to your amxmodx plugins.ini
5. Edit ptb.cfg to suit your needs (Good settings for a 20 player server):
amx_ptb maxsize 11 // maximum team size per team amx_ptb maxdiff 2 // maximum team size difference
amx_ptb maxsize 12 // maximum team size per team amx_ptb maxdiff 4 // maximum team size difference
The forumla to make it fit your server:
amx_ptb maxsize should be set at maxplayers/2 + amx_ptb maxdiff/2
NOTE: Certain maps like nuke,train, militia and italy only has 10 spawns/team.
6. Enable the required module cstrike in modules.ini or PTB wont load properly