Try Posted July 25, 2011 Posted July 25, 2011 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
Castillo Posted July 25, 2011 Posted July 25, 2011 -- 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. Education is the most powerful weapon which you can use to change the world.
Try Posted July 25, 2011 Author Posted July 25, 2011 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
bandi94 Posted July 25, 2011 Posted July 25, 2011 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 :
Try Posted July 25, 2011 Author Posted July 25, 2011 but how to put the camera at the object its not working
JR10 Posted July 26, 2011 Posted July 26, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now