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...