Dr.Xen Posted May 26, 2014 Posted May 26, 2014 السلام عليكم ورحمة الله وبركاته ابي تعديل للكود لأهنتوا ابيه يطلع في الشات كلام يوم يكتب ض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)
K1NG Posted May 26, 2014 Posted May 26, 2014 السلام عليكم ورحمة الله وبركاتهابي تعديل للكود لأهنتوا ابيه يطلع في الشات كلام يوم يكتب ض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 ... م يجي صور مكانهم .. إذاً قفل المود حق الفيسات وإنتهى الموضوع
ΞĪŚŚÀ Posted May 26, 2014 Posted May 26, 2014 السلام عليكم ورحمة الله وبركاتهابي تعديل للكود لأهنتوا ابيه يطلع في الشات كلام يوم يكتب ض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 -- اخراج الكلام في الشات
Dr.Xen Posted May 27, 2014 Author Posted May 27, 2014 لا انا فكرتي غير مثلا لو كتبت اسمي في الشات يقولك أنس مشغول
#Al-Ha[J]aRii Posted May 27, 2014 Posted May 27, 2014 جرب ورد لي خبر addEventHandler("onPlayerChat",root, function(msg) if string.find(msg,"أنس") then outputChatBox("أنس مشغول الآن",source) end end )
K1NG Posted May 27, 2014 Posted May 27, 2014 ابي يطلع للكل : root إلى source عدل سطر 4 من outputChatBox ( "أنس مشغول الآن", root )
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now