yuhsing

Untitled

Dec 14th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1.  
  2. - script Sameple#countdown -1,{
  3. OnInit:
  4. OnClock2058:
  5. setarray .map$[0],"prtg_cas03","prtg_cas01";
  6. .countdown = gettimetick(2) + 5;
  7.  
  8. .map_size = getarraysize( .map$ );
  9. for( .@i = 0; .@i < .map_size; .@i++ ){
  10. setmapflag .map$[.@i],mf_loadevent;
  11. setd( ".timer_"+.map$[.@i] ),1;
  12. }
  13. end;
  14.  
  15. OnPCLoadMapEvent:
  16. if( getd( ".timer_"+strcharinfo(3) ) && gettimetick(2) < .countdown ){
  17. .@time = ( .countdown - gettimetick(2) );
  18. // message strcharinfo(0),"Time Refresh : "+.@time;
  19. showdigit ~.@time,2;
  20. sleep2 ( .@time * 1000 );
  21. showdigit 0,3;
  22. }
  23. end;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment