Jump to content
  • 0

waiting room with server time


caspa

Question


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

how to create a waitingroom that display the server time


[ Clock : 03:29 49s PM  ] -- i wan't the seconds to be running... like
[ Clock : 03:29 50s PM  ]
[ Clock : 03:29 51s PM  ]

[ Clock : 03:29 52s PM  ]

[ Clock : 03:29 53s PM  ]

[ Clock : 03:29 54s PM  ]

[ Clock : 03:29 55s PM  ]

[ Clock : 03:29 56s PM  ]

[ Clock : 03:29 57s PM  ]

[ Clock : 03:29 58s PM  ]

[ Clock : 03:29 59s PM  ]

[ Clock : 03:30 00s PM  ]

post-3034-0-23277900-1362814344_thumb.jpg

Edited by caspa
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

prontera,155,181,5	script	Sample	1002,{
end;

OnInit:
while( 1 ){
	delwaitingroom;
	waitingroom " "+gettimestr( "%H:%M:%S %p",21 ),0;
	sleep 1000;
}
end;
}

refer Gettimestr

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  


prontera,149,194,5 script Server Time(+8GMT) 837,{

end;

OnInit:

while(1) {

set .@hour,gettime(3);

set .@minute,gettime(2);

delwaitingroom;

waitingroom "Clock "+(.@hour > 12?""+(.@hour-12)+":"+(.@minute >= 10?""+.@minute+"":"0"+.@minute+"")+" PM":""+.@hour+":"+(.@minute >= 10?""+.@minute+"":"0"+.@minute+"")+" AM")+"",0;

sleep 59000;

}

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

i tried urs but its not showing any seconds..... if possible i would like a real clock waitingroom... 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

prontera,149,194,5	script	Server Time(+8GMT)	837,{

	end;
OnInit:
while(1) {
set .@hour,gettime(3);
set .@minute,gettime(2);
delwaitingroom;
waitingroom "Clock "+(.@hour > 12?""+(.@hour-12)+":"+(.@minute >= 10?""+.@minute+"":"0"+.@minute+"")+" PM":""+.@hour+":"+(.@minute >= 10?""+.@minute+"":"0"+.@minute+"")+" AM")+"",0;
sleep 59000;
    }
}

 

its work but like the topic owner request.. the second is not running

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


prontera,149,194,5 script Server Time(+8GMT) 837,{

end;

OnInit:

while(1) {

set .@h, gettime(3);

set .@m, gettime(2);

set .@s, gettime(1);

delwaitingroom;

waitingroom "Clock: "+ ( .@h > 12 ? .@h -12 : .@h ) +":"+ ( .@m >= 10 ? .@m : "0"+ .@m ) +" "+ ( .@s >= 10 ? .@s : "0"+ .@s ) +" "+ ( .@h > 12 ? "PM" : "AM" ),0;

sleep 998;

}

}

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  194
  • Topics Per Day:  0.04
  • Content Count:  499
  • Reputation:   3
  • Joined:  03/11/12
  • Last Seen:  

yes.... that's what i'm talking about.... Thank you.. capuche [solved]

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

O_o gettimestr is a better solution

Thanks for reminds me

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...