Jump to content

|~[مساعدة في لوحة الرتب]~|


Doffy

Recommended Posts

22 minutes ago, iMr.WiFi..! said:

طيب خلني اشوف الاكواد ؟
 

addEvent("lv2",true)
addEventHandler("lv2",root,
function(txt2)
	acc3 = getPlayerAccount(source)
		if isGuestAccount(acc3) then return outputChatBox("يجب عليك تسجيل",source,0,255,0,true) end
			acc4 = getAccountName(acc3)
			removeGroups ( source )
				if not isObjectInACLGroup ("user."..acc4,aclGetGroup (txt2)) then 
                     if getElementData(source,'Level') >= 250 then					 
					aclGroupAddObject (aclGetGroup(txt2), "user."..acc4)
					outputChatBox("#0000FFNew Rank - #00FF00To Open Rank window press #FFFF00'F10'",source,0,255,0,true)
					playSoundFrontEnd(source,30)
					triggerClientEvent("newr2",source)
				else
			outputChatBox("*You Don't Have Enough Level",source,255,0,0,true)
			end
			else
			outputChatBox("لديك هذه الرتبة بلفعل",source,255,0,0,true)
		end
      end
    end)
	
function removeGroups (  element  )
    if ( element and isElement ( element ) ) then
        if ( getPlayerAccount ( element ) and not isGuestAccount ( getPlayerAccount ( element ) ) ) then
            for _, v in ipairs ( aclGroupList ( ) ) do
                g = aclGroupGetName ( v )
                if g ~= "Level1" and g ~= "Level3" and g ~= "Level4" then
                    if ( isObjectInACLGroup ( "user." .. getAccountName ( getPlayerAccount ( element ) ), v ) ) then
                        aclGroupRemoveObject ( v, "user." .. getAccountName ( getPlayerAccount ( element ) ) )
                    end
                end
            end
        end
    end
end

 

Link to comment
On ١٢‏/٥‏/٢٠١٧ at 17:59, Deativated said:

وش الفرق الفوق بينك و بين الأخ واي فاي ؟

ممكن يسويها كدأ وم في شيء


addEventHandler ( "onClientGUIClick", resourceRoot,
	function ( )
		if source == GUIEditor.button[2] then
                        local txt = guiGridListGetItemText ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 )
	   		if txt == "" then return end
	   	        triggerServerEvent ( "add", localPlayer, txt )
               end
        end
)

 

no comment

Edited by Master_MTA
Link to comment
  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...