As my sentence says, The script should only count the time when your ONLINE.
and to show ur ingame age you should write a command like .checkmyage
it should also be in minutes
Please help?
Code: Select all
ThanksCode: Select all
ThanksCode: Select all
program onlogoff(who)
var acct := FindAccount(who.acctname);
acct.setprop("LastLogin", readGameclock());
var sessiontime := ReadGameClock() - GetObjProperty(who,"logontime");
var timer := GetObjProperty(who,"onlinetimer");
if(!timer)
timer := 0;
endif
SetObjProperty(who,"onlinetimer",timer+sessiontime);
EraseObjProperty(who,"LoggedIn");