Jump to content

Question

4 answers to this question

Recommended Posts

  • 0
Posted
OnPCLoginEvent:
	@online_time = gettimetick(2);
	end;
	
OnPCLogoutEvent:
	#total_online_time += ( gettimetick(2) - @online_time ); 
	end;

i kneed to get te var right away,

not only when they logout :(

will ontimer work?

Im redo my script like this:

OnPCLoginEvent:
if(!#login){
#login = gettimetick(2);}
end;

OnPCLogoutEvent:
#logout = gettimetick(2);
end;

set .@online, gettimetick(2)- #login -(gettimetick(2)-#logout);
if( .@online > 3600){
mes"ok";
close;}
else{
set .@left, .@online/60;
mes ""+.@left+" minutes left."
close;
}

is this ok?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...