yuhsing

Untitled

Nov 22nd, 2012
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1.  
  2. OnPcLoginEvent:
  3. if( getgmlevel() >= .allowgmlvl){
  4. query_sql "SELECT `read` FROM `request` WHERE `read`=0", @newmessages$;
  5. dispbottom "You got ["+getarraysize(@newmessages$)+"] unread Request(s).";
  6. }
  7.  
  8. if (#lastDayOnline < gettimetick(2)/86400) {
  9. if (#lastDayOnline == (gettimetick(2)/86400 - 1)){
  10. set #consecutive_days, #consecutive_days+1;
  11. }else if (#consecutive_days % 7 == 0){
  12. set #CASHPOINTS, #CASHPOINTS + 50;
  13. dispbottom "Gained 50 Points. Total = " + #CASHPOINTS;
  14. }else if (#consecutive_days % 30 == 0){
  15. set #CASHPOINTS, #CASHPOINTS + 200;
  16. dispbottom "Gained 200 Points. Total = " + #CASHPOINTS;
  17. }else{
  18. set #consecutive_days, 1;
  19. set #lastDayOnline, gettimetick(2)/86400;
  20. set #CASHPOINTS, #CASHPOINTS + 2;
  21. dispbottom "Gained 2 Points. Total = " + #CASHPOINTS;
  22. }
  23. }
  24. end;
Advertisement
Add Comment
Please, Sign In to add comment