Jump to content

طلب عع سريع ’ يجيب تاريخ والساعه والدقيقه


Recommended Posts

سلام عليكم

طلب ابي كود يجيب التاريخ و الساعه والدقيقه

ماعرفته بالويكي + شفته في مودات واجد يحطون تاريخ لكن ماعرفت كيف ؟

وبدون مثال انا اسوي المثال , واطرحه وتشوفون الاخطأ

وهذا مثال عـ طلب

ksrWiFT.png

Edited by Guest
Link to comment

سويت الكود هذا

لكن ابيه يصير بـ 12 ساعه موب 24 ساعه

+ مايطلع لي السنه + الشهر

شوفوا

window = guiCreateWindow(429, 253, 247, 119, "Test ~", false) 
Label1 = guiCreateLabel(20, 35, 183, 17, "Time:", false, window) 
label2 = guiCreateLabel(16, 75, 221, 25, "Date:", false, window) 
  
function showtime () 
    local time = getRealTime() 
    local hours = time.hour 
    local minutes = time.minute 
    local years = time.year 
    local months = time.month 
    guiSetText ( Label1, "Time: "..hours..":"..minutes ) 
    guiSetText ( Label2, "Date:"..years..":"..months ) 
end 
addEventHandler ( "onClientRender",root, showtime ) 
  
guiSetVisible ( window,false ) 
  
function OnOpenWindow ( ) 
    guiSetVisible ( window,not guiGetVisible ( window ) ) 
    showCursor ( guiGetVisible ( window ) ) 
end 
  
bindKey ( "F7","down",OnOpenWindow ) 

Link to comment
ومشكور :D اوك بسوي مثال بروب

اذا تبية علىشان رمضان

ذا انا مسوية :)

gx, gy = guiGetScreenSize() 
GUIEditor = {
    label = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.label[1] = guiCreateLabel(gx - 50, 0, 144, 50, "رمضان", false)
        guiSetFont(GUIEditor.label[1], "default-bold-small")
        guiLabelSetColor(GUIEditor.label[1], 255, 0, 0)
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "left", true)    
    end
)
 
 
function ToggleTimer()
    DayTimer = setTimer (
        function()
    time = getRealTime()
    hours = time.hour - 12
    hours12 = time.hour
    minutes = time.minute
    second = time.second
    month = time.month
    day = time.monthday            
                   
    if ( month == 5 ) and ( day == 18 ) then            
                    guiSetText(GUIEditor.label[1], "")    -- 1 Day
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                    if ( minutes == 45 ) then
                        outputChatBox("")
                    end
            end
           
        elseif ( month == 5) and ( day == 19 ) then
                        guiSetText(GUIEditor.label[1], "") -- 2 Day
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 45 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 5 ) and ( day == 20 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 3 Day
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 45 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 5 ) and ( day == 21 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 4 Day
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 5 ) and ( day == 22 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 5 Day
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 5 ) and ( day == 23 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 6
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 5 ) and ( day == 24 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 7
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 5 ) and ( day == 25 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 8
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 5 ) and ( day == 26 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 9
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
 
        elseif( month == 5 ) and ( day == 27 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 10
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
           
 
        elseif( month == 5 ) and ( day == 28 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 11
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 47 ) then
                    outputChatBox("")
                end
            end
       
                   
        elseif( month == 5 ) and ( day == 29 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 12
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 47 ) then
                    outputChatBox("")
                end
            end
       
        elseif( month == 5 ) and ( day == 30 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 13
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 47 ) then
                    outputChatBox("")
                end
            end
       
 
        elseif( month == 6 ) and ( day == 1 ) then
                        guiSetText( GUIEditor.label[1], " " ) -- 14
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 47 ) then
                    outputChatBox("")
                end
            end
       
 
        elseif( month == 6 ) and ( day == 2 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 15
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 47 ) then
                    outputChatBox("")
                end
            end
       
 
 
        elseif( month == 6 ) and ( day == 3 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 16
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 47 ) then
                    outputChatBox("")
                end
            end
       
        elseif( month == 6 ) and ( day == 4 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 17
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 47 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 6 ) and ( day == 5 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 18
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 6 ) and ( day == 6 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 19
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
 
        elseif( month == 6 ) and ( day == 7 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 20
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 6 ) and ( day == 8 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 21
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
 
        elseif( month == 6 ) and ( day == 9 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 22
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 6 ) and ( day == 10 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 23
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 6 ) and ( day == 11 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 24
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 46 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 6 ) and ( day == 12 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 25
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 45 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 6 ) and ( day == 13 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 26
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 45 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 6 ) and ( day == 14 ) then
                        guiSetText( GUIEditor.label[1], "" ) -- 27
            if ( hours12 == 7 ) or ( hours24 == 7 ) then
                if ( minutes == 44 ) then
                    outputChatBox("")
                end
            end
 
        elseif( month == 6 ) and ( day == 15 ) then
                       
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...