[ACS] HUB System

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Seven9
New User
Posts: 2
Joined: Thu Nov 23, 2017 2:10 pm

[ACS] HUB System

#1

Post by Seven9 » Thu Nov 23, 2017 2:31 pm

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. :)

skaarjman
New User
Posts: 9
Joined: Thu Nov 30, 2017 9:53 pm

[ACS] Re: HUB System

#2

Post by skaarjman » Thu Dec 07, 2017 10:23 pm

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

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
}

User avatar
Seven9
New User
Posts: 2
Joined: Thu Nov 23, 2017 2:10 pm

[ACS] Re: HUB System

#3

Post by Seven9 » Thu Dec 14, 2017 6:23 pm

Thanks for Advance, i will try it on Testing map. :)

Post Reply