Hello, i need a HUB System, but i know how to run script if client connects to server.
But, how to make a HUB System, if are 6 players connected, script starts (Countdown).
How to make it?
Like MC Minigame HUB System (Waiting for players), not all, principe are on, if 16 players are connected, it starts a Countdown, a Countdown starts map + Vote system for maps. :)
[ACS] HUB System
[ACS] Re: HUB System
I don't know if it's what you want, but I would do it that way
Vote system is a bit harder but totally possible
Vote system is a bit harder but totally possible
Code: Select all
#define Triggercount 6
#define Countdown 3 //countdown duration in seconds
//must be OPEN, otherwise it will be clientside
Script 1 OPEN
{
int time;
while(PlayerCount() < Triggercount )
{
Printbold(s:"waiting for players: ",d:PlayerCount(),s:" / ",d:Triggercount);
Delay(35);
}
//all players connected, begin the countdown
for(int u=countdown;u>0;u--)
{
prinbold(s:"game will begin in ",d:u);
Delay(35);
}
//do stuff
}
[ACS] Re: HUB System
Thanks for Advance, i will try it on Testing map. :)