iMr ~ MnHmAr Posted November 14, 2016 Share Posted November 14, 2016 (edited) addEvent('aAdminEx1',true ) addEventHandler( 'aAdminEx1',root, function ( player1,editdays,editsbab ) local player1 = getPlayerFromName(player1) if (player1) then local T1 = editdays*60000*60*60*24 local account = getPlayerAccount(player1) if account and not isGuestAccount(account) then local acc = getAccountName(account) if isObjectInACLGroup ( 'user.'..acc, aclGetGroup ( "AdminEx" ) ) then return end aclGroupAddObject (aclGetGroup( "AdminEx" ), "user."..acc) setTimer ( function (acc) if not isObjectInACLGroup ( 'user.'..acc, aclGetGroup ( "AdminEx" ) ) then return end aclGroupRemoveObject ( aclGetGroup( "AdminEx" ),'user.'..acc ) end,T1,1,acc) end end end ) وش الغلط بذا الكود ؟ رغمني ما اشوف غلط فيه لكن شاك فيه غلط ب السطور ذي local account = getPlayerAccount(player1) if account and not isGuestAccount(account) then local acc = getAccountName(account) Edited November 14, 2016 by iMr ~ MnHmAr Link to comment
Popular Post TAPL Posted November 14, 2016 Popular Post Share Posted November 14, 2016 سطر 6 60000 الرقم 1000 اعتقد المفترض تحطه إلا إذا تبي تسوي تايمر مده شهور و ما اعتقد سيرفرك راح يبقى شغال لحتى يجي وقت التايمر 6 Link to comment
iMr ~ MnHmAr Posted November 15, 2016 Author Share Posted November 15, 2016 Just now, TAPL said: سطر 6 60000 الرقم 1000 اعتقد المفترض تحطه إلا إذا تبي تسوي تايمر مده شهور و ما اعتقد سيرفرك راح يبقى شغال لحتى يجي وقت التايمر انا ابيه ايام وليس شهور Link to comment
iMr ~ MnHmAr Posted November 16, 2016 Author Share Posted November 16, 2016 addEvent('aAdminEx1',true ) addEventHandler( 'aAdminEx1',root, function (player1,editdays,editsbab) local player1 = getPlayerFromName(player1) if (player1) then local editdays = editdays*1000*60000*60*24 local account = getAccountPlayer(player1) if account and not isGuestAccount(account) then local acc = getAccountName(account) if isObjectInACLGroup ( 'user.'..acc, aclGetGroup ( "AdminEx" ) ) then return end aclGroupAddObject (aclGetGroup("AdminEx"), "user."..acc) setTimer ( function (acc) if not isObjectInACLGroup ( 'user.'..acc, aclGetGroup ( "AdminEx" ) ) then return end aclGroupRemoveObject ( aclGetGroup( "AdminEx" ),'user.'..acc ) end,editdays,1,acc) end end end ) ياشباب وش المشكله مايرقي 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