Raised This Month: $51 Target: $400
 12% 

[IDEA] [ANY] Moving ALL spectators to random teams


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Velture
Senior Member
Join Date: Jan 2011
Location: Poland, Warsaw
Old 10-02-2014 , 10:57   [IDEA] [ANY] Moving ALL spectators to random teams
Reply With Quote #1

Recently I've noticed that players on our servers, after a mapchange, are stacking one team to 'be with the pr0s' and sometimes it takes even 2-4 minutes before all spectators join teams.
It's so annoying that 3/4 of players want to join one team and are waiting minutes before picking up a team.

Is there some plugin that in one command could just randomly put ALL spectators in teams?
I mean not something like autojoin that player can't decide but rather something that admins can force with a command when seeing 10 spectators and making them join teams.
__________________

Last edited by Velture; 10-02-2014 at 11:01.
Velture is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 10-03-2014 , 09:43   Re: [IDEA] [ANY] Moving ALL spectators to random teams
Reply With Quote #2

Try this, (not tested) but should work

sm_forcejoin (ADMFLAG_CHEATS aka AdminFlag N) required
Attached Files
File Type: sp Get Plugin or Get Source (forcejoin.sp - 206 views - 1.5 KB)
xerox8521 is offline
Velture
Senior Member
Join Date: Jan 2011
Location: Poland, Warsaw
Old 10-03-2014 , 09:58   Re: [IDEA] [ANY] Moving ALL spectators to random teams
Reply With Quote #3

Trying to load and:
Code:
15:57:07 sm plugins load forcejoin
15:57:08 [SM] Plugin forcejoin.smx failed to load: Required extension "cstrike" file("games/game.cstrike.ext") not running.
__________________
Velture is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 10-03-2014 , 12:12   Re: [IDEA] [ANY] Moving ALL spectators to random teams
Reply With Quote #4

Which game are you running with this plugin ?

This version is without cstrike functions so should work if you are running tf2
Attached Files
File Type: sp Get Plugin or Get Source (forcejoin.sp - 216 views - 1.5 KB)

Last edited by xerox8521; 10-03-2014 at 12:17.
xerox8521 is offline
LambdaLambda
AlliedModders Donor
Join Date: Oct 2010
Location: London
Old 10-03-2014 , 14:57   Re: [IDEA] [ANY] Moving ALL spectators to random teams
Reply With Quote #5

Anyway, the idea to put them randomly sucks.

Use for loop to count teams and to assign them fairly.

Last edited by LambdaLambda; 10-03-2014 at 14:57.
LambdaLambda is offline
Reply



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 15:54.


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