kolme2 Posted October 13, 2012 Share Posted October 13, 2012 السلام عليكم ممكن كود ادوره بس مالقيته هو كود مثل اسوي لوحة اخليه تفتح لتيم معين لاهنتو Link to comment
TAPL Posted October 13, 2012 Share Posted October 13, 2012 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
kolme2 Posted October 13, 2012 Author Share Posted October 13, 2012 طيب وإذا ابي اطلع كلام بالشات لتيم معين ؟ Link to comment
abu5lf Posted October 13, 2012 Share Posted October 13, 2012 طيب وإذا ابي اطلع كلام بالشات لتيم معين ؟ جرب 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
hassan.k.s.a Posted October 13, 2012 Share Posted October 13, 2012 for i, v in ipairs ( getPlayersInTeam ( getPlayerTeam ( source ) ) ) do outputChatBox ( 'الرسالة', v, 255, 255, 255, true ) end وين يحط اسم التيم كذا ^.^ Link to comment
kolme2 Posted October 18, 2012 Author Share Posted October 18, 2012 طيب كيف اخليه لقروب معين انا عدلت على كلمة التيم وبدلتها بـ قروب ياليت تصلحوه لي تكفون 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
Tete omar Posted October 18, 2012 Share Posted October 18, 2012 طيب كيف اخليه لقروب معينانا عدلت على كلمة التيم وبدلتها بـ قروب ياليت تصلحوه لي تكفون 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
kolme2 Posted October 18, 2012 Author Share Posted October 18, 2012 طيب ابي الكود يفتح لـ قروب معين Link to comment
Tete omar Posted October 18, 2012 Share Posted October 18, 2012 طيب ابي الكوديفتح لـ قروب معين القروب هذا يكون في ملف ال ACL مثلاً انت سويت قروب في ملف ال ACL وتبي تتحقق من اذا كان واحد من هالقورب الي يسمى كذا كذا كذا تظهرله النافذة اذا شخص آخر ما كان عنده الصلاحية لفتح النافذة , او مو في القروب الي نبي نتحقق منه بالاسل ما راح تنفتح له النافذة اذا كان قصدك قروب قول او اذا كان قصدك تيم قول Link to comment
kolme2 Posted October 18, 2012 Author Share Posted October 18, 2012 اخوي انا قصدي مثل اسوي نافذه واخليه تفتح لقروب معين Link to comment
Tete omar Posted October 18, 2012 Share Posted October 18, 2012 اخوي انا قصديمثل اسوي نافذه واخليه تفتح لقروب معين اخوي , انا اقولك تقصد القروب الي بملف ال ACL ولا تيم معين ؟ لان ما فيه شي في الام تي اي اسمه قروب غير الي بالاسل Link to comment
3NAD Posted October 18, 2012 Share Posted October 18, 2012 -- Server Side isObjectInACLGroup + triggerClientEvent -- Client Side guiSetVisible + addEvent Link to comment
Tete omar Posted October 18, 2012 Share Posted October 18, 2012 -- Server Side isObjectInACLGroup + triggerClientEvent -- Client Side guiSetVisible + addEvent + client addEventHandler 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