momar5700 Posted October 5, 2015 Share Posted October 5, 2015 انا عندي مود شريط القوانين بس ابي كود ممكن ابي تكتب كلمة في اف 8 تروحشريط قوانين او يخفي شريط القوانين ولما يكتبه ممرة ثانيه يررجع شريط القوانين......هن ممكم تعطوني كود ده ولا عضوني الويكي msg = { "حيااكم الله بسيرفر ابو طلال للهجولة والحرب .. منورين السيرفر ", "نرجو منكم عدم الضغط على صاحب السيرفر وعدم طلب الادمنية", "يمنع السب والشتم.. في النهايه اللي تكلمهم اخوانك", "شروط الادمنيه بسيطة :تواجد 3 ايام .امتلاك خبره بالادمنية.لا تتكبر ع الاخرين.عدم طلب الترقيه", "في حال وجود مخالف. سوى كان زائر او ادمن ..قم بالتبليغ عليه بالرسائل الخاصة", "مقدرين لكم تعاونكم وشكرا . اخوكم : رائد البقعاوي.~", } r,g,b = 254,168,0 rr,gg,bb = 0,0,0 num = 1 px = 0 -------------------- function getColor() return r,g,b end function getBackColor() return rr,gg,bb end function setColor(tr,tg,tb) r,g,b = tr,tg,tb end function setBackColor(r,g,b) rr,gg,bb = r,g,b end addEventHandler("onClientRender",root, function () local x,y = guiGetScreenSize() dxDrawRectangle(0,y - 20,x,y,tocolor(rr,gg,bb,120)) dxDrawText(msg[num],px,y - 20,x,y,tocolor(r,g,b,255),1.5,"default-bold","center","center",false,false,false,true) end ) function makeTurn() local x,y = guiGetScreenSize() local x = x + 50 if px >= x then px = -x setMsg() else px = px + 6 end end function setMsg() if num == #msg then num = 1 else num = num + 1 end end ---- start = setTimer(makeTurn,50,0) Link to comment
iMr.SFA7 Posted October 5, 2015 Share Posted October 5, 2015 msg = { "حيااكم الله بسيرفر ابو طلال للهجولة والحرب .. منورين السيرفر ", "نرجو منكم عدم الضغط على صاحب السيرفر وعدم طلب الادمنية", "يمنع السب والشتم.. في النهايه اللي تكلمهم اخوانك", "شروط الادمنيه بسيطة :تواجد 3 ايام .امتلاك خبره بالادمنية.لا تتكبر ع الاخرين.عدم طلب الترقيه", "في حال وجود مخالف. سوى كان زائر او ادمن ..قم بالتبليغ عليه بالرسائل الخاصة", "مقدرين لكم تعاونكم وشكرا . اخوكم : رائد البقعاوي.~", } r,g,b = 254,168,0 rr,gg,bb = 0,0,0 num = 1 px = 0 -------------------- function getColor() return r,g,b end function getBackColor() return rr,gg,bb end function setColor(tr,tg,tb) r,g,b = tr,tg,tb end function setBackColor(r,g,b) rr,gg,bb = r,g,b end function Dx() local x,y = guiGetScreenSize() dxDrawRectangle(0,y - 20,x,y,tocolor(rr,gg,bb,120)) dxDrawText(msg[num],px,y - 20,x,y,tocolor(r,g,b,255),1.5,"default-bold","center","center",false,false,false,true) end addEventHandler ("onClientRender", root,Dx) function makeTurn() local x,y = guiGetScreenSize() local x = x + 50 if px >= x then px = -x setMsg() else px = px + 6 end end function setMsg() if num == #msg then num = 1 else num = num + 1 end end ---- start = setTimer(makeTurn,50,0) addCommandHandler ("dsljkslkdfhsakhfsa", function ( ) if ( isEventHandlerAdded ("onClientRender", root,Dx) ) then removeEventHandler ("onClientRender",root,Dx) else addEventHandler ("onClientRender",root,Dx) end end ) function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end \: الكوماند تغيره من سطر 55 Link to comment
momar5700 Posted October 5, 2015 Author Share Posted October 5, 2015 ادري كيف تغير كلمة بس هادا الكود وش وظيفته الي انت حاطه اخر شيء function isEventHandlerAdded( sEventName, pElementAttachedTo, func ) if type( sEventName ) == 'string' and isElement( pElementAttachedTo ) and type( func ) == 'function' then local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo ) if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then for i, v in ipairs( aAttachedFunctions ) do if v == func then return true end end end end return false end Link to comment
' A F . Posted October 5, 2015 Share Posted October 5, 2015 msg = { "حيااكم الله بسيرفر ابو طلال للهجولة والحرب .. منورين السيرفر ", "نرجو منكم عدم الضغط على صاحب السيرفر وعدم طلب الادمنية", "يمنع السب والشتم.. في النهايه اللي تكلمهم اخوانك", "شروط الادمنيه بسيطة :تواجد 3 ايام .امتلاك خبره بالادمنية.لا تتكبر ع الاخرين.عدم طلب الترقيه", "في حال وجود مخالف. سوى كان زائر او ادمن ..قم بالتبليغ عليه بالرسائل الخاصة", "مقدرين لكم تعاونكم وشكرا . اخوكم : رائد البقعاوي.~", } r,g,b = 254,168,0 rr,gg,bb = 0,0,0 num = 1 px = 0 -------------------- function getColor() return r,g,b end function getBackColor() return rr,gg,bb end function setColor(tr,tg,tb) r,g,b = tr,tg,tb end function setBackColor(r,g,b) rr,gg,bb = r,g,b end Showing = true addEventHandler('onClientRender',root, function ( ) if ( Showing == true ) then local x,y = guiGetScreenSize() dxDrawRectangle(0,y - 20,x,y,tocolor(rr,gg,bb,120)) dxDrawText(msg[num],px,y - 20,x,y,tocolor(r,g,b,255),1.5,"default-bold","center","center",false,false,false,true) end end) function makeTurn() local x,y = guiGetScreenSize() local x = x + 50 if px >= x then px = -x setMsg() else px = px + 6 end end function setMsg() if num == #msg then num = 1 else num = num + 1 end end ---- start = setTimer(makeTurn,50,0) addCommandHandler('Show', function ( ) Showing = not Showing end) msg = { "حيااكم الله بسيرفر ابو طلال للهجولة والحرب .. منورين السيرفر ", "نرجو منكم عدم الضغط على صاحب السيرفر وعدم طلب الادمنية", "يمنع السب والشتم.. في النهايه اللي تكلمهم اخوانك", "شروط الادمنيه بسيطة :تواجد 3 ايام .امتلاك خبره بالادمنية.لا تتكبر ع الاخرين.عدم طلب الترقيه", "في حال وجود مخالف. سوى كان زائر او ادمن ..قم بالتبليغ عليه بالرسائل الخاصة", "مقدرين لكم تعاونكم وشكرا . اخوكم : رائد البقعاوي.~", } r,g,b = 254,168,0 rr,gg,bb = 0,0,0 num = 1 px = 0 -------------------- function getColor() return r,g,b end function getBackColor() return rr,gg,bb end function setColor(tr,tg,tb) r,g,b = tr,tg,tb end function setBackColor(r,g,b) rr,gg,bb = r,g,b end Showing = true addEventHandler('onClientRender',root, function ( ) if ( Showing == true ) then local x,y = guiGetScreenSize() dxDrawRectangle(0,y - 20,x,y,tocolor(rr,gg,bb,120)) dxDrawText(msg[num],px,y - 20,x,y,tocolor(r,g,b,255),1.5,"default-bold","center","center",false,false,false,true) end end) function makeTurn() local x,y = guiGetScreenSize() local x = x + 50 if px >= x then px = -x setMsg() else px = px + 6 end end function setMsg() if num == #msg then num = 1 else num = num + 1 end end ---- start = setTimer(makeTurn,50,0) addCommandHandler('Show', function ( ) Showing = not Showing end) هاذا أسهل .. ^ 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