• Shoutbox
    Active Users: 0
     
  • Notice: N/A
    Loading...
 
  • Active Users
     
  • There are currently no users chatting.
 
Results 1 to 7 of 7
  1. #1

    Looking For Time - Clock Mod In MOH:AA

    Hi mates
    I'm Looking for MOD which I Can Put the time and Clock in my server !
    Attached Images Attached Images
    Greetings : -{[T_P]}- BeroO -{[CF]}-
    the-pharaohs.enjin.com/

  2. #2
    As i remember this comes with all the new features from reborn patch.

    local.time = gettime 0


    So you need to call :

    Code:
    Inside a loop (WHILE (1) command) call all these commands:
    local.time = gettime 0
    huddraw_virtualsize XXX
    huddraw_align XXX
    huddraw_font XXX
    huddraw_rect XXX
    huddraw_color XXX
    huddraw_alpha XXX
    huddraw_string XXX (local.time)
    XXX = values to place the message on the screen.

    This comes from Reborn Scripting Commands website:

    Code:
     
    gettime
    
    ( Integer zero )
    
    {
    
    
    Gets current time in format: H:M:S
    Example:
    Code:
    
    local.time = gettime 0
    
    or
    
    local.time = gettime(0)
    
    Result:
    Code:
    
    String with current time.
    
    
    }
    
    
    
    ScriptThread -> Listener -> Class
    
    gettimezone
    
    ( Integer zero )
    
    {
    
    
    Gets current time zone.
    Example:
    Code:
    
    local.timezone = gettimezone 0
    
    or
    
    local.timezone = gettimezone(0)
    
    Result:
    Code:
    
    Integer value that represents current time zone.
    eg. 2 = GMT +2
    
    
    }

  3. #3

    Unhappy

    Quote Originally Posted by PacRac View Post
    As i remember this comes with all the new features from reborn patch.

    local.time = gettime 0


    So you need to call :

    Code:
    Inside a loop (WHILE (1) command) call all these commands:
    local.time = gettime 0
    huddraw_virtualsize XXX
    huddraw_align XXX
    huddraw_font XXX
    huddraw_rect XXX
    huddraw_color XXX
    huddraw_alpha XXX
    huddraw_string XXX (local.time)
    XXX = values to place the message on the screen.

    This comes from Reborn Scripting Commands website:

    Code:
     
    gettime
    
    ( Integer zero )
    
    {
    
    
    Gets current time in format: H:M:S
    Example:
    Code:
    
    local.time = gettime 0
    
    or
    
    local.time = gettime(0)
    
    Result:
    Code:
    
    String with current time.
    
    
    }
    
    
    
    ScriptThread -> Listener -> Class
    
    gettimezone
    
    ( Integer zero )
    
    {
    
    
    Gets current time zone.
    Example:
    Code:
    
    local.timezone = gettimezone 0
    
    or
    
    local.timezone = gettimezone(0)
    
    Result:
    Code:
    
    Integer value that represents current time zone.
    eg. 2 = GMT +2
    
    
    }
    @PacRac It don't want to work :'(
    Code:
     main:
    	while(1)
    	{
    	wait 1
    			local.time = gettime 0
    			huddraw_align 176 "center" "bottom"
    			huddraw_font 176 "facfont-20"
    			huddraw_rect 176 1 -86 260 1
    			huddraw_color 176 1 1 1 // change color here
    			huddraw_alpha 176 "1"
    			huddraw_string 176 "(local.time)"
    	}
    	wait 1
    end

    and i saved it in PK3 file and i executed it from DMPrecache what's wrong i did ?
    Last edited by BeroO; 06-30-2018 at 02:03 AM.
    Greetings : -{[T_P]}- BeroO -{[CF]}-
    the-pharaohs.enjin.com/

  4. #4
    You have done wrong this:

    Code:
    huddraw_string 176 "(local.time)"
    Needs to be without " and ) like this:

    Code:
    huddraw_string 176 local.time

  5. #5

    Unhappy

    Quote Originally Posted by DoubleKill View Post
    You have done wrong this:

    Code:
    huddraw_string 176 "(local.time)"
    Needs to be without " and ) like this:

    Code:
    huddraw_string 176 local.time
    Thank you @DoubleKill for ur reply but it still didn't work

    Note: The Steps What i did:
    Code:
    main:
    	while(1)
    	{
    	wait 1
    			local.time = gettime 0
    			huddraw_align 157 "center" "bottom"
    			huddraw_font 157 "facfont-20"
    			huddraw_rect 157 1 -86 260 1
    			huddraw_color 157 1 1 1 // change color here
    			huddraw_alpha 157 "1"
    			huddraw_string 157 local.time
    	}
    	wait 1
    end

    1- i saved the script in Global/clock.scr pk3 file Behind reborn patch
    2- then i executed it From DMPrecache
    Code:
    exec global/clock.scr
    1.jpg
    3- and i changed indexes many times coz if the last index working in another one and the rect in the center of server and i'll move it later but see if it will work or no

    2.jpg


    but didn't work can someone trying to run this script and tell me if he succeeded or not

    Last edited by BeroO; 06-30-2018 at 02:42 PM.
    Greetings : -{[T_P]}- BeroO -{[CF]}-
    the-pharaohs.enjin.com/

  6. #6
    Is working on my local server.

    Theres something is conflicting with him or is not let him run.

  7. #7
    Quote Originally Posted by DoubleKill View Post
    Is working on my local server.

    Theres something is conflicting with him or is not let him run.
    Thank you very much Double Kill there was mistake in my DMPrecache Mod "IP2Co" Was overhead of this script and i fixed it and it is working now and i added (the date too) but something strange the font is too huge size more than normal there is difference between my server and server -=[[ETT]]=-
    note: i tried if the resolution which make huge size of font the but it isn't which make this , and Purple Elephant said to me to add
    PHP Code:
    huddraw_virtualsize 157 1 
    and it didn't work too and i moved the execute this script from DMPrecache up to level waittill spawn and nothing change
    PHP Code:
    main:
        while(
    1)
        {
        
    wait 1
                local
    .time gettime (0)
                
    huddraw_align 176 "center" "bottom"
                
    huddraw_font 176 "facfont-20"
                
    huddraw_rect 176 395 -15 260 1
                huddraw_color 176 0.6 0.5 0 
    // change color here
                
    huddraw_alpha 176 1
                huddraw_virtualsize 176 1
                huddraw_string 176 local
    .time
        
    }
        
    wait 1
    end 
    PHP Code:
    main:
        while(
    1)
        {
        
    wait 1
                huddraw_align 177 
    "center" "bottom"
                
    huddraw_font 177 "facfont-20"
                
    huddraw_rect 177 315 -15 260 1
                huddraw_color 177 0.6 0.5 0 
    // change color here
                
    huddraw_alpha 177 1
                huddraw_virtualsize 177 1
                huddraw_string 177 
    "(EGY) Time: "
        
    }
        
    wait 1
    end 
    PHP Code:
    main:
        while(
    1)
        {
        
    wait 1
                local
    .date getdate (0)
                
    huddraw_align 178 "right" "top"
                
    huddraw_font 178 "facfont-20"
                
    huddraw_rect 178 -140 53 14 14
                huddraw_color 178 0.6 0.5 0 
    // change color here
                
    huddraw_alpha 178 1
                huddraw_virtualsize 176 1
                huddraw_string 178 local
    .date
        
    }
        
    wait 1
    end 
    01.jpg 2.jpg 24.jpg

    Last edited by BeroO; 07-01-2018 at 02:35 AM.
    Greetings : -{[T_P]}- BeroO -{[CF]}-
    the-pharaohs.enjin.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •