- 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