Jump to content

Help in Logo!


E-mail

Recommended Posts

Posted

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) 

  • Replies 63
  • Created
  • Last Reply

Top Posters In This Topic

Posted

Thx JR10

Thank you very much You are the best person in the Forum Assistant

I wish you success in the future

Nice to have someone Like you :)

Posted

Disable label? what do you mean?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Well, what he's using is DX drawing, you could use dxDrawText and copy the way he'd it.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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.

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

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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

Posted

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 ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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 ) 

Posted

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 ) 

Admin.png
Posted

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) 

Posted

onClientResourceStart is triggered when the player finishes downloading the resources, maybe you should do it server-side onPlayerJoin to fade camera.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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) 
  

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