Guest Posted March 2, 2018 Share Posted March 2, 2018 # سلام عليكم ورحمةة آلله تعآلى وبركآتهء , # أما بعد يأصدقاء .. فأبي كود # لما اللاعب يشتري رتبةة ، بتنمسح القديمة # وتجيهـ الجديدهـ !! # والسلام خير الختام Link to comment
Guest Posted March 3, 2018 Share Posted March 3, 2018 10 hours ago, #\_oskar_/# said: aclGroupRemoveObject ThankYou !! 10 hours ago, #\_oskar_/# said: aclGroupRemoveObject لمآ أنا شفت كذا , يعني انا ابي اي رتبة , فأي كود أستعملهـ !! مو لآزم رتب معينة يا أخوي ! Link to comment
TOUNSI |, السعأدة Posted March 5, 2018 Share Posted March 5, 2018 if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then revmoeOtherGroups ( source ) aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); عَـليك سـلام ورحمة الله تعالى وباركته هذا الـكود عند اضافة رتبة تنسحب لى قبلها Link to comment
Rakan# Posted March 5, 2018 Share Posted March 5, 2018 25 minutes ago, MR.TOUNSI said: if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then revmoeOtherGroups ( source ) aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); عَـليك سـلام ورحمة الله تعالى وباركته هذا الـكود عند اضافة رتبة تنسحب لى قبلها revmoeOtherGroups ؟؟ Link to comment
TOUNSI |, السعأدة Posted March 5, 2018 Share Posted March 5, 2018 local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then revmoeOtherGroups ( source ) aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputchatbox("تـم ترقية رتبة بنجاح"..Name,source,0,255,0,true); else outputchatbox("لا تملك ساعات كافية",source,255,0,0,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) function revmoeOtherGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs( aclGroupList ( ) ) do if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user."..getAccountName ( getPlayerAccount ( element ) ) ) end end end end end آكواد كاملة Link to comment
Rakan# Posted March 5, 2018 Share Posted March 5, 2018 Just now, MR.TOUNSI said: local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then revmoeOtherGroups ( source ) aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputchatbox("تـم ترقية رتبة بنجاح"..Name,source,0,255,0,true); else outputchatbox("لا تملك ساعات كافية",source,255,0,0,true); end end addEvent("Accept:the:request",true) addEventHandler("Accept:the:request",root,xAddToGroupFunction_) function revmoeOtherGroups ( element ) if ( element and isElement ( element ) ) then if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then for _, v in ipairs( aclGroupList ( ) ) do if ( isObjectInACLGroup ( "user."..getAccountName ( getPlayerAccount ( element ) ), v ) ) then aclGroupRemoveObject ( v, "user."..getAccountName ( getPlayerAccount ( element ) ) ) end end end end end آكواد كاملة ناقص فنكشن واشياء كثيره .. كودك ماله داعي لو يستعمل جدول افضل من الوظيفة لأنها بتشيل كل الرتب اللي معه افترض معه رتبه مالها علاقه بالترقيآت ؟ مثل عاجل او فيب او تاج خاص الى اخره .. Link to comment
TOUNSI |, السعأدة Posted March 5, 2018 Share Posted March 5, 2018 Just now, Rakan# said: ناقص فنكشن واشياء كثيره .. كودك ماله داعي لو يستعمل جدول افضل من الوظيفة لأنها بتشيل كل الرتب اللي معه افترض معه رتبه مالها علاقه بالترقيآت ؟ مثل عاجل او فيب او تاج خاص الى اخره .. آدري حب انا مسوي طريقة كمان لو كان معك رتبة بعد لوحة ترقيات وانت ترجع ترقي نفسك متقدرش ليه الوجع راس كذا اسهل طريقة 1 minute ago, Rakan# said: ناقص فنكشن واشياء كثيره .. كودك ماله داعي لو يستعمل جدول افضل من الوظيفة لأنها بتشيل كل الرتب اللي معه افترض معه رتبه مالها علاقه بالترقيآت ؟ مثل عاجل او فيب او تاج خاص الى اخره .. local ForbiddenGroup1 = "Console" -- اسماء الرتب لى ماتبيه ترتقي من اف9 ---------------- if isObjectInACLGroup("user."..account, aclGetGroup(ForbiddenGroup1)) then return outputchatbox("لا تستطيع العودة الى رتب هذه",source,255,255,255,true); 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