Jump to content

تعديل كود


Recommended Posts

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

ابي تعديل للكود لأهنتوا

ابيه يطلع في الشات كلام يوم يكتب ض1

مو تطلع صورة ..

    if string.find(txt,"ض1") then 
        local text = string.gsub(txt,"ض1","") 
        local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) 
        local lfin = convertirRelativo(len) 
        outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 
        local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q1.png",true) 
        setTimer(outputChatBox,50,1,"") 
    end 
end) 
  

Link to comment
السلام عليكم ورحمة الله وبركاته

ابي تعديل للكود لأهنتوا

ابيه يطلع في الشات كلام يوم يكتب ض1

مو تطلع صورة ..

    if string.find(txt,"ض1") then 
        local text = string.gsub(txt,"ض1","") 
        local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) 
        local lfin = convertirRelativo(len) 
        outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 
        local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q1.png",true) 
        setTimer(outputChatBox,50,1,"") 
    end 
end) 
  

?

. وضح اكثر لاهنت / إذا تقصد انه يوم تكتب ض1، ض2، ض3 ... م يجي صور مكانهم .. إذاً قفل المود حق الفيسات وإنتهى الموضوع

Link to comment
السلام عليكم ورحمة الله وبركاته

ابي تعديل للكود لأهنتوا

ابيه يطلع في الشات كلام يوم يكتب ض1

مو تطلع صورة ..

    if string.find(txt,"ض1") then 
        local text = string.gsub(txt,"ض1","") 
        local len = dxGetTextWidth(text,chatbox["chat_scale"][1],font) 
        local lfin = convertirRelativo(len) 
        outputDebugString("LEN="..tostring(len).." LFIN="..tostring(lfin)) 
        local img = guiCreateStaticImage(0.01875+lfin,0.02+(0.025*(lineas-1)),0.02,0.025,"imagenes/q1.png",true) 
        setTimer(outputChatBox,50,1,"") 
    end 
end) 
  

ِ

ِ

  
'opPlayerChat' -- حدث عند كتابة الكلمة 
outputChatBox -- اخراج الكلام في الشات  
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...