Raised This Month: $52 Target: $400
 13% 

Team Join Management by Exolent


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-12-2008 , 04:02   Team Join Management by Exolent
Reply With Quote #1

Team Join Management
by Exolent



Intro:
  • This plugin determines what happens to a client when he/she is able to change teams.
  • You can force him/her on a team when he/she connects.
  • You can force him/her on a new team when he/she's already on one and tries to change.
  • You can block him/her from changing teams once on a team.

Cvars:
  • tjm_join_team <0|1|2|3|4>
    • The team number that the player should join:
    • 0 = Don't Auto-Join, 1 = T, 2 = CT, 3 = SPEC, 4 = Random CT or T
  • tjm_switch_team <0|1>
    • Forces the client to change teams when he/she opens the menu while already on a team.
    • 0 = OFF, 1 = ON
  • tjm_class_t <1|2|3|4|5>
    • Which model the client should use when forced to the Terrorist team.
    • 1 = Phoenix Connexion, 2 = Elite Crew, 3 = Arctic Avengers, 4 = Guerilla Warfare, 5 = Random
  • tjm_class_ct <1|2|3|4|5>
    • Which model the client should use when forced to the Counter-Terrorist team.
    • 1 = Seal Team, 2 = GSG-9, 3 = SAS, 4 = GIGN, 5 = Random
  • tjm_block_change <0|1>
    • If tjm_switch_team isn't 1, this will block the client from choosing teams.
    • 0 = Allow Team Change, 1 = Block Team Change

Credits:
  • VEN
    • For "Auto Join On Connect" code.
  • Damaged Soul
    • For "Message Logging" plugin

Changelog:
  • Version 0.1
    • Initial Release
  • Version 0.2
    • Fixed reconnect bug
  • Version 0.3
    • Fixed class number being too big for array

Current Version: 0.3
Attached Files
File Type: sma Get Plugin or Get Source (team_join.sma - 77380 views - 5.3 KB)
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 07-23-2008 at 05:07. Reason: Modification + Category
Exolent[jNr] is offline
Maurice
Senior Member
Join Date: Nov 2006
Location: Netherlands
Old 04-13-2008 , 13:26   Re: Team Join Management
Reply With Quote #2

Great plugin! What happend if tjm_switch_team = 1 and all players from one team opens the changeteam menu, all players are in one team?
__________________
Luck? Luck is only one feeling of amazement concerning a seemingly incidental circumstance which one himself must create.
Maurice is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-13-2008 , 16:35   Re: Team Join Management
Reply With Quote #3

The switch team works as if the player is just joining.
If CT has less, the player goes CT.
If T has less, the player goes T.
If teams are even, the player is auto-ed to CT or T.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 04-18-2008 at 08:24.
Exolent[jNr] is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 04-13-2008 , 16:43   Re: Team Join Management
Reply With Quote #4

gj exolent !! i have to use thissss
__________________
IneedHelp is offline
BloodMan
Senior Member
Join Date: Apr 2008
Location: Lithuania
Old 04-18-2008 , 01:42   Re: Team Join Management
Reply With Quote #5

nice
__________________
BloodMan is offline
Send a message via Skype™ to BloodMan
r3d_w1r3
Senior Member
Join Date: Sep 2006
Old 06-02-2008 , 01:47   Re: Team Join Management
Reply With Quote #6

anway to make it so it doesnt affect admins with ban flag ?
r3d_w1r3 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-02-2008 , 02:14   Re: Team Join Management
Reply With Quote #7

No.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Maurice
Senior Member
Join Date: Nov 2006
Location: Netherlands
Old 06-04-2008 , 14:24   Re: Team Join Management
Reply With Quote #8

I'm testing with this plugin and got a few ideas wich this nice plugin can even make nicer.

The tjm_class_t and tjm_class_ct commands should also have a 0 option wich deactivate the auto class join feature so players can decide self to choice wich class.

When players join the server they can't choice for being spectator, it would be great and usefull if players who join the server just see the normal team choice menu but option 1 and 2 just works as option 5 (auto join). The same for changing between team while already in a team because many players on my server want to become spectater to make a demo if they spotted a cheater.
__________________
Luck? Luck is only one feeling of amazement concerning a seemingly incidental circumstance which one himself must create.

Last edited by Maurice; 06-04-2008 at 14:26.
Maurice is offline
snoopy_89
Junior Member
Join Date: Jun 2008
Old 07-10-2008 , 07:26   Re: Team Join Management
Reply With Quote #9

doesn't work! well the cvar comand doesnt work they put everyone to spec and sence i have a plugins that blockes the M team join thing they will stay in spec
snoopy_89 is offline
-=hunter=-
Senior Member
Join Date: Jul 2008
Old 07-12-2008 , 03:56   Re: Team Join Management
Reply With Quote #10

Thx for this plugin, but command "tjm_class_ct 5" don't work correctly. If to do some reconnect's on server then appears error in console of server (if debug is enabled):

L 07/12/2008 - 14:54:56: [AMXX] Displaying debug trace (plugin "team_join.amxx")
L 07/12/2008 - 14:54:56: [AMXX] Run time error 4: index out of bounds
L 07/12/2008 - 14:54:56: [AMXX] [0] 25555.attach::handle_join (line 166)
L 07/12/2008 - 14:54:56: [AMXX] [1] 25555.attach::task_Autojoin (line 143)

Last edited by -=hunter=-; 07-12-2008 at 03:58.
-=hunter=- is offline
Send a message via ICQ to -=hunter=- Send a message via Skype™ to -=hunter=-
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:16.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode