+Source|> Posted May 10, 2017 Share Posted May 10, 2017 سلام عليكم ابي كود لاهنتم الان انا سويت مود قفل الشات كيف اخلي لما الشات يقفل اللاعب ما يقدر يكتب ابي الكود لاهنتم ق8 وشكراا Link to comment
+Source|> Posted May 10, 2017 Author Share Posted May 10, 2017 (edited) شوف الكود Reveal hidden contents addEvent ( "CPANEL:onLockChat", true ) addEventHandler ( "CPANEL:onLockChat", root, function ( bool ) local acc = getPlayerAccount(source) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then if bool == "say" then if ChatDisabled then ChatDisabled = false outputChatBox ( "#[C.Console]: تم فتح الشات ", root, 255, 255, 0, true ) else ChatDisabled = true outputChatBox ( "#[C.Console]: تم قفل الشات ", root, 255, 0, 0, true ) if not isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then cancelEvent( ) return end end end end end end ) كيف اخلي اي احد مو في جروب كونسل ما يقدر يكتب Edited May 10, 2017 by A7MEDENO Link to comment
' A F . Posted May 10, 2017 Share Posted May 10, 2017 aChatStatus = true; local Message = { [ 1 ] = { "تم فتح الشات" } , [2] = { "تم إغلاق الشات" } }; addEvent ( "CPANEL:onLockChat", true ) addEventHandler ( "CPANEL:onLockChat", root, function ( aValue ) if ( aValue == "say" ) then local aAccount = getPlayerAccount ( source ); if ( not isGuestAccount ( aAccount ) and isObjectInACLGroup("user."..getAccountName(aAccount),aclGetGroup("Console")) ) then aChatStatus = not aChatStatus outputChatBox ( "#[C.Console]: ".. ( aChatStatus == false and Message[2][1] or Message[1][1] ), root, 255, 255, 0, true ) end end end ) خذ هاذا الكود ماجربته , بالنسبة لـ كود ان الكونسل يكتب فقط اذا كأن الشات مقفل إستخدم هاذي الوظائف addEventHandler -- 'onPlayerChat' getPlayerAccount isObjectInACLGroup Link to comment
+Source|> Posted May 10, 2017 Author Share Posted May 10, 2017 (edited) شكرا لكم لكن سؤال اخر الان انا مسوي ملف server و client كيف اسوي ملف اخر واعرفه باللي ابي server or client??? Edited May 10, 2017 by A7MEDENO Link to comment
#BrosS Posted May 10, 2017 Share Posted May 10, 2017 On 10/05/2017 at 18:13, A7MEDENO said: شكرا لكم لكن سؤال اخر الان انا مسوي ملف server و client كيف اسوي ملف اخر واعرفه باللي ابي server or client??? Expand مافهمت Link to comment
Dr.Marco Posted May 10, 2017 Share Posted May 10, 2017 لي فهمت من كلامك <meta> <script src="اسم الملف.lua" type="client"/> -------------------------------- نوعية الملف كلنت ولا سيرفر <script src="اسم الملف.lua" type="server"/> </meta> كيف تسوي meta ? Link to comment
+Source|> Posted May 10, 2017 Author Share Posted May 10, 2017 لا انا مسوي ملف server وملف client ابي اسوي ملف زياده باي اسم كيف اعرفه لكلينت او سيرفر Link to comment
!#NssoR_) Posted May 10, 2017 Share Posted May 10, 2017 زي ماقالك اخونا ماروكو <meta> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> </meta> Link to comment
F_F Posted May 11, 2017 Share Posted May 11, 2017 لقد فهمت ماذا تقصد انت تقصد لو كان لديك ثلاثة ملفات واثنان منهما معرفان بسيرفر وكلينت فكيف تعرف الثالث هذا الخيار يعود اليك <meta> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> </meta> 1 Link to comment
Master_MTA Posted May 11, 2017 Share Posted May 11, 2017 On 11/05/2017 at 09:43, F_F said: لقد فهمت ماذا تقصد انت تقصد لو كان لديك ثلاثة ملفات واثنان منهما معرفان بسيرفر وكلينت فكيف تعرف الثالث هذا الخيار يعود اليك <meta> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> </meta> Expand اخوي الكريم انا مو جاي افتعل مشاكل ولا شي لكن اتوقع الاخوه افادوه فوق ولا انا غلطان؟ Link to comment
F_F Posted May 11, 2017 Share Posted May 11, 2017 On 11/05/2017 at 09:44, Master_MTA said: اخوي الكريم انا مو جاي افتعل مشاكل ولا شي لكن اتوقع الاخوه افادوه فوق ولا انا غلطان؟ Expand لا اعتقد فهم لم يفيدوه بالشكل المطلوب على ماعتقد فلا داعي Link to comment
Dr.Marco Posted May 11, 2017 Share Posted May 11, 2017 On 10/05/2017 at 22:54, !#NssoR_) said: زي ماقالك اخونا ماروكو <meta> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> </meta> Expand تصحيح بسيط ماركو Link to comment
+Source|> Posted May 11, 2017 Author Share Posted May 11, 2017 On 11/05/2017 at 22:19, Dr.Marco said: تصحيح بسيط ماركو Expand انا اعرف اسوي ميتا تم الافاده شكرا 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