How To Add Roles For Your Agar.io Private Server - Tutorial

Channel:
Subscribers:
830
Published on ● Video Link: https://www.youtube.com/watch?v=kwUbO3czJT0



Game:
Agar.io (2015)
Category:
Tutorial
Duration: 14:59
1,384 views
33


How To Add Roles For Your Agar io Priavte Server Tutorial.
In this tutorial I'm making a new Role called SUP, I want SUP to be a SUPERVISOR.
The Role will be allowed to do: Killall, Minion, Help and Status.

Friends:
Kake: http://bit.ly/YT-Kake
AlexHGaming: https://www.youtube.com/channel/UCFYFShs-wwEnB4oi3KX3UWQ/

Links:
tutorial Cheat Sheet: https://goo.gl/USZgz7
updated PlayerCommand.js: https://goo.gl/RkcYVU
Server: Edit these files:
UserRoleEnum.js /src/enum/ folder
userRoles.json /src/enum/ folder
PlayerCommand.js /src/modules/ folder

Site: Edit this file:
main_out.js /assets/js/ folder

Open UserRoleEnum.js make a new line on Line 13 add this:
define("SUP", 3); // supervisor

Open userRoles.json make a new line on Line 14 add this:
{
"ip":"",
"password":"sup",
"role":"SUP",
"name":"Supervisor Bitch"
},

Open PlayerCommand.js add SUP to any command you want him to be able to do.
In this tutorial I'm allowing Killall, Minion, Help and Status .

The Killall command has been merged recently.
Thanks to AlexHGaming for helping me with the code and doing the Pull Request
Copy it from here: https://goo.gl/RkcYVU
Copy all and replace all in your file PlayerCommand.js.
Save.

In PlayerCommand.js make a new line on line 64 and add this:

if (this.playerTracker.userRole == UserRoleEnum.SUP) { this.writeLine("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
this.writeLine("/skin %shark - change skin");
this.writeLine("/kill - self kill");
this.writeLine("/killall - kills everyone.")
this.writeLine("/help - this command list");
this.writeLine("/id - Gets your playerID");
this.writeLine("/minion - gives yourself or other player minions");
this.writeLine("/minion remove - removes all of your minions or other players minions");
this.writeLine("/status - Shows Status of the Server");
this.writeLine("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}

Allow Killall, scroll down to line 136 and add this after MODER:
&& this.playerTracker.userRole != UserRoleEnum.SUP

Allow Minion, scroll down to line 219 and add this after MODER:
&& this.playerTracker.userRole != UserRoleEnum.SUP

Allow Status, scroll down to line 287 and add this after MODER:
&& this.playerTracker.userRole != UserRoleEnum.SUP

Save and start your server

Edit your site's main_out.js file
Your main_out.js file may not match mine if you've done a few edits. Just make sure to put the lines in the right places.

Scroll down to line 106, make a new line add this:
sup: false,

Scroll down to line 146, make a new line add this:
sup = !!(flags & 0x30);

Scroll down to line 151, make a new line add this:
if (sup) name = "[SUP] " + name;

Scroll down to line 159, make a new line add this;
sup: sup,

Scroll down to line 394, make a new line add this:
sup: false,

Scroll down to line 412, make a new line add this:
sup: false,

Scroll down line 421, make a new line add this:
sup: false,

Scroll down to line 430, make a new line add this:
sup: false,

Save and upload to your site. Rename the old main_out.js file 1st so you have a copy in case you mess up.







Tags:
how to add roles agario private server
MOD
ADMIN
USER
GUEST
GKClan
Private Server
Agario
multiogar
github
multiogar edited
ultrasplit
playercommand
killall command
roles
cowpitsrules
chat commands
cigar client
private site



Other Statistics

Agar.io Statistics For cowpits

There are 102,874 views in 41 videos for Agar.io. His channel currently has around 13 hours worth of content for Agar.io, or 50.95% of the total watchable video on cowpits's YouTube channel.