Piorun Posted December 26, 2010 Share Posted December 26, 2010 Hi. I've got a problem with showing dx rectangle when player joins. My code looked like: function loginWindow () addEventHandler("onClientRender",root, function() dxDrawRectangle(0.0,0.0,1024.0,168.0,tocolor(0,0,0,204),false) dxDrawRectangle(0.0,592.0,1024.0,768.0,tocolor(0,0,0,204),false) end ) end addEventHandler("onClientPlayerJoin", getRootElement(), loginWindow) but it doesn't works. Please, help. Link to comment
Aibo Posted December 26, 2010 Share Posted December 26, 2010 onClientPlayerJoin is not triggered for the player who joined the server, only for other players. use onClientResourceStart. Link to comment
Piorun Posted December 26, 2010 Author Share Posted December 26, 2010 Ok, it works. Thanks 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