Jump to content

طلب جزاكم الله خير


kolme2

Recommended Posts

bindKey("F2", "down", 
function() 
     local Team = getPlayerTeam(localPlayer) 
     local aTeam = getTeamFromName("هنا أسم التيم") 
     if Team and aTeam and Team == aTeam then 
          guiSetVisible(أسم النافذه, not guiGetVisible(أسم النافذه)) 
          showCursor(guiGetVisible(أسم النافذه)) 
     end 
end) 

Link to comment
طيب وإذا ابي اطلع كلام بالشات لتيم معين ؟

جرب

for i, v in ipairs ( getPlayersInTeam ( getTeamFromName ( 'اسم التيم' ) ) ) do 
    outputChatBox ( 'الرسالة', v, 255, 255, 255, true ) 
end 

Or

for i, v in ipairs ( getPlayersInTeam ( getPlayerTeam ( source ) ) ) do 
    outputChatBox ( 'الرسالة', v, 255, 255, 255, true ) 
end 

Link to comment

طيب كيف اخليه لقروب معين

انا عدلت على كلمة التيم وبدلتها بـ قروب

ياليت تصلحوه لي تكفون

bindKey("F7", "down", 
 function() 
      local Group = getPlayerGroup(localPlayer) 
     local aGroup = getGroupFromName("Admin") 
      if Group and aGroup and Group == aGroup then 
         guiSetVisible(Shop, not guiGetVisible(Shop)) 
           showCursor(guiGetVisible(Shop)) 
     end 
 end) 

Link to comment
طيب كيف اخليه لقروب معين

انا عدلت على كلمة التيم وبدلتها بـ قروب

ياليت تصلحوه لي تكفون

bindKey("F7", "down", 
 function() 
      local Group = getPlayerGroup(localPlayer) 
     local aGroup = getGroupFromName("Admin") 
      if Group and aGroup and Group == aGroup then 
         guiSetVisible(Shop, not guiGetVisible(Shop)) 
           showCursor(guiGetVisible(Shop)) 
     end 
 end) 

ما فيه وظيفة تسمى

getPlayerGroup

Link to comment
طيب ابي الكود

يفتح لـ قروب معين

القروب هذا يكون في ملف ال

ACL

مثلاً انت سويت قروب في ملف ال

ACL

وتبي تتحقق من اذا كان واحد من هالقورب الي يسمى كذا كذا كذا

تظهرله النافذة

اذا شخص آخر ما كان عنده الصلاحية لفتح النافذة , او مو في القروب الي نبي نتحقق منه بالاسل ما راح تنفتح له النافذة

اذا كان قصدك قروب قول

او اذا كان قصدك تيم قول

Link to comment
اخوي انا قصدي

مثل اسوي نافذه واخليه تفتح لقروب معين

اخوي , انا اقولك تقصد القروب الي بملف ال

ACL

ولا تيم معين ؟

لان ما فيه شي في الام تي اي اسمه قروب غير الي بالاسل

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