"Team is full" message

Please post any questions about developing your plugin here. Please use the search function before posting!
8guawong
Senior Member
Posts: 148
Joined: Sat Sep 20, 2014 3:06 am

"Team is full" message

Postby 8guawong » Tue Sep 30, 2014 4:54 pm

Just found out today CSGO have a really stupid hard coded team limit

"Team is full" message appears when a team has as many players as the half of the max players

so... basically if you have 20 slot server once one team is filled with 10 players no more players can join terrorist.. but this is a problem for some mg maps and jailbreak mod where team are unbalanced

so i was wondering if there is someway we can bypass this stupid team limit????

i'm thinking using this event "jointeam_failed" and switch player to desired team manually?

Code: Select all

        "jointeam_failed"
        {
                "userid"        "short"
                "reason"        "byte"          // 0 = team_full
        }


Syntax: Select all

from events import Event
from players.helpers import index_from_userid
from filters.players import PlayerIter

@Event
def jointeam_failed(game_event):
userid = game_event.get_int('userid')
reason = game_event.get_int('reason')

index = index_from_userid(userid)
player = PlayerEntity(index)

if reason == 0:
player.set_team(3)
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Tue Sep 30, 2014 5:06 pm

Code: Select all

mp_limitteams 0
8guawong
Senior Member
Posts: 148
Joined: Sat Sep 20, 2014 3:06 am

Postby 8guawong » Tue Sep 30, 2014 5:11 pm

L'In20Cible wrote:

Code: Select all

mp_limitteams 0


no that doesn't work ;)
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Tue Sep 30, 2014 9:30 pm

Then I have no clue.. This showed up as a valid ConVar when I launched my test server earlier. Maybe some game-mode specific config?
Omega_K2
Senior Member
Posts: 227
Joined: Sat Jul 07, 2012 3:05 am
Location: Europe
Contact:

Postby Omega_K2 » Tue Sep 30, 2014 11:02 pm

The map may not have more then 10 spawn points. Might wanna check that. CSGO quite frankly has many issues when trying to code for it, which makes it overall terrible for modded srevers :/
Libraries: k2tools
Plugins (any): GSRPG (soon) | Pretty Status List | MySQLAds (soon)
Plugins (game-specific): None atm

If you happen to find a bug or need help, either post in the release threads or contact me in IRC gamesurge.net:6667 / #sourcepython
8guawong
Senior Member
Posts: 148
Joined: Sat Sep 20, 2014 3:06 am

Postby 8guawong » Tue Sep 30, 2014 11:05 pm

L'In20Cible wrote:Then I have no clue.. This showed up as a valid ConVar when I launched my test server earlier. Maybe some game-mode specific config?


well its csgo and you provided the events yourself :cool:

http://www.sourcepython.com/showthread.php?158-Info-list-of-CS-GO-events&p=947&viewfull=1#post947

Omega_K2 wrote:The map may not have more then 10 spawn points. Might wanna check that. CSGO quite frankly has many issues when trying to code for it, which makes it overall terrible for modded srevers :/


no map supports 32 spawns or more!
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Wed Oct 01, 2014 1:36 am

Well, I mean that I have no clue why this variable is not working.
User avatar
La Muerte
Administrator
Posts: 180
Joined: Sun Jul 15, 2012 1:48 pm
Location: Belgium
Contact:

Postby La Muerte » Wed Oct 01, 2014 7:24 am

Probably wrong, but try adding mp_limitteams 0 in startline?
8guawong
Senior Member
Posts: 148
Joined: Sat Sep 20, 2014 3:06 am

Postby 8guawong » Sat Oct 04, 2014 1:49 pm

take a look at this

https://forums.alliedmods.net/showthread.php?t=219812

i sorta don't wanna use it b/c there is some bugs with it ie. player joining undesired team

can we do something like that with SP?

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 126 guests