Quote:
Originally posted by Warcaptain
ok then..
use the var i did b4
then do..
onlinetime=(int(timevar)%60)-this.second;
|
That would mean everyone has the same online time :/
Anyhow...
NPC Code:
if (playerenters&&!(hasweapon(-OnlineTimeSystem))) toweapon -OnlineTimeSystem;
//#CLIENTSIDE
if ((created||timeout)&&isweapon) {
setstring client.seconds,#v((strtofloat(#s(client.seconds))+ 0.05)%60);
if (strtofloat(#s(client.seconds))==0) {
setstring client.seconds,#v(strtofloat((#s(client.minutes))+ 1)%60);
if (strtofloat(#s(client.minutes))==0) setstring client.hours,#v(strtofloat(#s(client.hours))+1);
}
timeout=0.05;
}
Would be an acceptable way of easily keeping track of the online time a player has, though it would reset if the player's account is reset.