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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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