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

Overflow scenario?


Post New Thread Reply   
 
Thread Tools Display Modes
Depresie
Veteran Member
Join Date: Nov 2013
Old 06-30-2016 , 08:52   Re: Overflow scenario?
Reply With Quote #11

Would something like this work to avoid overflow?

PHP Code:
public HandleTeams()
{
    new 
iPlayers[32] , iNum Player;
    
get_playersiPlayers iNum "h" );
    
    for ( new 
iNum i++ )
    {    
        
Player iPlayers[i];
      
        
set_task( (0.05 i), "JoinGame"Player)
    }
}

public 
JoinGame(id)
{
    if(!
is_user_connected(id)) 
        return;
    
    
engclient_cmd(id"jointeam""5")
    
engclient_cmd(id"joinclass","5")

__________________
Depresie is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 06-30-2016 , 09:23   Re: Overflow scenario?
Reply With Quote #12

Try NBEX or ReHLDS and check overflow with bots.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Depresie
Veteran Member
Join Date: Nov 2013
Old 06-30-2016 , 14:51   Re: Overflow scenario?
Reply With Quote #13

No thanks, the question is still valid ( can't be tested with bots )
__________________
Depresie is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-30-2016 , 18:42   Re: Overflow scenario?
Reply With Quote #14

Quote:
Originally Posted by Depresie View Post
( can't be tested with bots )
Why not?
__________________
fysiks is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-01-2016 , 02:08   Re: Overflow scenario?
Reply With Quote #15

Quote:
Originally Posted by fysiks View Post
Why not?
Why you ask? Lazy people always find escuses.

Just wondering 'depresie' - why not search a plugin on the approved section who doing mostly the same things? That will give an idea how to make it( also in a better way ) + already tested by others.

Case solved .
Craxor is offline
Send a message via ICQ to Craxor
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-01-2016 , 02:27   Re: Overflow scenario?
Reply With Quote #16

I can't get them to spectator properly... i tried to execute jointeam 3/4 and didn't work... also tried with cs_set_user_team to move them all to spec, but it only updated the teams in scoreboard, they were alive and kicking, running around the map...

Thus i couldn't test joining them all at once

@Craxor

YOU FUCKING TWAT, I WANT TO DO SOMETHING DIFFERENT YOU IDJIT
IF YOU KNOW A FUCKING BETTER WAY TO KEEP ALL THE PLAYERS UNNASIGNED FOR 30 FUCKING SECONDS AFTER MAP CHANGE AND THEN JOIN THEM ALL EQUALLY IN TEAMS AT THE SAME TIME WITHOUT OVERFLOWING, I AM FUCKING LISTENING, GTFO
__________________
Depresie is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 07-01-2016 , 02:38   Re: Overflow scenario?
Reply With Quote #17

@Depresie you can just change model for all players at one time via command.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-01-2016 , 02:48   Re: Overflow scenario?
Reply With Quote #18

I don't want to change the model for all the players

I just want to keep them unasigned after map change, i managed to do that

Then after 30 seconds i want the server to automatically assign them to CT/T teams at the same time without causing overflow ( cs_set_user_team won't work here because as stated by arkshine the players must have their teams and classes selected before using it on them)

All i want is an answer to the question above, if i send them to teams with a delay of 0.05 between each player, using set_task, will it avoid overflowing?
__________________

Last edited by Depresie; 07-01-2016 at 02:53.
Depresie is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 07-01-2016 , 05:16   Re: Overflow scenario?
Reply With Quote #19

Delay is only a temporary fix.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 07-22-2016 , 13:58   Re: Overflow scenario?
Reply With Quote #20

So let my understand, do you wanna keep player in 'unnasigned' mod for 30 seconds .. after map change?


After map change ( In the first or second round ) just move all players to spectator not unnasigned mod, make a task for 30 seconds to move them back or random it's easy , Anyway i have a question, if you don't 'have how to test' and you don't now if your method will work because you don't have how to test it .... How do you know that's cause an overflow? :-?
__________________
Project: Among Us

Last edited by Craxor; 07-22-2016 at 14:00.
Craxor is offline
Send a message via ICQ to Craxor
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 21:03.


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