King12 Posted August 1, 2013 Share Posted August 1, 2013 السلام عليكم الفكره : يكون فيه لوحه يطلع آخر آمره دخل فيها اللاعب طبعاً آنا آحدد الحسابات , طبعا مقصد متى اخر مره دخل فيها بالتاريخ والوقت. يعني زي كذا Name Last Login King12 2/8/2013 Test11 27/7/2013 تكون بلوحه gui Link to comment
./BlackBird# Posted August 1, 2013 Share Posted August 1, 2013 (edited) سوها بنفسك "onPlayerLogout" getRealTime Edited August 1, 2013 by Guest Link to comment
#DRAGON!FIRE Posted August 1, 2013 Share Posted August 1, 2013 # اعتقد هذي الوظائف الي تستخدمها Event: onPlayerLogout getRealTime getTickCount guiSetText # { بس الي تطلبه ممكن يكون معقد شوية وفيها حسابات وضرب وقسمة } Link to comment
فاّرس Posted August 1, 2013 Share Posted August 1, 2013 روح شوف الادمنيه كيف مسوي تاريخ الرسائل ذذ Link to comment
./BlackBird# Posted August 1, 2013 Share Posted August 1, 2013 هذا فنكشن يجيب الوقت function Time() local time = getRealTime() local second,minute,hour,day,month,year = time.second,time.minute,time.hour,time.monthday ,time.month + 1,time.year + 1900 if hour <= 0 then x = "AM" else x = "PM" end hour = math.floor(hour / 12) - 1 if hour == 0 then hour = "12" end local time = math.floor(math.abs(hour))..":"..minute..":"..second.." "..tostring(x).." "..day.."/"..month.."/"..year return time end Link to comment
TAPL Posted August 1, 2013 Share Posted August 1, 2013 onPlayerLogin getRealTime setAccountData getAccountData getAccount getAccounts Link to comment
King12 Posted August 2, 2013 Author Share Posted August 2, 2013 timelabel = guiCreateLabel(240, 50, 70, 36, "Original:", false) function onPlayerQuit ( ) -- when a player leaves, store his current money amount in his account data local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then -- if the player is logged in local time = getRealTime() local hours = time.hour local minutes = time.minute setAccountData ( playeraccount, "king12.lastquit", playerlastquit ) -- save it in his account -- guiSetText(timelabel,'Your last visit:'..hours.. '' ..minutes) end end function onPlayerLogout (_, playeraccount ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then -- if the player is logged in local time = getRealTime() local hours = time.hour local minutes = time.minute setAccountData ( playeraccount, "king12.lastquit", playerlastquit ) -- save it in his account -- guiSetText(timelabel,'Your last visit:'..hours.. '' ..minutes) end end addEventHandler ( "onPlayerQuit", getRootElement ( ), onPlayerQuit ) addEventHandler ( "onPlayerLogout", getRootElement ( ), onPlayerLogout) function onPlayerLogin ( ) local playeraccount = getPlayerAccount ( source ) if ( playeraccount ) and not isGuestAccount ( playeraccount ) then getAccountData ( playeraccount, "king12.lastquit", playerlastquit ) guiSetText(timelabel,'Your last visit:'..hours..''..minutes) end end addEventHandler ( "onPlayerLogin", getRootElement ( ), onPlayerLogin) هذا اللي عرفت اسويه بس ماطلع عندي اخطاء بالديبوق ولا نوى يضبط Link to comment
King12 Posted August 2, 2013 Author Share Posted August 2, 2013 كوبي بست من الويكي يب Link to comment
Sora Posted August 2, 2013 Share Posted August 2, 2013 لول انا قبل كم يوم سويت سكربت قريب لـ فكرتك بس هو يحفظ الوقت الكلي بالايام والساعات والدقائق والثواني وزياده على هذا يحفظ الوقت الي كنت داخل فيه بهذا الترتيب yyyy/m/dd hh:mm:ss لما تدخل لحسابك يقولك الوقت الكلي الي كنت فيه بالسيرفر , وآخر مره سجلت فيها الدخول على حسابك * Your total time is 4 seconds and 0 minutes and 0 hours and 0 days. * Last login was in 2013/7/27 6:14:6 Link to comment
King12 Posted August 2, 2013 Author Share Posted August 2, 2013 لول انا قبل كم يوم سويت سكربت قريب لـ فكرتك بسهو يحفظ الوقت الكلي بالايام والساعات والدقائق والثواني وزياده على هذا يحفظ الوقت الي كنت داخل فيه بهذا الترتيب yyyy/m/dd hh:mm:ss لما تدخل لحسابك يقولك الوقت الكلي الي كنت فيه بالسيرفر , وآخر مره سجلت فيها الدخول على حسابك * Your total time is 4 seconds and 0 minutes and 0 hours and 0 days. * Last login was in 2013/7/27 6:14:6 ياليت تعطيني السكربت اذا انت نشرته ولا شي + ضيفني ع السكايب آبيك : King12pro Link to comment
فاّرس Posted August 2, 2013 Share Posted August 2, 2013 الحين انت تبيه كيف ؟ يعني تبي اذا سجلت الدخول يطلع لك اخر مره سجلت فيها ؟ ولا تبي تجيب اللاعبين متى آخر مره سجلوا ؟ + كيف تبيها جريد ليست ولا ؟ Link to comment
King12 Posted August 2, 2013 Author Share Posted August 2, 2013 الحين انت تبيه كيف ؟يعني تبي اذا سجلت الدخول يطلع لك اخر مره سجلت فيها ؟ ولا تبي تجيب اللاعبين متى آخر مره سجلوا ؟ + كيف تبيها جريد ليست ولا ؟ قريد ليست مهما كان لكن يكون فيه لوحه يفتحها الادمن واحدد حسابات انا بنفسي يطلع لي متى اخر مره دخلوا يفضل قريد ليست ^^ Link to comment
Sora Posted August 11, 2013 Share Posted August 11, 2013 https://community.multitheftauto.com/ind ... ls&id=7726 Link to comment
King12 Posted August 14, 2013 Author Share Posted August 14, 2013 https://community.multitheftauto.com/index.php?p=resources&s=details&id=7726 مَشْكُور مَاقصَرت 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