why would you want to boot your players after 30 mins..?
or for any matter that is..
|
|
Hi all i will be telling you how to make a logon time
the logon timer is for like if a player is on the server for more then 30min it wil kick them off
ok lets go for it
Step 1:
add this:
Code:public int settimer = 2000;
Step 2:
Find This
Then Add This Under itCode:public void process() {
Then Add This Under Process() {Code:settimer -= 1;
Ok thats your timer done now for it so players can see it if you what it hereCode:if (settimer <= 1) { savechar(); savesk(); savemoreinfo(); disconnected = true; }
Here a pic off it:
Step 3:
Add this
Step 4:Code:public void Logontimer() { setInterfaceWalkable(4970); sendQuest("@[email protected] Max Login Time", 4963); sendQuest("", 4964); sendQuest("@[email protected] [ "+settimer+" ]", 4965); sendQuest("", 4966); if(nonWild()) { sendQuest("@[email protected] | Safe |", 4967); } else if(inwildy2 && !nonWild()) { sendQuest("@[email protected] | wildy |", 4967);} sendQuest("", 4968); sendQuest("", 4969);}
Then add this under public void process() {
Code:Logontimer();
Have fun Codeing
why would you want to boot your players after 30 mins..?
or for any matter that is..

Well what i did was:
use the base of this code only made it like that it will only log the player out when it is standing still for 5 minutes.
Quite useful so nothing can happen to there accounts
| « Creating a RS private server | Server Status "Final Release" Done right » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |