Jump to content

سؤال


Recommended Posts

bool dxDrawText ( string text, float left, float top [, float right=left, float bottom=top, int color=white, float scale=1, 
                  mixed font="default", string alignX="left", string alignY="top", bool clip=false, bool wordBreak=false, 
                  bool postGUI=false, bool colorCoded=false, bool subPixelPositioning=false, 
                  float fRotation=0, float fRotationCenterX=0, float fRotationCenterY=0 ] ) 

true خله colorCoded ذا

Link to comment

function start(msg)

message = msg

end

addEvent("M3nFsK2", true )

addEventHandler("M3nFsK2", getRootElement(), start)

function as()

local Name = getPlayerName(localPlayer)

dxDrawFramedText("Admin ["..Name.."]: ",14, 235, 783, 264,tocolor(255, 0, 0, 255),1.0,"default-bold","left","top",false,false,false)

dxDrawFramedText(" "..message.."", 119, 236, 887, 270,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,false,false)

end

addEventHandler("onClientRender", getRootElement(), as)

Link to comment

function as()

local Name = getPlayerName(localPlayer)

dxDrawFramedText("Admin ["..Name.."]: ",14, 235, 783, 264,tocolor(255, 0, 0, 255),1.0,"default-bold","left","top",false,true,false)

dxDrawFramedText(" "..message.."", 119, 236, 887, 270,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,true,false)

end

addEventHandler("onClientRender", getRootElement(), as)

سويته وما صار شيء

^رد علي الخاص

Link to comment
Test .

dxDrawFramedText("Admin ["..Name.."]::gsub("#%x%x%x%x%x%x", "") ",14, 235, 783, 264,tocolor(255, 0, 0, 255),1.0,"default-bold","left","top",false,false,false) 
  

dxDrawFramedText("Admin ["..Name:gsub("#%x%x%x%x%x%x", "").."]: "..,14, 235, 783, 264,tocolor(255, 0, 0, 255),1.0,"default-bold","left","top",false,false,false) 
  
Link to comment
function start(msg) 
message = msg 
end 
addEvent("M3nFsK2", true ) 
addEventHandler("M3nFsK2", getRootElement(), start) 
  
function as() 
local Name = getPlayerName(localPlayer) 
dxDrawFramedText("Admin ["..Name:gsub('#%x%x%x%x%x%x', '').."]: ",14, 235, 783, 264,tocolor(255, 0, 0, 255),1.0,"default-bold","left","top",false,false,false) 
dxDrawFramedText(" "..message.."", 119, 236, 887, 270,tocolor(255,255,255,255),1.0,"default-bold","left","top",false,false,false) 
end 
addEventHandler("onClientRender", getRootElement(), as) 

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