iMr ~ MnHmAr Posted December 10, 2016 Share Posted December 10, 2016 (edited) -- #Client addEventHandler ( "onClientGUIClick",root, function ( ) if guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 then local player1 = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if source == GUIEditor.button[1] then editdays = guiGetText (GUIEditor.edit[1]) if editdays ~= "" then editsbab = guiGetText (GUIEditor.edit[2]) if editsbab ~= "" then triggerServerEvent( 'aAdminEx1', localPlayer,player1,editdays,editsbab) end end end end end ) -- #Server addEvent('aAdminEx1',true ) addEventHandler( 'aAdminEx1',root, function ( player1,editdays,editsbab ) local player2 = getPlayerFromName(player1) if (player2) then local acc = getPlayerAccount(player2) local account = getAccountName(acc) if account then if isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupAddObject (aclGetGroup( "Admin" ), "user."..account) setTimer ( function (account) if not isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupRemoveObject ( aclGetGroup( "Admin" ),"user."..account ) end,editdays*1000*60*24,1,account) end end end ) وش المشكله هنا مايرقيني Edited December 10, 2016 by iMr ~ MnHmAr Link to comment
#Soking Posted December 10, 2016 Share Posted December 10, 2016 ضيف المود بقروب الادمن Link to comment
iMr ~ MnHmAr Posted December 11, 2016 Author Share Posted December 11, 2016 ضفته لكن مايرقي ابدا + الدي بوق مايظهر فيه شي Link to comment
Adham Posted December 11, 2016 Share Posted December 11, 2016 (edited) دي بق في ف8 وش يجي لك ؟ , عشان نقدر نساعدك ونشوف الخطأ بأي سطر . Edited December 11, 2016 by Le3bA Link to comment
#STZ Posted December 11, 2016 Share Posted December 11, 2016 2 hours ago, iMr ~ MnHmAr said: ضفته لكن مايرقي ابدا + الدي بوق مايظهر فيه شي @Le3bA Link to comment
Adham Posted December 11, 2016 Share Posted December 11, 2016 Just now, MR.NaiF-MTA said: @Le3bA سوري م شفتها . 1 Link to comment
coNolel Posted December 11, 2016 Share Posted December 11, 2016 كيف انت حاط اذا معه ادمن بيعطيه ادمن واذا معه الأدمن بيسحب منه الأدمن ?? aclGroupRemoveObject حاول تغير من الرتب لانها غالبا هي المشكلة Link to comment
MR.Mosa Posted December 11, 2016 Share Posted December 11, 2016 بدل ملف سيرفر بهاذا addEvent('aAdminEx1',true ) addEventHandler( 'aAdminEx1',root, function ( player1,editdays,editsbab ) local player2 = getPlayerFromName(player1) if (player2) then local acc = getAccountName(player2) local account = getPlayerAccount(acc) if account then if isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupAddObject (aclGetGroup( "Admin" ), "user."..account) setTimer ( function (account) if not isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupRemoveObject ( aclGetGroup( "Admin" ),"user."..account ) end,editdays*1000*60*24,1,account) end end end ) المشكلة عندك في التحقق من الحساب Link to comment
Master_MTA Posted December 12, 2016 Share Posted December 12, 2016 23 hours ago, MR.Mosa said: بدل ملف سيرفر بهاذا addEvent('aAdminEx1',true ) addEventHandler( 'aAdminEx1',root, function ( player1,editdays,editsbab ) local player2 = getPlayerFromName(player1) if (player2) then local acc = getAccountName(player2) local account = getPlayerAccount(acc) if account then if isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupAddObject (aclGetGroup( "Admin" ), "user."..account) setTimer ( function (account) if not isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupRemoveObject ( aclGetGroup( "Admin" ),"user."..account ) end,editdays*1000*60*24,1,account) end end end ) المشكلة عندك في التحقق من الحساب خطا اخوي انت عاكسها +_= الصحيح addEvent('aAdminEx1',true ) addEventHandler( 'aAdminEx1',root, function ( player1,editdays,editsbab ) local player2 = getPlayerFromName(player1) if (player2) then getPlayerAccount local acc = getPlayerAccount(player2) local account = getAccountName(acc) if account then if isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupAddObject (aclGetGroup( "Admin" ), "user."..account) setTimer ( function (account) if not isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupRemoveObject ( aclGetGroup( "Admin" ),"user."..account ) end,editdays*1000*60*24,1,account) end end end ) Link to comment
MR.Mosa Posted December 12, 2016 Share Posted December 12, 2016 2 minutes ago, Master_MTA said: خطا اخوي انت عاكسها +_= الصحيح addEvent('aAdminEx1',true ) addEventHandler( 'aAdminEx1',root, function ( player1,editdays,editsbab ) local player2 = getPlayerFromName(player1) if (player2) then getPlayerAccount --- هاي شو بتسوي ^ local acc = getPlayerAccount(player2) local account = getAccountName(acc) if account then if isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupAddObject (aclGetGroup( "Admin" ), "user."..account) setTimer ( function (account) if not isObjectInACLGroup ( "user."..account, aclGetGroup ( "Admin" ) ) then return end aclGroupRemoveObject ( aclGetGroup( "Admin" ),"user."..account ) end,editdays*1000*60*24,1,account) end end end ) شوف كودك منيح Link to comment
Master_MTA Posted December 12, 2016 Share Posted December 12, 2016 Just now, MR.Mosa said: شوف كودك منيح خطا فقط كنت انسخها عشان ما اكتبها الكسل وما ادراك ما هو ههههههههههه 1 Link to comment
MR.Mosa Posted December 12, 2016 Share Posted December 12, 2016 Just now, Master_MTA said: خطا فقط كنت انسخها عشان ما اكتبها الكسل وما ادراك ما هو ههههههههههه ههههههههه 1 Link to comment
iMr ~ MnHmAr Posted December 12, 2016 Author Share Posted December 12, 2016 كلكم غلط + تم حل المشكله من يوم ما رد #Soking الاخ 1 Link to comment
coNolel Posted December 12, 2016 Share Posted December 12, 2016 طيب ليه من اول مب مخبرنا جالسين نحشش فالكودات ضض 1 Link to comment
iMr ~ MnHmAr Posted December 12, 2016 Author Share Posted December 12, 2016 ض1 ماكنت فاضيي و نسيت + تمت الافاده ه Link to comment
N3xT Posted December 13, 2016 Share Posted December 13, 2016 On ١١/١٢/٢٠١٦ at 10:29 PM, coNolel said: كيف انت حاط اذا معه ادمن بيعطيه ادمن واذا معه الأدمن بيسحب منه الأدمن ?? aclGroupRemoveObject حاول تغير من الرتب لانها غالبا هي المشكلة اقرأ الكود كامل, مافيه ولا خطأ Link to comment
coNolel Posted December 13, 2016 Share Posted December 13, 2016 14 hours ago, N3xT said: اقرأ الكود كامل, مافيه ولا خطأ 22 hours ago, coNolel said: طيب ليه من اول مب مخبرنا جالسين نحشش فالكودات ضض 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