Jump to content

طلب كود


AE.

Recommended Posts

آلسلآم عليكم ورحمة الله وبركاتة

شباب انا بدي اركب خط علي الكلام

انا ركبت الخط داخل الmeta

وحطيط الملف في المود

المهم بدي الكود اللي هو مثلا dxCreateFont

بس حطيطه في الكود وماجا الكلام اصلا

الكود:

  
  
function rdx ( message ) 
    removeEventHandler ( "onClientRender", getRootElement(  ), dx ) 
    function dx(  ) 
     dxDrawText ( message, 603, 640, 620, 41, tocolor ( 255, 255, 255, 255 ), 2, "sa-gothi", "left", "top", false, false, false ) 
    end 
    addEventHandler("onClientRender", getRootElement(  ), dx ) 
end 
addEvent ( "sora", true ) 
addEventHandler ( "sora", getRootElement(  ), rdx ) 
bindKey ( "o", "down", "chatbox", "Admin" ) 
  
  
addEventHandler ( "onClientResourceStart", resourceRoot, function (  ) 
triggerServerEvent ( "SetMessage", localPlayer ) 
end 
) 
addEvent ( "sss", true ) 
addEventHandler ( "sss", root, 
setTimer (function() 
    removeEventHandler ( "onClientRender", getRootElement(  ), dx ) 
    end, 10000, 0 ) 
    ) 
     

Link to comment
اطرح الميتا خوي

<meta> 
    <info 
    author = "3laa" name = "admsg" version = "1" type = "script" 
    /> 
       
    <script src = "Client.lua" type = "client" /> 
    <script src = "Server.lua" type = "server" /> 
    <file src = "kha.ttf" /> 
</meta> 

Link to comment
اطرح الميتا خوي

<meta> 
    <info 
    author = "3laa" name = "admsg" version = "1" type = "script" 
    /> 
       
    <script src = "Client.lua" type = "client" /> 
    <script src = "Server.lua" type = "server" /> 
    <file src = "kha.ttf" /> 
</meta> 

تعريف الخط غلط خوي جرب كذا

        author = "3laa" name = "admsg" version = "1" type = "script" 
    /> 
      
    

newFonts = guiCreateFont("kha.ttf", 20) 
function rdx ( message ) 
    removeEventHandler ( "onClientRender", getRootElement(  ), dx ) 
    function dx(  ) 
     dxDrawText ( "[ Owner server ] :", 13.0, 167.0, 55.0, 182.0, tocolor ( 255, 5, 5, 255 ), 1.1, newFonts, "left", "top", false, false, false ) 
     dxDrawText ( message, 130, 168.0, 799.0, 224.0, tocolor ( 255, 255, 255, 255 ), 1.1, newFonts, "left", "top", false, false, false ) 
    end 
    addEventHandler("onClientRender", getRootElement(  ), dx ) 
end 
addEvent ( "sora", true ) 
addEventHandler ( "sora", getRootElement(  ), rdx ) 
bindKey ( "o", "down", "chatbox", "Admin" ) 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function()     
    end 
) 
  

جرب

Link to comment
اطرح الميتا خوي

<meta> 
    <info 
    author = "3laa" name = "admsg" version = "1" type = "script" 
    /> 
       
    <script src = "Client.lua" type = "client" /> 
    <script src = "Server.lua" type = "server" /> 
    <file src = "kha.ttf" /> 
</meta> 

تعريف الخط غلط خوي جرب كذا

        author = "3laa" name = "admsg" version = "1" type = "script" 
    /> 
      
    

newFonts = guiCreateFont("kha.ttf", 20) 
function rdx ( message ) 
    removeEventHandler ( "onClientRender", getRootElement(  ), dx ) 
    function dx(  ) 
     dxDrawText ( "[ Owner server ] :", 13.0, 167.0, 55.0, 182.0, tocolor ( 255, 5, 5, 255 ), 1.1, newFonts, "left", "top", false, false, false ) 
     dxDrawText ( message, 130, 168.0, 799.0, 224.0, tocolor ( 255, 255, 255, 255 ), 1.1, newFonts, "left", "top", false, false, false ) 
    end 
    addEventHandler("onClientRender", getRootElement(  ), dx ) 
end 
addEvent ( "sora", true ) 
addEventHandler ( "sora", getRootElement(  ), rdx ) 
bindKey ( "o", "down", "chatbox", "Admin" ) 
  
  
addEventHandler("onClientResourceStart", resourceRoot, 
    function()     
    end 
) 
  

جرب

لم ينجح ماجت الرسالة

Link to comment
  
function rdx ( message ) 
    removeEventHandler ( "onClientRender", getRootElement(  ), dx ) 
    function dx(  ) 
     dxDrawText ( "[ Owner server ] :", 13.0, 167.0, 55.0, 182.0, tocolor ( 255, 5, 5, 255 ), 1.1, "kha.ttf", "left", "top", false, false, false ) 
     dxDrawText ( message, 130, 168.0, 799.0, 224.0, tocolor ( 255, 255, 255, 255 ), 1.1, "kha.ttf", "left", "top", false, false, false ) 
    end 
    addEventHandler("onClientRender", getRootElement(  ), dx ) 
