Jump to content

سوال #


Recommended Posts

Posted

سلام عليكم انا عامل لوحة ..

وعاوز تفتح للفي تيم فقط

لو مش في تيم متفتحش له اللوحة

مش لازم يكون في تيم باسم

في اي تيم معمول

الكود الفتح من ف8 :

function Strong ( )   
guiSetVisible ( wnd,true )  
showCursor ( true ) -- اظهار الماوس  
end  
addCommandHandler ( "Teams",Strong )  
Posted
getPlayerTeam 

تحقق من ان تيم الاعب موجود لو ارجع لك nil

يعني التيم غير موجود

Posted
addCommandHandler ( "Teams", 
function ( Player )   
    if ( getPlayerTeam(Player) == getTeamFromName('YourTeamName') ) then 
       guiSetVisible ( wnd, not guiGetVisible(wnd)  ) 
           showCursor ( guiGetVisible(wnd) ) 
    end 
end ) 

Posted
addCommandHandler ( "Teams", 
function ( Player )   
    if ( getPlayerTeam(Player) == getTeamFromName('YourTeamName') ) then 
       guiSetVisible ( wnd, not guiGetVisible(wnd)  ) 
           showCursor ( guiGetVisible(wnd) ) 
    end 
end ) 

بلاير ماهي معرفة

:lol:

addCommandHandler ( "Teams", 
function ()   
    if ( getPlayerTeam(localPlayer) == getTeamFromName('YourTeamName') ) then 
       guiSetVisible ( wnd, not guiGetVisible(wnd)  ) 
           showCursor ( guiGetVisible(wnd) ) 
    end 
end ) 

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