oscarhrb Posted May 15, 2018 Share Posted May 15, 2018 عندي لوحة تسجيل تسجل دخول بس لما اسوي حساب ماتسوي مع العلم اني ضايفها لقروب الادمن والديبق يقول وهاذي اكواد الملف الي مكتوب بالديبق function OutPut(message, player, r, g, b) triggerClientEvent(player, "client:dxOutputMessage", player, message, r, g, b) end addEvent("server:outputMessage", true) addEventHandler("server:outputMessage", root, function(message, r, g, b) OutPut(message, source, r, g, b) end ) Link to comment
+Source|> Posted May 15, 2018 Share Posted May 15, 2018 1 hour ago, oscarhrb said: عندي لوحة تسجيل تسجل دخول بس لما اسوي حساب ماتسوي مع العلم اني ضايفها لقروب الادمن والديبق يقول وهاذي اكواد الملف الي مكتوب بالديبق function OutPut(message, player, r, g, b) triggerClientEvent(player, "client:dxOutputMessage", player, message, r, g, b) end addEvent("server:outputMessage", true) addEventHandler("server:outputMessage", root, function(message, r, g, b) OutPut(message, source, r, g, b) end ) اطرح الحدث المستقبل من الكلينت Link to comment
oscarhrb Posted May 15, 2018 Author Share Posted May 15, 2018 2 minutes ago, +Source|> said: اطرح الحدث المستقبل من الكلينت كيف اعرف الحدث ؟ 3 minutes ago, +Source|> said: اطرح الحدث المستقبل من الكلينت هاذي اكواد الكلنت local Width, screenHeight = guiGetScreenSize() local left = Width / 1440 * 983 local changeleft = left local difference = Width / 1440 * 20 local curMessage = "" local curColor = { 255, 255, 255 } local moving = false local movingBack = false local movingBackTimer addEventHandler("onClientRender", root, function() dxDrawFramedText(curMessage, changeleft, screenHeight / 900 * 518, changeleft + Width / 1440 * 456, screenHeight / 900 * 645, tocolor(curColor[1], curColor[2], curColor[3], 255), 1, "default-bold", "left", "center", false, true, true) end) function dxOutputMessage(message, r, g, b) if moving then removeEventHandler("onClientRender", root, moveMessage) end if movingBack then removeEventHandler("onClientRender", root, moveMessageBack) end if isTimer(movingBackTimer) then killTimer(movingBackTimer) end changeleft = Width / 1440 * 1450 curMessage = message curColor = { r, g, b } movingBackTimer = setTimer(hideMessage, 5000, 1) addEventHandler("onClientRender", root, moveMessage) moving = true end function moveMessage() changeleft = changeleft - difference if changeleft <= left then removeEventHandler("onClientRender", root, moveMessage) changeleft = Width / 1440 * 983 moving = false end end function hideMessage() movingBack = true addEventHandler("onClientRender", root, moveMessageBack) end function moveMessageBack() changeleft = changeleft + difference if changeleft >= Width / 1440 * 1440 then removeEventHandler("onClientRender", root, moveMessageBack) changeleft = Width / 1440 * 1440 movingBack = false end end function dxDrawFramedText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left + 1, top + 1, width + 1, height + 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left + 1, top - 1, width + 1, height - 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left - 1, top + 1, width - 1, height + 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left - 1, top - 1, width - 1, height - 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI) end addEvent("client:dxOutputMessage", true) addEventHandler("client:dxOutputMessage", root, function(message, r, g, b) dxOutputMessage(message, r, g, b) end) function outputMessage(message, r, g, b) triggerServerEvent("server:outputMessage", localPlayer, message, r, g, b) end Link to comment
oscarhrb Posted May 16, 2018 Author Share Posted May 16, 2018 15 hours ago, oscarhrb said: كيف اعرف الحدث ؟ هاذي اكواد الكلنت local Width, screenHeight = guiGetScreenSize() local left = Width / 1440 * 983 local changeleft = left local difference = Width / 1440 * 20 local curMessage = "" local curColor = { 255, 255, 255 } local moving = false local movingBack = false local movingBackTimer addEventHandler("onClientRender", root, function() dxDrawFramedText(curMessage, changeleft, screenHeight / 900 * 518, changeleft + Width / 1440 * 456, screenHeight / 900 * 645, tocolor(curColor[1], curColor[2], curColor[3], 255), 1, "default-bold", "left", "center", false, true, true) end) function dxOutputMessage(message, r, g, b) if moving then removeEventHandler("onClientRender", root, moveMessage) end if movingBack then removeEventHandler("onClientRender", root, moveMessageBack) end if isTimer(movingBackTimer) then killTimer(movingBackTimer) end changeleft = Width / 1440 * 1450 curMessage = message curColor = { r, g, b } movingBackTimer = setTimer(hideMessage, 5000, 1) addEventHandler("onClientRender", root, moveMessage) moving = true end function moveMessage() changeleft = changeleft - difference if changeleft <= left then removeEventHandler("onClientRender", root, moveMessage) changeleft = Width / 1440 * 983 moving = false end end function hideMessage() movingBack = true addEventHandler("onClientRender", root, moveMessageBack) end function moveMessageBack() changeleft = changeleft + difference if changeleft >= Width / 1440 * 1440 then removeEventHandler("onClientRender", root, moveMessageBack) changeleft = Width / 1440 * 1440 movingBack = false end end function dxDrawFramedText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left + 1, top + 1, width + 1, height + 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left + 1, top - 1, width + 1, height - 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left - 1, top + 1, width - 1, height + 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left - 1, top - 1, width - 1, height - 1, tocolor(0, 0, 0, 255), scale, font, alignX, alignY, clip, wordBreak, postGUI) dxDrawText(message, left, top, width, height, color, scale, font, alignX, alignY, clip, wordBreak, postGUI) end addEvent("client:dxOutputMessage", true) addEventHandler("client:dxOutputMessage", root, function(message, r, g, b) dxOutputMessage(message, r, g, b) end) function outputMessage(message, r, g, b) triggerServerEvent("server:outputMessage", localPlayer, message, r, g, b) end ارجو الرد Link to comment
+Source|> Posted May 16, 2018 Share Posted May 16, 2018 3 hours ago, oscarhrb said: ارجو الرد ارسلي المود خاص Link to comment
فاّرس Posted May 16, 2018 Share Posted May 16, 2018 ما أشوف عندك خطأ، تأكد من الميتا؟ ويمكن تحديث اللعبه عندك قديم وفيه مشاكل؟ 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