scienziato-pazzo Posted April 11, 2013 Share Posted April 11, 2013 Hi, I don't know why but the client scripts that I do are applied to all players. For example if a player click Register, everyone sees "Registered succefully". How to remove this? Link to comment
scienziato-pazzo Posted April 11, 2013 Author Share Posted April 11, 2013 Clientside function disattivaLogin(thePlayer) toggleControl("chatbox",true) guiSetVisible(GUIEditor.button[1],false) guiSetVisible(GUIEditor.button[2],false) guiSetVisible(GUIEditor.label[1],false) guiSetVisible(GUIEditor.label[2],false) guiSetVisible(GUIEditor.edit[1],false) guiSetVisible(GUIEditor.edit[2],false) guiSetVisible(GUIEditor.staticimage[1],false) showCursor(false) stopSound(logintheme) end addEvent("onFattoLogin",true) addEventHandler("onFattoLogin", getRootElement(), disattivaLogin) Serverside triggerClientEvent("onFattoLogin",getRootElement()) Link to comment
iPrestege Posted April 11, 2013 Share Posted April 11, 2013 triggerClientEvent(source,"onFattoLogin",source) Link to comment
scienziato-pazzo Posted April 11, 2013 Author Share Posted April 11, 2013 Thanks, it works, but can you explain me why I have to do it? Link to comment
iPrestege Posted April 11, 2013 Share Posted April 11, 2013 root = appear to all players source = that player do that function You're welcome . Link to comment
scienziato-pazzo Posted April 11, 2013 Author Share Posted April 11, 2013 root = appear to all playerssource = that player do that function You're welcome . Ok thanks, you're the best 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