AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Team Join Management by Exolent (https://forums.alliedmods.net/showthread.php?t=69819)

Exolent[jNr] 04-12-2008 03:02

Team Join Management by Exolent
 
1 Attachment(s)
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

Maurice 04-13-2008 12:26

Re: Team Join Management
 
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?

Exolent[jNr] 04-13-2008 15:35

Re: Team Join Management
 
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.

IneedHelp 04-13-2008 15:43

Re: Team Join Management
 
gj exolent !! i have to use thissss

BloodMan 04-18-2008 00:42

Re: Team Join Management
 
nice

r3d_w1r3 06-02-2008 00:47

Re: Team Join Management
 
anway to make it so it doesnt affect admins with ban flag ?

Exolent[jNr] 06-02-2008 01:14

Re: Team Join Management
 
No.

Maurice 06-04-2008 13:24

Re: Team Join Management
 
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.

snoopy_89 07-10-2008 06:26

Re: Team Join Management
 
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

-=hunter=- 07-12-2008 02:56

Re: Team Join Management
 
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)


All times are GMT -4. The time now is 18:47.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.