Jump to content

IMAGE DESTOY


Try

Recommended Posts

Posted

Heyoo!!!!

Guys i created a image at out one function like:

ITS A EXEMPLE

image = guiCreateStaticImage(...................) 

Then i need to delete the image when the player login how to do this

;)
Posted

-- client side

addEvent("onLogin",true) 
addEventHandler("onLogin",root, 
function () 
   if isElement(image) then destroyElement(image) end 
end) 

-- server side

addEventHandler("onPlayerLogin",root, 
function () 
    triggerClientEvent(source,"onLogin",source) 
end) 

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

Ok thanks but help me with this:

I need like a movie when the player join

I saw it in German Public Real Life and at the RoleplayGameMod

;)
Posted

use setCamera... and createObject, moveObject .. ( if you mean a hunter land or something like this )

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

Not sure, but you can do something like:

addEventHandler("onClientPreRender", root, 
function() 
local x, y, z = getElementPosition(plane) 
setCameraMatrix(px, py, pz, x, y, z) 
end) 

Plane here must be the plane's variable you may set it's id server side to use it client side by "getElementByID".

px, py, pz is the position where the camera will be.

x, y, z is the look at, we get the planes position and set's the camera matrix to look at it.

Business System viewtopic.php?f=108&t=35797

Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726

SQLite Tutorial viewtopic.php?f=148&t=38203

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