panos144 Posted April 28, 2013 Share Posted April 28, 2013 Hi guys i make a gui and i bind to f7 but all players can open them how can only 1 team can open it? Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 getPlayerTeam getTeamName Using these functions . Link to comment
panos144 Posted April 28, 2013 Author Share Posted April 28, 2013 i don't undestand very well GUIEditor = { window = {} } GUIEditor.window[1] = guiCreateWindow(182, 72, 498, 410, "MyGui", false) guiWindowSetSizable(GUIEditor.window[1], false) and? Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 Not tested but try this ; GUIEditor = { window = {} } GUIEditor.window[1] = guiCreateWindow(182, 72, 498, 410, "MyGui", false) guiSetVisible(GUIEditor.window[1],false) guiWindowSetSizable(GUIEditor.window[1], false) bindKey("F1","down", function ( ) if ( getPlayerTeam(localPlayer) and getTeamName(getPlayerTeam(localPlayer) ) == "Team Name" ) then guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) else outputChatBox("* For ( Team Name ) Only!") end end ) Link to comment
iPrestege Posted April 28, 2013 Share Posted April 28, 2013 doesn't work It works i just test it now and works fine are you sure about the team name ? or about the meta file? Link to comment
panos144 Posted April 28, 2013 Author Share Posted April 28, 2013 working very nice thanks for help(in meta i write type="server" no type="client" my wrong) 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