Try Posted July 25, 2011 Share 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 Link to comment
Castillo Posted July 25, 2011 Share 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) Link to comment
Try Posted July 25, 2011 Author Share 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 Link to comment
bandi94 Posted July 25, 2011 Share Posted July 25, 2011 use setCamera... and createObject, moveObject .. ( if you mean a hunter land or something like this ) Link to comment
Try Posted July 25, 2011 Author Share Posted July 25, 2011 but how to put the camera at the object its not working Link to comment
JR10 Posted July 26, 2011 Share 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. Link to comment
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