Nickelz Posted December 13, 2012 Share Posted December 13, 2012 السسلآآم عليكم ورحمة الله وبركاته شبـآآب ابي كود اذا واحد كتب بـ آف 8 مثلا Time يطلع لهه الوقت اللي من وضيفة setTimer وششكراا Link to comment
./BlackBird# Posted December 13, 2012 Share Posted December 13, 2012 اذا تقصد كم باقي من الوقت استخدم ذذ getTimerDetails Link to comment
Micro Posted December 13, 2012 Share Posted December 13, 2012 (edited) سلام عليكم اولا يجب استخدام getRealTime() وظيفته الحصول على وقت الاصلي او الحقيقي وهدة الكود عملتلك اياه ادة واحد كتب بشات يطلع وقت الي كتبه function chat (msg,msgty) if msg then mymsg = msg name= getPlayerName(source) thetime = getRealTime() h = thetime.hour m = thetime.minute outputChatBox(""..name.." : "..mymsg.." at "..h..":"..m.."") cancelEvent() end end addEventHandler ("onPlayerChat",getRootElement() , chat) Edited December 13, 2012 by Guest Link to comment
Micro Posted December 13, 2012 Share Posted December 13, 2012 هدة الكود كمان عملتلك ياه function chat (cmd) thetime = getRealTime() h = thetime.hour m = thetime.minute s = thetime.second outputChatBox("the time is:"..h..":"..m..":"..s.."") end addCommandHandler("a",chat) Link to comment
3NAD Posted December 13, 2012 Share Posted December 13, 2012 سلام عليكماولا يجب استخدام getRealTime() وظيفته الحصول على وقت الاصلي او الحقيقي وهدة الكود عملتلك اياه ادة واحد كتب بشات يطلع وقت الي كتبه function chat (msg,msgty) if msg then mymsg = msg name= getPlayerName(source) thetime = getRealTime() h = thetime.hour m = thetime.minutes outputChatBox(""..name.." : "..mymsg.." at "..h..":"..m.."") cancelEvent() end end addEventHandler ("onPlayerChat",getRootElement() , chat) function chat ( msg ) if msg ~= " " then name = getPlayerName ( source ) r, b, g = getPlayerNametagColor ( source ) thetime = getRealTime ( ) h = thetime.hour m = thetime.minute outputChatBox ( "["..h..":"..m.."] "..name..": #FFffFF"..msg, root, r, b, g, true ) cancelEvent ( ) end end addEventHandler ( "onPlayerChat", root, chat ) Link to comment
Micro Posted December 13, 2012 Share Posted December 13, 2012 اها شكرا للتصحيح minute تم تعديلها Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now