Jump to content

تعديل كود


Recommended Posts

سلام عليكم ياعيال عندي اكواد العاجل هاد ابي اسويه علا خط معين من عندي بس مش راضي يصير محاولتي


 

MMHHMM = guiCreateFont( "هنا اسم ملف الخط.ttf", )


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_" ) == "1" ) then
		    setElementData ( resourceRoot, "Have_", false )
		else
dxDrawText( "#FFBC00{ #FFBC00".. getElementData ( resourceRoot, "By_" ) .." #FFBC00} #FFFFFF : " .. getElementData ( resourceRoot, "Msg_" ), 17, 289, 251, 310, tocolor(255, 255, 255, 255), 1.4, "MMHHMM", "left", "top", false, false, false, true, false )
		end
	end
end)
bindKey("N", "down", "chatbox","BlackArabsMsg")

 

Link to comment
MMHHMM = dxCreateFont( "هنا اسم ملف الخط.ttf", )


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_" ) == "1" ) then
		    setElementData ( resourceRoot, "Have_", false )
		else
dxDrawText( "#FFBC00{ #FFBC00".. getElementData ( resourceRoot, "By_" ) .." #FFBC00} #FFFFFF : " .. getElementData ( resourceRoot, "Msg_" ), 17, 289, 251, 310, tocolor(255, 255, 255, 255), 1.4,MMHHMM, "left", "top", false, false, false, true, false )
		end
	end
end)
bindKey("N", "down", "chatbox","BlackArabsMsg")

 

Link to comment
8 minutes ago, Ahmed Ly said:

MMHHMM = dxCreateFont( "هنا اسم ملف الخط.ttf", )


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_" ) == "1" ) then
		    setElementData ( resourceRoot, "Have_", false )
		else
dxDrawText( "#FFBC00{ #FFBC00".. getElementData ( resourceRoot, "By_" ) .." #FFBC00} #FFFFFF : " .. getElementData ( resourceRoot, "Msg_" ), 17, 289, 251, 310, tocolor(255, 255, 255, 255), 1.4,MMHHMM, "left", "top", false, false, false, true, false )
		end
	end
end)
bindKey("N", "down", "chatbox","BlackArabsMsg")


اخي ماعاد يكتب عاجل طاول 

Link to comment
MMHHMM = dxCreateFont( "هنا اسم ملف الخط.ttf",9)

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_" ) == "1" ) then
		    setElementData ( resourceRoot, "Have_", false )
		else
dxDrawText( "#FFBC00{ #FFBC00".. getElementData ( resourceRoot, "By_" ) .." #FFBC00} #FFFFFF : " .. getElementData ( resourceRoot, "Msg_" ), 17, 289, 251, 310, tocolor(255, 255, 255, 255), 1.4,MMHHMM, "left", "top", false, false, false, true, false )
		end
	end
end)
bindKey("N", "down", "chatbox","BlackArabsMsg")

 

Link to comment
5 minutes ago, Ahmed Ly said:

MMHHMM = dxCreateFont( "هنا اسم ملف الخط.ttf",9)

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_" ) == "1" ) then
		    setElementData ( resourceRoot, "Have_", false )
		else
dxDrawText( "#FFBC00{ #FFBC00".. getElementData ( resourceRoot, "By_" ) .." #FFBC00} #FFFFFF : " .. getElementData ( resourceRoot, "Msg_" ), 17, 289, 251, 310, tocolor(255, 255, 255, 255), 1.4,MMHHMM, "left", "top", false, false, false, true, false )
		end
	end
end)
bindKey("N", "down", "chatbox","BlackArabsMsg")

 

مشكور يالغالي 




تمت الأفادة

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