Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OnPcLoginEvent:
- if( getgmlevel() >= .allowgmlvl){
- query_sql "SELECT `read` FROM `request` WHERE `read`=0", @newmessages$;
- dispbottom "You got ["+getarraysize(@newmessages$)+"] unread Request(s).";
- }
- if (#lastDayOnline < gettimetick(2)/86400) {
- if (#lastDayOnline == (gettimetick(2)/86400 - 1)){
- set #consecutive_days, #consecutive_days+1;
- }else if (#consecutive_days % 7 == 0){
- set #CASHPOINTS, #CASHPOINTS + 50;
- dispbottom "Gained 50 Points. Total = " + #CASHPOINTS;
- }else if (#consecutive_days % 30 == 0){
- set #CASHPOINTS, #CASHPOINTS + 200;
- dispbottom "Gained 200 Points. Total = " + #CASHPOINTS;
- }else{
- set #consecutive_days, 1;
- set #lastDayOnline, gettimetick(2)/86400;
- set #CASHPOINTS, #CASHPOINTS + 2;
- dispbottom "Gained 2 Points. Total = " + #CASHPOINTS;
- }
- }
- end;
Advertisement
Add Comment
Please, Sign In to add comment