Page 1 of 1

Create a headless host with BOUNCE Help !!!

PostPosted: April 27th, 2019, 3:48 am
by BRigorBR
I want to create a 24h room for haxball.com and I need a little help to edit a Headless Host script. I want to add the "Space Bounce" map without anyone else being able to change it, just the "Super Admin". This "Super Admins" command that I also need to know how to add it, please. I use translators and it gets very difficult to tune the commands, if possible, could anyone put them in order for me? here is the script link

https://pastebin.com/TXmqkBWm


I would be very grateful.

Re: Create a headless host with BOUNCE Help !!!

PostPosted: April 27th, 2019, 9:20 am
by Anddy
Good script, I wonder where did you get it :albino:

Basically you have to put your map's source code somewhere in the code, for example you'll have following this pseudocode
Code: Select all
var map = `blablahere'syourcode`

//and then in the event named onMapChange (i'm not sure it's called like that, just read the wiki)

room.onMapChange() = function(by, mapName) {
     // if the player is NOT a superAdmin, and he changes the map, the map set is the map you want
     if (!superAdmins.hasOwnProperty(by.name)){
           room.setCustomStadium(map);
     }
}

I'm on my phone, maybe you won't understand some stuff, ask me

Re: Create a headless host with BOUNCE Help !!!

PostPosted: April 27th, 2019, 1:09 pm
by jasko

Re: Create a headless host with BOUNCE Help !!!

PostPosted: April 27th, 2019, 6:50 pm
by Anddy
He already did, watch comments jasko noob :p

Re: Create a headless host with BOUNCE Help !!!

PostPosted: April 28th, 2019, 2:32 am
by BRigorBR
Thanks guys, you guys are awesome. But I was able to add the map together with the command to not change. It was this way.
Now I need help to add "confirmations" that are these login and password commands. for example: !John + "password"
And also how to add my "Super-ADMIN" login, where I can change maps and not be banned by other administrators. Please this is very important my nick in the game is "glaws™" the password you would put "123" after I change.

add this information in the script below please I will be very grateful

https://pastebin.com/ceVGCQty

Re: Create a headless host with BOUNCE Help !!!

PostPosted: April 28th, 2019, 2:36 am
by BRigorBR
Anddy wrote:Good script, I wonder where did you get it :albino:

Basically you have to put your map's source code somewhere in the code, for example you'll have following this pseudocode
Code: Select all
var map = `blablahere'syourcode`

//and then in the event named onMapChange (i'm not sure it's called like that, just read the wiki)

room.onMapChange() = function(by, mapName) {
     // if the player is NOT a superAdmin, and he changes the map, the map set is the map you want
     if (!superAdmins.hasOwnProperty(by.name)){
           room.setCustomStadium(map);
     }
}

I'm on my phone, maybe you won't understand some stuff, ask me



I got it from a friend of mine who owns a YouTube channel.

Re: Create a headless host with BOUNCE Help !!!

PostPosted: April 28th, 2019, 9:09 am
by Anddy
May I ask you the youtube channel ?