AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Connect Spectate (Auto Spectator, a War Server must have) (https://forums.alliedmods.net/showthread.php?t=99551)

Chanz 08-06-2009 19:31

Connect Spectate (Auto Spectator, a War Server must have)
 
13 Attachment(s)
Connect Spectate
Don't connect and spawn, look and ask around first!



Description:
This plugin sends everyone into the spectator team after they connected.
Type "!jointeam [teamnumber]" into the chat to join a team or leave [teamnumber] blank to get a menu.
Ragdolls are removed when a player dies because he changed a team.
This plugin may not fully work with special teams like in L4D or L4D2.
Requirements:
  • SourceMod 1.3 or higher.
Changelog:
  • 2012-08-23 - v3.1
    • Removed hl2dm deathmatch support (still should work with team death match)
    • Added cvar connectspectate_playerlimit setting it to 4 will block players joining a match with more than 4 players (example: 2 players TERRORISTS, 2 players CT)
  • 2012-08-22 - v3.0
    • Rewritten most parts of the plugin to work with the latest pluginmanager (can be found as feature in smlib on github.com - is also in the .zip included)
  • 2011-02-08 - v2.10.22
    • Fixed problems with +1 score and -1 death.
    • Added compatibility for fix_hl2dm_teamscore plugin.
  • 2011-01-18 - v2.8.20
    • Added: +1 score and -1 death on scoreboard when joining into the game to prevent -1 score and 1 death.
  • 2011-01-17 - v2.7.20
    • Fixed problem where jointeam would sometimes move you into the red team (rebels, terrorists, etc.)
    • Fixed the removed dalay, when a player is in spectator and wants to join the game.
  • 2011-01-16 - v2.7.18
    • Fixed issue with mp_forcerespawn.
    • Fixed wrong team names in teamplay 0 (its not rebels, combine but unassigned!
    • Removed delay when a player is in spectator and wants to join the game.
  • 2011-01-15 - v2.6.14
    • Fixed issue were weapons stay after team change.
    • Fixed problems with mp_teamplay 0 in hl2dm
  • 2011-01-13 - v2.5.12
    • Added 5 second delay to avoid abusing the jointeam command. Thank you Maxtasy for posting the issue.
    • Added chat message, when a player is changing team.
    • Added chat message, when a player is already in that team he selected.
  • v2.4.8
    • Fixed looping the jointeam command which caused kac (if installed) to kick players.
    • HL2DM: Fixed the problem with mp_teamplay 0.
    • Added team "Spectator" within the team menu.
  • v2.2.4
    • Complete recode with smlib
  • v1.0.0
    • Public release
Installation:
  • Just drop the content of the zip into your mod dir (ex: cstrike,hl2mp,...).
Configuration Helper:
The following can be changed in <moddir>/cfg/sourcemod/connectspectate.cfg
PHP Code:

// Defines when to show the menu, 0=never, 1=when a wrong team index was entered, 2=on connect, 3=1+2 means the menu shows when entered a wrong team index and on connect
// -
// Default: "3"
// Minimum: "0.000000"
connectspectate_display "3"

// Enables or disables this plugin
// -
// Default: "1"
connectspectate_enable "1"

// Only send players into spectate if there are already playing more players than this value
// -
// Default: "2"
// Minimum: "0.000000"
connectspectate_playertrigger "2" 

Important information:
  • BE SURE TO OVERRIDE THE OLD CONFIG FILE (connectspectate.cfg in your <moddir>/cfg/sorucemod/ folder)!
  • Updating to v3.0 and higher, delete plugin.connectspectate.cfg in your <moddir>/cfg/sorucemod/ folder.
Download:
The provided connectspectate.cfg file is configured to enable this plugin by default and only is activated if there are more than 2 players on the server.

connectspectate.zip is always the latest version of this plugin. Older versions are attached with their version number.

toString 08-07-2009 09:50

Re: Connect Spectate
 
Would it be possible for you, or someone, to create another plugin based on this that allows TF2 users auto-team-join? In an aid to prevent stacking?

Thrawn2 08-07-2009 09:54

Re: Connect Spectate
 
Quote:

Would it be possible for you, or someone, to create another plugin based on this that allows TF2 users auto-team-join? In an aid to prevent stacking?
like this?
http://forums.alliedmods.net/showpos...3&postcount=13

Chanz 08-07-2009 18:54

Re: Connect Spectate
 
Quote:

Originally Posted by toString (Post 892536)
Would it be possible for you, or someone, to create another plugin based on this that allows TF2 users auto-team-join? In an aid to prevent stacking?

this is not the purpose for my plugin its right the opposite. ^^

it prevents players joining a team when they connect and shows them a menu...

GAVVVR 12-19-2010 22:12

Re: Connect Spectate
 
Chanz, can u make it to work on hl2dm servers?

Chanz 12-21-2010 08:53

Re: Connect Spectate
 
jup, give me a day.

GAVVVR 12-25-2010 15:45

Re: Connect Spectate
 
All hl2dm-community is waiting for this plug-in:D

Chanz 12-26-2010 06:21

Re: Connect Spectate
 
updated to 2.2.4
see frist post for changelog.

GAVVVR 12-26-2010 15:10

Re: Connect Spectate
 
Wrong dir name for phrases file. translations is correct
still doesn't work on my hl2dm server. It loads normally but don't perform it's functions

Chanz 12-26-2010 19:19

Re: Connect Spectate
 
sry for the wrong dir name, reuploaded the zip file with the right dir name, for easy drag & drop install.

GAVVVR, can look for any error messages and be sure to overwrite the config file (plugin.connectspectate.cfg) within your cfg/sourcemod folder.

For me this plugin works without any problems on my hl2dm server, can you test the plugin on another server?


All times are GMT -4. The time now is 10:01.

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