Code:
public static void Rules(TextDrawingArea[] tda)
{
RSInterface tab = addTabInterface(17250);
addSprite(17251, 0, "Interfaces/Rules/WELCOME");
addHoverButton(17252, "Interfaces/Rules/SPRITE", 6, 78, 39, "Accept", -1, 17253, 1);
addHoveredButton(17253, "Interfaces/Rules/SPRITE", 7, 78, 39, 17254);
addHoverButton(17255, "Interfaces/Rules/SPRITE", 6, 78, 39, "Decline", -1, 17256, 1);
addHoveredButton(17256, "Interfaces/Rules/SPRITE", 7, 78, 39, 17257);
addText(17800, "Accept", tda, 0, 0x33ff00, false, true);
addText(17801, "Decline", tda, 0, 0xff0000, false, true);
addText(17802, "Rules of Your server:", tda, 2, 0xff981f, false, true);
addText(17803, "Failure to agree with the rules will get you banned", tda, 0, 0xff981f, false, true);
addText(17804, "", tda, 2, 0xff981f, false, true);
addText(17805, "", tda, 0, 0xFF0000, false, true);
addText(17806, "", tda, 0, 0xFFFF00, false, true);
addText(17807, "", tda, 0, 0x006AFF, false, true);
addText(17808, "", tda, 2, 0xff981f, false, true);
addText(17809, "", tda, 0, 0xff981f, false, true);
addText(17810, "", tda, 0, 0xff981f, false, true);
addText(17811, "", tda, 0, 0xff981f, false, true);
tab.totalChildren(18);
tab.child(0, 17251, 0, 0);
tab.child(1, 17252, 140, 276);
tab.child(2, 17253, 140, 276);
tab.child(3, 17255, 280, 276);
tab.child(4, 17256, 280, 276);
tab.child(5, 17800, 159, 285);
tab.child(6, 17801, 297, 285);
tab.child(7, 17802, 22, 37);
tab.child(8, 17803, 210, 40);
tab.child(9, 17804, 26, 64);
tab.child(10, 17805, 26, 79);
tab.child(11, 17806, 26, 91);
tab.child(12, 17807, 26, 106);
tab.child(13, 17808, 26, 118);
tab.child(14, 17809, 26, 133);
tab.child(15, 17810, 26, 145);
tab.child(16, 17811, 26, 160);
tab.child(17, 14000, 0, 58);
tab = addTabInterface(14000);
tab.width = 476;
tab.height = 213;
tab.scrollMax = 405;
for(int i = 14001; i <= 14030; i++){
addText(i, "", tda, 1, 0xffffff, false, true);
addText(14008, "", tda, 2, 0xff981f, true, true);
addText(14009, "", tda, 0, 0xff981f, true, true);
addText(14011, "", tda, 2, 0xff981f, true, true);
addText(14012, "", tda, 0, 0xff981f, true, true);
addText(14014, "", tda, 2, 0xff981f, true, true);
addText(14015, "", tda, 0, 0xff981f, true, true);
addText(14017, "", tda, 2, 0xff981f, true, true);
addText(14018, "", tda, 0, 0xff981f, true, true);
addText(14020, "", tda, 2, 0xff981f, true, true);
addText(14021, "", tda, 0, 0xff981f, true, true);
addText(14023, "", tda, 2, 0xff981f, true, true);
addText(14024, "", tda, 0, 0xff981f, true, true);
addText(14026, "", tda, 2, 0xff981f, true, true);
addText(14027, "", tda, 0, 0xff981f, true, true);
}
tab.totalChildren(30);
int Child = 0;
int Y = 5;
for(int i = 14001; i <= 14030; i++){
tab.child(Child, i, 248, Y);
Child++;
Y += 13;
}
}