Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - script Sameple#countdown -1,{
- OnInit:
- OnClock2058:
- setarray .map$[0],"prtg_cas03","prtg_cas01";
- .countdown = gettimetick(2) + 5;
- .map_size = getarraysize( .map$ );
- for( .@i = 0; .@i < .map_size; .@i++ ){
- setmapflag .map$[.@i],mf_loadevent;
- setd( ".timer_"+.map$[.@i] ),1;
- }
- end;
- OnPCLoadMapEvent:
- if( getd( ".timer_"+strcharinfo(3) ) && gettimetick(2) < .countdown ){
- .@time = ( .countdown - gettimetick(2) );
- // message strcharinfo(0),"Time Refresh : "+.@time;
- showdigit ~.@time,2;
- sleep2 ( .@time * 1000 );
- showdigit 0,3;
- }
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment