Jump to content

-[ مشكلة ]- E بمود العاجل


#Dr.BnG

Recommended Posts

سويت مود عااجل

وعدلي عليه منهمر 

خلاه يسوي صوت كل اما اكتب بالعاجل + تطلع رسالة بالشات

لكن اذا كتبتب العاجل يكرر الصوت 10000 مرة وما يوقف + الشات يكررر الاكلام

وش الحل؟؟

Link to comment

نيكست طفش مني ههههههههههههههههههههههههههههه

Cilent ^_^ 

local sX, sY = guiGetScreenSize ()




addEventHandler("onClientRender", root, function ()
    if ( getElementData ( resourceRoot, "Have_" ) == true ) then
        local Lines = getChatboxLayout ()["chat_lines"]
	    if ( Lines <= 10 ) then
	        Lines = Lines + 1
	    elseif ( Lines >= 20 ) then
	        Lines = Lines - 1
	    else
	        Lines = Lines
	    end
		if ( getElementData ( resourceRoot, "Msg_" ) == "delete" ) then
		    setElementData ( resourceRoot, "Have_", false )
		else
		  
        dxDrawText("[", 37 - 1, 214 - 1, 51 - 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("[", 37 + 1, 214 - 1, 51 + 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("[", 37 - 1, 214 + 1, 51 - 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("[", 37 + 1, 214 + 1, 51 + 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("[", 37, 214, 51, 226, tocolor(254, 191, 92, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
		dxDrawText("Admin", 47 - 1, 214 - 1, 96 - 1, 228 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("Admin", 47 + 1, 214 - 1, 96 + 1, 228 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("Admin", 47 - 1, 214 + 1, 96 - 1, 228 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("Admin", 47 + 1, 214 + 1, 96 + 1, 228 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("Admin", 47, 214, 96, 228, tocolor(249, 118, 78, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
		dxDrawText("] :", 89 - 1, 214 - 1, 103 - 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("] :", 89 + 1, 214 - 1, 103 + 1, 226 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("] :", 89 - 1, 214 + 1, 103 - 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("] :", 89 + 1, 214 + 1, 103 + 1, 226 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("] :", 89, 214, 103, 226, tocolor(254, 191, 92, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
		
		dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 - 1, 214 - 1, 129 - 1, 230 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 + 1, 214 - 1, 129 + 1, 230 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 - 1, 214 + 1, 129 - 1, 230 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106 + 1, 214 + 1, 129 + 1, 230 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText("" .. getElementData ( resourceRoot, "Msg_" ), 106, 214, 129, 230, tocolor(254, 254, 254, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
		dxDrawText(""..getElementData(resourceRoot,"By_"), 18 - 1, 230 - 1, 79 - 1, 236 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText(""..getElementData(resourceRoot,"By_"), 18 + 1, 230 - 1, 79 + 1, 236 - 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText(""..getElementData(resourceRoot,"By_"), 18 - 1, 230 + 1, 79 - 1, 236 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText(""..getElementData(resourceRoot,"By_"), 18 + 1, 230 + 1, 79 + 1, 236 + 1, tocolor(0, 0, 0, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText(""..getElementData(resourceRoot,"By_"), 18, 230, 79, 236, tocolor(192, 189, 189, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
        dxDrawText(""..getElementData(resourceRoot,"By_"), 18, 230, 79, 236, tocolor(192, 189, 189, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false)
			--dxDrawText ( "#999999 - [ #00FFFFConsoLe#999999 ] :  [ ".. getElementData ( resourceRoot, "By_" ) .." #999999] #FFFFFF: " .. getElementData ( resourceRoot, "Msg_" ).. "", sX * 0.02, sY * 0.03 * Lines , sX, sY, tocolor ( 0,100,255,255,1 ), 1, "default-bold", "left", "top", false, false, false, true, false )
		  if ( getElementData ( resourceRoot, "Have_" ) == true ) then
		  
			playSound("chat.mp3",false)
			

		outputChatBox ( "@@@@@@",250, 0, 0, false )
end
 end
 end
 end
 )
bindKey("i", "down", "chatbox","AM")

server ^_^

local Groups = { "AdminMsg", "AdminMsj" }

function isPlayerAdmin(player)
    for k,v in ipairs ( Groups ) do
        if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(player)), aclGetGroup(v)) ) then
		    return true
		end
	end
end

addCommandHandler("AM", function ( player, cmd, ... )
    if not ( isGuestAccount ( getPlayerAccount ( player ) ) ) then
	    if ( isPlayerAdmin ( player ) ) then
		    local msg = {...}
		    local message = table.concat(msg, " ")
			setElementData ( resourceRoot, "Have_", true )
			setElementData ( resourceRoot, "Msg_", message )
			if ( getElementData ( player, "Name" ) and getElementData ( player, "Name" ) ~= false ) then
				setElementData ( resourceRoot, "By_", getElementData ( player, "Name" ))
			else
				setElementData ( resourceRoot, "By_", getPlayerName ( player ))
			end
		else
		    outputChatBox("* You Are Not Admin !", player, 255, 0, 0, true)
		end
	else
	    outputChatBox("* Please Login !", player, 255, 0, 0, true)
	end
end)

ذي اكوادي احد يعدل يخليها ما تكرر صوت اما اكتب + ما تكرر رسالة الشات

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