Raised This Month: $ Target: $400
 0% 

[REQ] If no players on blue switch random player from red steam


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kerem Er
Member
Join Date: Mar 2015
Old 12-11-2015 , 22:11   [REQ] If no players on blue switch random player from red steam
Reply With Quote #1

............

Last edited by Kerem Er; 02-23-2016 at 09:20.
Kerem Er is offline
jess
Member
Join Date: Aug 2015
Location: mb
Old 12-12-2015 , 09:02   Re: [REQ] If no players on blue switch random player from red steam
Reply With Quote #2

You can hook the player_team event. You'll know when someone switches teams, even against their volition
__________________
L4D2 Loot RPG
Steam
jess is offline
thecount
Veteran Member
Join Date: Jul 2013
Old 12-12-2015 , 13:15   Re: [REQ] If no players on blue switch random player from red steam
Reply With Quote #3

This probably belongs in the scripting category. It sort of depends on when you want to switch the teams. You could do a check for an empty team on round_start or check on player_team, but a problem rises when a player disconnects from the game and (most likely) the player_team event is not called so OnClientDisconnect() would be used. You could create a function that checks and acts accordingly to use it in all cases.

Last edited by thecount; 12-12-2015 at 13:16.
thecount 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 03:27.


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