Jump to content

طلب تعديل كود سهل


Recommended Posts

سلام عليكم

ابي لو معي كونسل اقدر ارسل بالشات

المشكلة ان اي احد يقدر يرسل رسالة عادي ويستخدم الامر

الكود الي اي احد يقدر يستخدمه ويرسل رسالة

:

function globalMessage(the, cmd, ...)
    local message = table.concat ( { ... }, " " )
    local name = getPlayerName(the)
    outputChatBox("[ "..name.." #ffc34a]#ff0000 : "..message, getRootElement(), 255, 255, 255, true)
	        	
			triggerClientEvent(root,'soundmsg1',root)

    end -- #c4c4c4亗 #ffc34a[#f75152 Message #ffc34a] #f75152[ "..name.."]#ff0000 :
addCommandHandler("all", globalMessage)


ومحاوللتي في ان اخلي ان ماحد يقدر يكتب فيه غير كونسل :

function globalMessage(the, cmd, ...)
    local message = table.concat ( { ... }, " " )
    local name = getPlayerName(the)
				local acc = getPlayerAccount ( p )
			if acc and not isGuestAccount ( acc ) then
				if isObjectInACLGroup ( "user."..getAccountName ( acc ), aclGetGroup ( "Console" ) ) then
    outputChatBox("[ "..name.." #ffc34a]#ff0000 : "..message, getRootElement(), 255, 255, 255, true)
	        	
			triggerClientEvent(root,'soundmsg1',root)

    end
	end
	end
addCommandHandler("all", globalMessage)


 

Link to comment

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...