View Single Post
  #10  
Old 01-15-2002, 07:31 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Quote:
Originally posted by grim_squeaker_x
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.
Wow, really good! We think we may use that, with your permission, of course...
Reply With Quote