Jump to content

تيم معين يفتح لوحه


Recommended Posts

سلام عليكم

لوحه ما تفتح

انا هدفي اخليها تفتح لتيم معين

    local Team = "Team Name" 
      
    bindKey("F2","down", function (  team    ) 
       if getPlayerTeam(localPlayer) then 
         if getTeamName( getPlayerTeam(localPlayer) ) == Team then 
          guiSetVisible( WindowName, not guiGetVisible(WindowName) ) 
           showCursor( guiGetVisible(WindowName) ) 
       else 
            outputChatBox("This Command Just For ["..Team.."] Team !", 255, 0, 0) 
          end 
       else 
           outputChatBox("You Are Not in Team !", 255, 0, 0) 
       end 
    end ) 

Link to comment
  
local Team = "Team Name" 
  
bindKey ( "F2", "down", 
function () 
if (getTeamName(getPlayerTeam(localPlayer)) == Team) then 
if guiGetVisible(WindowName) then 
guiSetVisible(WindowName, false) 
showCursor(false) 
else 
guiSetVisible(WindowName,true) 
showCursor(true) 
end 
else 
outputChatBox("This Command Just For ["..Team.."] Team !", 255, 0, 0) 
end 
end 
) 
  

Link to comment
TestWindow = guiCreateWindow(500, 152, 300, 300, "test", false) 
guiSetVisible(TestWindow,false) 
  
  
local Team = "No Team" 
  
bindKey ( "F2", "down", 
function () 
if (getTeamName(getPlayerTeam(localPlayer)) == Team) then 
if guiGetVisible(TestWindow) then 
guiSetVisible(TestWindow, false) 
showCursor(false) 
else 
guiSetVisible(TestWindow,true) 
showCursor(true) 
end 
else 
outputChatBox("This Command Just For ["..Team.."] Team !", 255, 0, 0) 
end 
end 
) 
  

جرب

No Team = ملاحظة : يجب ان تكون في تيم باسم

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...