Jump to content

Help Me! News


undefined

Recommended Posts

Hi Guys.

I did a design. 300000 milliseconds want it to appear but I couldn't.

KZM5VG.png

HD: http://i.hizliresim.com/eo0dZb.png

My Code:

local sWidth, sHeight = guiGetScreenSize()  
addEventHandler("onClientResourceStart", resourceRoot, 
    function()     
    end 
) 
  
addEventHandler("onClientRender", root, 
    function() 
        dxDrawImage((sWidth/2)-250, sHeight-sHeight-15, 160, 140, ":Jack/images/HubbubGames.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage((sWidth/2)+90, sHeight-sHeight-15, 160, 140, ":Jack/images/HubbubGames.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawLine((sWidth/2+120), sHeight-sHeight+65, (sWidth/2-120), sHeight-sHeight+65, tocolor(255, 255, 255, 255), 1, false) 
        dxDrawText("Welcome To", (sWidth/2), 0, (sWidth/2), 31, tocolor(255, 255, 255, 255),1.00, "bankgothic", "center", "top", false, false, false) 
        dxDrawText("Hubbub Games", (sWidth/2), 31, (sWidth/2), 62, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false) 
        dxDrawText("New Forum Adress:", (sWidth/2), 72, (sWidth/2), 89, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "top", false, false, false) 
        dxDrawText("www.HubbubGames.com", (sWidth/2), 89, (sWidth/2), 106, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "top", false, false, false) 
    end 
) 

Help Me Pls!!!

Edited by Guest
Link to comment

Try this:

local show = false 
local tick = getTickCount ( ) 
local endTick = nil 
addEventHandler("onClientRender", root, 
    function ( ) 
        if ( getTickCount ( ) - tick >= 300000 ) then 
            show = true 
            endTick = getTickCount ( ) + 30000 
            if ( getTickCount ( ) >= endTick ) then 
                show = false 
                tick = getTickCount ( ) 
            end 
        end 
        if ( show ) then  
            dxDrawImage((sWidth/2)-250, sHeight-sHeight-15, 160, 140, ":Jack/images/HubbubGames.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
            dxDrawImage((sWidth/2)+90, sHeight-sHeight-15, 160, 140, ":Jack/images/HubbubGames.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
            dxDrawLine((sWidth/2+120), sHeight-sHeight+65, (sWidth/2-120), sHeight-sHeight+65, tocolor(255, 255, 255, 255), 1, false) 
            dxDrawText("Welcome To", (sWidth/2), 0, (sWidth/2), 31, tocolor(255, 255, 255, 255),1.00, "bankgothic", "center", "top", false, false, false) 
            dxDrawText("Hubbub Games", (sWidth/2), 31, (sWidth/2), 62, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false) 
            dxDrawText("New Forum Adress:", (sWidth/2), 72, (sWidth/2), 89, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "top", false, false, false) 
            dxDrawText("www.HubbubGames.com", (sWidth/2), 89, (sWidth/2), 106, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "top", false, false, false) 
        end 
   end 
) 

Link to comment

Im added this code

local sWidth, sHeight = guiGetScreenSize() 

This is worked but after coming to the screen does not go anymore.

local sWidth, sHeight = guiGetScreenSize() 
  
local show = false 
local tick = getTickCount ( ) 
local endTick = nil 
addEventHandler("onClientRender", root, 
    function ( ) 
        if ( getTickCount ( ) - tick >= 300000 ) then 
            show = true 
            endTick = getTickCount ( ) + 30000 
            if ( getTickCount ( ) >= endTick ) then 
                show = false 
                tick = getTickCount ( ) 
            end 
        end 
        if ( show ) then 
            dxDrawImage((sWidth/2)-250, sHeight-sHeight-15, 160, 140, ":Jack/images/HubbubGames.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
            dxDrawImage((sWidth/2)+90, sHeight-sHeight-15, 160, 140, ":Jack/images/HubbubGames.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
            dxDrawLine((sWidth/2+120), sHeight-sHeight+65, (sWidth/2-120), sHeight-sHeight+65, tocolor(255, 255, 255, 255), 1, false) 
            dxDrawText("Welcome To", (sWidth/2), 0, (sWidth/2), 31, tocolor(255, 255, 255, 255),1.00, "bankgothic", "center", "top", false, false, false) 
            dxDrawText("Hubbub Games", (sWidth/2), 31, (sWidth/2), 62, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false) 
            dxDrawText("New Forum Adress:", (sWidth/2), 72, (sWidth/2), 89, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "top", false, false, false) 
            dxDrawText("www.HubbubGames.com", (sWidth/2), 89, (sWidth/2), 106, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "top", false, false, false) 
        end 
   end 
) 

...Sry my bad English...

Link to comment
Im added this code
local sWidth, sHeight = guiGetScreenSize() 

This is worked but after coming to the screen does not go anymore.

local sWidth, sHeight = guiGetScreenSize() 
  
local show = false 
local tick = getTickCount ( ) 
local endTick = nil 
addEventHandler("onClientRender", root, 
    function ( ) 
        if ( getTickCount ( ) - tick >= 300000 ) then 
            show = true 
            endTick = getTickCount ( ) + 30000 
            if ( getTickCount ( ) >= endTick ) then 
                show = false 
                tick = getTickCount ( ) 
            end 
        end 
        if ( show ) then 
            dxDrawImage((sWidth/2)-250, sHeight-sHeight-15, 160, 140, ":Jack/images/HubbubGames.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
            dxDrawImage((sWidth/2)+90, sHeight-sHeight-15, 160, 140, ":Jack/images/HubbubGames.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
            dxDrawLine((sWidth/2+120), sHeight-sHeight+65, (sWidth/2-120), sHeight-sHeight+65, tocolor(255, 255, 255, 255), 1, false) 
            dxDrawText("Welcome To", (sWidth/2), 0, (sWidth/2), 31, tocolor(255, 255, 255, 255),1.00, "bankgothic", "center", "top", false, false, false) 
            dxDrawText("Hubbub Games", (sWidth/2), 31, (sWidth/2), 62, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "top", false, false, false) 
            dxDrawText("New Forum Adress:", (sWidth/2), 72, (sWidth/2), 89, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "top", false, false, false) 
            dxDrawText("www.HubbubGames.com", (sWidth/2), 89, (sWidth/2), 106, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "top", false, false, false) 
        end 
   end 
) 

Up!

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...