z24d Posted September 23, 2015 Share Posted September 23, 2015 السلام عليكم انا اذا طلعت رسالة بالمود هذا يجيب لي لاق شنيييععع مع انه كمبيوتري كويس ويشغل اللعبة علا 100 فريم لاكن اذا جت رسالة يقلل مره function dxDrawFramedText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, ColorCoded, frameColor ) if ( ColorCoded == true ) then message1 = string.gsub( message, "#%x%x%x%x%x%x", "" ) message2 = message else message1 = message message2 = message end local color = color or tocolor(255, 255, 255, 255) local frameColor = frameColor or tocolor(0, 0, 0, 255) local scale = scale or 1.1 local font = font or "default" local alignX = alignX or "left" local alignY = alignY or "top" local clip = clip or false local wordBreak = wordBreak or false postGUI = postGUI or false dxDrawText( message1, left + 1, top + 1, width + 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message1, left + 1, top - 1, width + 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message1, left - 1, top + 1, width - 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message1, left - 1, top - 1, width - 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message2, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, ColorCoded ) end local x, y = guiGetScreenSize() local Rows = {} local R = 0 function outputClient(text, r, g, b) local r = r or 255 local g = g or 255 local b = b or 255 local color = tocolor(r, g, b, 255) R = R + 17 table.insert(Rows, {text, color, R}) setTimer(function() setTimer(function() if R > 0 then R = R - 1 for i, row in pairs(Rows) do Rows[i] = {row[1], row[2], row[3] - 1.0} if row[3] <= 0 then table.remove(Rows, i) end end end end, 50, 17) end, 10000, 1) end addEvent("calloutputClient", true) addEventHandler("calloutputClient", root, outputClient) function drawRows() dxDrawRectangle((x - 550)/2, 0, 600, R, tocolor(0, 0, 0, 162), false) for i, row in pairs(Rows) do dxDrawFramedText(row[1], (x - 540)/2, row[3] - 20, (x - 600) / 2 + 600, row[3], row[2], 1.1, "default-bold", "center", "top", true, false, false, true, true) end end addEventHandler("onClientPreRender", root, drawRows) Link to comment
#CroSs Posted September 23, 2015 Share Posted September 23, 2015 function dxDrawFramedText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, ColorCoded, frameColor ) if ( ColorCoded == true ) then message1 = string.gsub( message, "#%x%x%x%x%x%x", "" ) message2 = message else message1 = message message2 = message end local color = color or tocolor(255, 255, 255, 255) local frameColor = frameColor or tocolor(0, 0, 0, 255) local scale = scale or 1.1 local font = font or "default" local alignX = alignX or "left" local alignY = alignY or "top" local clip = clip or false local wordBreak = wordBreak or false postGUI = postGUI or false dxDrawText( message1, left + 1, top + 1, width + 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message1, left + 1, top - 1, width + 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message1, left - 1, top + 1, width - 1, height + 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message1, left - 1, top - 1, width - 1, height - 1, frameColor, scale, font, alignX, alignY, clip, wordBreak, postGUI, false ) dxDrawText( message2, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI, ColorCoded ) end local x, y = guiGetScreenSize() local Rows = {} local R = 0 function outputClient(text, r, g, b) local r = r or 255 local g = g or 255 local b = b or 255 local color = tocolor(r, g, b, 255) R = R + 17 table.insert(Rows, {text, color, R}) setTimer(function() setTimer(function() if R > 0 then R = R - 1 for i, row in pairs(Rows) do Rows[i] = {row[1], row[2], row[3] - 1.0} if row[3] <= 0 then table.remove(Rows, i) end end end end, 50, 17) end, 10000, 1) end addEvent("calloutputClient", true) addEventHandler("calloutputClient", root, outputClient) function drawRows() dxDrawRectangle((x - 550)/2, 0, 600, R, tocolor(0, 0, 0, 162), false) for i, row in pairs(Rows) do dxDrawFramedText( row[1], (x - 540)/2, row[3] - 20, (x - 600) / 2 + 600, row[3], row[2], 1.1, "default-bold", "center", "top", true, false, false, true, tocolor( 0, 0, 0, 255 ) ) end end addEventHandler("onClientPreRender", root, drawRows) Link to comment
z24d Posted September 23, 2015 Author Share Posted September 23, 2015 لاهنت ياخوي بس الخط مايطلع واضح ليش؟؟ Link to comment
Me[Z]oO Posted September 27, 2015 Share Posted September 27, 2015 قم بكتابة debugscript 3 ورح تعرف وش السبب Link to comment
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