Jump to content
  • 0
Myth

Attendance Script

Question

-	script	AttendanceScript	-1,{OnPCLoginEvent:    // last login was BEFORE today    if (#lastDayOnline < gettimetick(2)/86400) {	                // last login was exactly YESTERDAY, set consecutive_days +1        if (#lastDayOnline == (gettimetick(2)/86400 - 1))            set #consecutive_days, #consecutive_days+1;        else    // reset their streak to 1            set #consecutive_days, 1;         set #lastDayOnline, gettimetick(2)/86400;            set #CASHPOINTS, #CASHPOINTS + 2;        dispbottom "Gained 2 HPRO Points.      Total = " + #CASHPOINTS;        // check for 7-day streak        if (#consecutive_days % 7 == 0){            set #CASHPOINTS, #CASHPOINTS + 50;        // Jellopy	dispbottom "Gained 50 HPRO Points.      Total = " + #CASHPOINTS;        // check for 30-day streak        if (#consecutive_days % 30 == 0){            set #CASHPOINTS, #CASHPOINTS + 200;        // Jellopy        dispbottom "Gained 200 HPRO Points.      Total = " + #CASHPOINTS;        // save today as the Last Day they were Online    }       }    }	    end;} 

can someone fix this? its a daily attendance

 

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

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

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.