Create a headless host with BOUNCE Help !!!

Talk about haxball in here, maps, sides, players, tactics, anything related to the game.

Create a headless host with BOUNCE Help !!!

Postby BRigorBR » April 27th, 2019, 3:48 am

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.
  • 0

BRigorBR
 
Posts: 5
News Articles: 0
Reputation: 0

Joined: April 27th, 2019, 3:22 am


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

Postby Anddy » April 27th, 2019, 9:20 am

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
  • 0

Anddy
 
Posts: 245
News Articles: 0
Reputation: 537

Joined: October 4th, 2015, 5:54 pm


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

Postby jasko » April 27th, 2019, 1:09 pm

  • 0

 
Never argue with an idiot. They will only bring you down to their level and beat you with experience.

Wise men speak because they have something to say, fools because they have to say something.

No one is more hated than he who speaks the truth.

Courage is knowing what not to fear.

Showing off is the fool's idea of glory.
User avatar
jasko
 
Posts: 347
News Articles: 0
Reputation: 582

Joined: April 3rd, 2016, 11:02 pm

Position: Attacking Midfielder

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

Postby Anddy » April 27th, 2019, 6:50 pm

He already did, watch comments jasko noob :p
  • 0

Anddy
 
Posts: 245
News Articles: 0
Reputation: 537

Joined: October 4th, 2015, 5:54 pm


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

Postby BRigorBR » April 28th, 2019, 2:32 am

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
  • 0

BRigorBR
 
Posts: 5
News Articles: 0
Reputation: 0

Joined: April 27th, 2019, 3:22 am


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

Postby BRigorBR » April 28th, 2019, 2:36 am

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.
  • 0

BRigorBR
 
Posts: 5
News Articles: 0
Reputation: 0

Joined: April 27th, 2019, 3:22 am


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

Postby Anddy » April 28th, 2019, 9:09 am

May I ask you the youtube channel ?
  • 0

Anddy
 
Posts: 245
News Articles: 0
Reputation: 537

Joined: October 4th, 2015, 5:54 pm



Return to General Haxball Discussion

Who is online

Users browsing this forum: No registered users and 9 guests