Tokio

[HELP] How to fix this problem in my loginpanel?

Recommended Posts

i have a loginpanel, and i added this lines:

time = getTickCount()
x = 1000
y = 200
z = 20
function anim()
		x = x+0.31
		y = y+0.32
		setCameraMatrix(x,y,z, 0, 0, 0)
	if (getTickCount() - time >= 5000) then
		removeEventHandler("onClientPreRender", getRootElement(), anim)
	end
end
addEventHandler("onClientPreRender", getRootElement(), anim)

but when i log in, how to set camera to the player? because when i login, the loginpanel disappear, and the camera stay there :S 

sorry for my bad english :c

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.