So this is how it works. When they click Accept c.Noclip = 1; but then again when they logout and log back in the interface will show up again!!
Client.java
under the welcome message i have this!
Code:
if(Noclip == 0) {
getPA().showInterface(19050);
}
else {
getPA().showInterface(16200);
}
This is a Rule interface with Accept & Decline buttons!
ClickingButtons.java
Code:
case 74108://Accept
{
c.getPA().closeAllWindows();
c.sendMessage("@red@Thank you for Accepting these rules :) If you do not follow them you will get banned");
c.Noclip = 1;
break;
}
case 74112://Decline
c.logout();
break;
Playersave.java
Code:
characterfile.write("NOC = ", 0, 6);
characterfile.write(Integer.toString(p.Noclip), 0, Integer.toString(p.Noclip).length());
characterfile.newLine();
&&
} else if(token.equals("Noclip")) {
p.Noclip = Integer.parseInt(token2);