Jump to content

BindKey and open gui for teams only plase help


panos144

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...