Jump to content

Help in Logo!


E-mail

Recommended Posts

Hi all the script works fine but i want it Disappear After 10 sec.... :mrgreen:

The Code !

local rootElement = getRootElement() 
local screenWidth,screenHeight = guiGetScreenSize() 
  
  
function renderDisplay ( ) 
    local seconds = getTickCount() / 1000 
    local angle = math.sin(seconds) * 80 
    dxDrawImage ( screenWidth/2 - 50, 0, 642, 204, 'b_logo.png', angle, 0, -120 ) 
end 
  
  
function HandleTheRendering ( ) 
    addEventHandler("onClientRender",rootElement, renderDisplay) 
end 
addEventHandler("onClientResourceStart",resourceRoot, HandleTheRendering) 

Link to comment
  • Replies 63
  • Created
  • Last Reply

Top Posters In This Topic

I already done this , but that will not work , because like you said i dont have dxDrawText .

Here :

local rootElement = getRootElement() 
local screenWidth,screenHeight = guiGetScreenSize() 
  
GUIEditor_Label = {} 
  
GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
guiSetFont(GUIEditor_Label[1],"clear-normal") 
addEventHandler("onPlayerJoin", rootElement,GUIEditor_Label[1]) 
end) 
setTimer ( GUIEditor_Label[1], guiSetVisible(GUIEditor_Label, false ,rootElement) end , 5000 , 1 )  
  

Yep and there is an error on 12 line , but that will not work anyway.

Link to comment
local screenWidth,screenHeight = guiGetScreenSize() 
  
GUIEditor_Label = {} 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function ()  
GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
guiSetFont(GUIEditor_Label[1],"clear-normal") 
end) 
  
setTimer ( guiSetVisible, 5000, 1, GUIEditor_Label, false)  

You had MANY mistakes in the code, try to pay more attention.

Link to comment
local screenWidth,screenHeight = guiGetScreenSize() 
  
GUIEditor_Label = {} 
  
function lol () 
GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
guiSetFont(GUIEditor_Label[1],"clear-normal") 
setTimer ( GUIEditor_Label[1], 5000, 1, guiSetVisible, false) 
end 
addEventHandler("onClientResourceStart",getRootElement(), lol ) 

EDIT : I FIXED IT

Link to comment

You put it vice versa.

local screenWidth,screenHeight = guiGetScreenSize() 
  
GUIEditor_Label = {} 
  
function lol () 
GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
guiSetFont(GUIEditor_Label[1],"clear-normal") 
setTimer ( guiSetVisible, 5000, 1, GUIEditor_Label[1], false) 
end 
addEventHandler("onClientResourceStart",getRootElement(), lol ) 

Link to comment

Bad argument on line 12

Here :

local screenWidth,screenHeight = guiGetScreenSize() 
  
GUIEditor_Label = {} 
  
function lol () 
GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
guiSetFont(GUIEditor_Label[1],"clear-normal") 
fadeCamera(lol, false, 1.0,0,0,0) 
setTimer( fadeCamera, 10000, 1,GUIEditor_Label[1], false) 
setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) 
end 
addEventHandler("onClientResourceStart",getRootElement(), lol ) 

Link to comment

wtf fadeCamera for a label?

  
    GUIEditor_Label = {} 
      
function lol () 
    GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
    guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
    guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
    guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
    guiSetFont(GUIEditor_Label[1],"clear-normal") 
    fadeCamera(false,1.0) 
    setTimer( fadeCamera, 10000,1,true) 
    setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) 
end 
addEventHandler("onClientResourceStart",getRootElement(), lol ) 

Link to comment

Okay, but fadeCamera doesnt works still on join , it works just when i restart resource .

  
    GUIEditor_Label = {} 
    fadeCamera = true  
      
function lol () 
    GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
    guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
    guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
    guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
    guiSetFont(GUIEditor_Label[1],"clear-normal") 
    fadeCamera(true,5.0) 
    setTimer( fadeCamera, 10000,1,true) 
    setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) 
end 
addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),lol) 

Link to comment

No errors , but script doesnt works .

Client:

  
    GUIEditor_Label = {} 
      
function lol () 
    GUIEditor_Label[1] = guiCreateLabel(0.4063,0.3779,0.1531,0.209,"Welcome to our server ! Server is under construction at the moment , but feel free to play on it , expect more gamemodes from us , more features and much , much more ...",true) 
    guiLabelSetColor(GUIEditor_Label[1],0,255,0) 
    guiLabelSetVerticalAlign(GUIEditor_Label[1],"center") 
    guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",true) 
    guiSetFont(GUIEditor_Label[1],"clear-normal") 
    fadeCamera(false,1.0) 
    setTimer( fadeCamera, 10000,1,true) 
    setTimer ( guiSetVisible, 10000, 1, GUIEditor_Label[1], false) 
    triggerClientEvent("blurFade",getRootElement(),lol) 
end 

Server:

local fadeCamera = true 
  
function fade() 
fadeCamera(false,10.0) 
end 
  
addEventHandler("onPlayerJoin",getRootElement(),fade) 
addEvent( "blurFade",true ) 
addEventHandler("blurFade",getRootElement(),fade) 
  

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