end 
addEvent ( "sora", true ) 
addEventHandler ( "sora", getRootElement(  ), rdx ) 
bindKey ( "o", "down", "chatbox", "Admin" ) 
  

kha.ttf = اسم الخط

Link to comment
  
function rdx ( message ) 
    removeEventHandler ( "onClientRender", getRootElement(  ), dx ) 
    function dx(  ) 
     dxDrawText ( "[ Owner server ] :", 13.0, 167.0, 55.0, 182.0, tocolor ( 255, 5, 5, 255 ), 1.1, "kha.ttf", "left", "top", false, false, false ) 
     dxDrawText ( message, 130, 168.0, 799.0, 224.0, tocolor ( 255, 255, 255, 255 ), 1.1, "kha.ttf", "left", "top", false, false, false ) 
    end 
    addEventHandler("onClientRender", getRootElement(  ), dx ) 
end 
addEvent ( "sora", true ) 
addEventHandler ( "sora", getRootElement(  ), rdx ) 
bindKey ( "o", "down", "chatbox", "Admin" ) 
  

kha.ttf = اسم الخط

اجا وكل شئ بس خط عادي مب الخط الل في الملف

Link to comment

مادري احوي ليش ما رديت بس المهم الكود ذا مجرب تفضل

  
--Client 
  
function rdx ( message ) 
    removeEventHandler ( "onClientRender", getRootElement(  ), dx ) 
    function dx(  ) 
     dxDrawText ( "[ Owner server ] :", 13.0, 167.0, 55.0, 182.0, tocolor ( 255, 5, 5, 255 ), 1.1, "kha.ttf", "left", "top", false, false, false ) 
     dxDrawText ( message, 130, 168.0, 799.0, 224.0, tocolor ( 255, 255, 255, 255 ), 1.1, "kha.ttf", "left", "top", false, false, false ) 
    end 
    addEventHandler("onClientRender", getRootElement(  ), dx ) 
end 
addEvent ( "sora", true ) 
addEventHandler ( "sora", getRootElement(  ), rdx ) 
bindKey ( "o", "down", "chatbox", "Admin" ) 
  
  

meta

<meta> 
    <info 
    author = "3laa" name = "admsg" version = "1" type = "script" 
    /> 
      
    <script src = "Client.lua" type = "client" /> 
    <script src = "Server.lua" type = "server" /> 
    <file src="kha.ttf" />     
  
</meta> 

kha = اسم الملف

ttf = الصيغه ماله

اسف عتاخير كان عندي مشكله بالعبه و حليتها :mrgreen:

Link to comment
مادري احوي ليش ما رديت بس المهم الكود ذا مجرب تفضل
  
--Client 
  
function rdx ( message ) 
    removeEventHandler ( "onClientRender", getRootElement(  ), dx ) 
    function dx(  ) 
     dxDrawText ( "[ Owner server ] :", 13.0, 167.0, 55.0, 182.0, tocolor ( 255, 5, 5, 255 ), 1.1, "kha.ttf", "left", "top", false, false, false ) 
     dxDrawText ( message, 130, 168.0, 799.0, 224.0, tocolor ( 255, 255, 255, 255 ), 1.1, "kha.ttf", "left", "top", false, false, false ) 
    end 
    addEventHandler("onClientRender", getRootElement(  ), dx ) 
end 
addEvent ( "sora", true ) 
addEventHandler ( "sora", getRootElement(  ), rdx ) 
bindKey ( "o", "down", "chatbox", "Admin" ) 
  
  

meta

<meta> 
    <info 
    author = "3laa" name = "admsg" version = "1" type = "script" 
    /> 
      
    <script src = "Client.lua" type = "client" /> 
    <script src = "Server.lua" type = "server" /> 
    <file src="kha.ttf" />     
  
</meta> 

kha = اسم الملف

ttf = الصيغه ماله

اسف عتاخير كان عندي مشكله بالعبه و حليتها :mrgreen:

نفس شئ الخط ماجا

+جرب من عندك انت اي خط تلاقيه

Link to comment
Thefont = dxCreateFont("kha.ttf", 9) 
  
addEvent("sora", true) 
addEventHandler("sora", root, 
function(msg) 
    message = msg 
end) 
bindKey("o", "down", "chatbox", "Admin") 
  
addEventHandler("onClientRender", root, 
function() 
    if message and message ~= "" then 
        dxDrawText(message, 603, 640, 620, 41, tocolor(255, 255, 255, 255), 2, Thefont, "left", "top", false, false, false) 
    end 
end) 
  
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
    triggerServerEvent("SetMessage", localPlayer) 
end) 

Link to comment
Thefont = dxCreateFont("kha.ttf", 9) 
  
addEvent("sora", true) 
addEventHandler("sora", root, 
function(msg) 
    message = msg 
end) 
bindKey("o", "down", "chatbox", "Admin") 
  
addEventHandler("onClientRender", root, 
function() 
    if message and message ~= "" then 
        dxDrawText(message, 603, 640, 620, 41, tocolor(255, 255, 255, 255), 2, Thefont, "left", "top", false, false, false) 
    end 
end) 
  
addEventHandler("onClientResourceStart", resourceRoot, 
function() 
    triggerServerEvent("SetMessage", localPlayer) 
end) 

,اشتغل مشكور تابل

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