Jump to content

MR:SADIQ

Members
  • Posts

    236
  • Joined

  • Last visited

Everything posted by MR:SADIQ

  1. انتم تحطمو معنوياتي كل مره احطه غلط تقولو ان قصدي ابي الكود جاهز + انا ماعرف انج كلش بعض الاوقات استخدم جوجل ترجمة
  2. بسم الله الرحمان الرحيم {يَا أَيُّهَا الَّذِينَ آمَنُوا اجْتَنِبُوا كَثِيرًا مِّنَ الظَّنِّ إِنَّ بَعْضَ الظَّنِّ إِثْمٌ }الحجرات: 12
  3. أًأَأُمٌمٍمِـً B_R-b
  4. function createBlip ( s1 ) setElementVisibleTo ( PlayerTeam, getRootElement ( ), false ) local playerTeam = getPlayerTeam ( nameTeam ) s1 = createBlip ( 249,-1884,1 , 9 )
  5. addEventHandler( "createBlip", rootElement, oncreateBlipHandler ) s1 = createBlip ( 249,-1884,1 , 9 ) setElementVisibleTo ( element Blip, element getPlayerTeam, bool visible ) string getTeamName ( team theTeam )
  6. ابي اسوي بلب على الخريطة يظهر لتيم مخصص وشكراً
  7. --\\\\\\\\\\\\\\\\\\\\\\\\\\ --// Setting local g_screenX, g_screenY = guiGetScreenSize(); local gScale = 0.3; local gAlphaDistance = 25; local gMaxDistance = 50; -- Max Distance local gTextAlpha = 120; local gTextSize = 1; local gAlphaDiff = gMaxDistance - gAlphaDistance; gScale = 1 / gScale * 800 / g_screenY; local gMaxScaleCurve = { { 0, 0 }, { 3, 3 }, { 13, 5 } }; local gTextScaleCurve = { { 0, 0.8 }, { 0.8, 1.2 }, { 99, 99 } }; local gTextAlphaCurve = { { 0, 0 }, { 25, 100 }, { 120, 190 }, { 255, 190 } }; addEventHandler ( 'onClientRender', root, function ( ) -- local x, y, z = getCameraMatrix(); local x1, y1, z1 = getElementPosition ( Player ); local distance_1 = getDistanceBetweenPoints3D( x, y, z, x1, y1, z1 ); local distance_2 = getDistanceBetweenPoints3D( x, y, z, x2, y2, z2 ); local distance_3 = getDistanceBetweenPoints3D( x, y, z, x3, y3, z3 ); -- -- Player if distance_1 <= gMaxDistance then local x1_, y1_ = getScreenFromWorldPosition( x1, y1, z1 + 0.95, 0.06 ); if x1_ and y1_ then -- local scale = 1 / ( gScale * ( distance_1 / gMaxDistance ) ); local alpha = ( ( distance_1 - gAlphaDistance ) / gAlphaDiff ); alpha = ( alpha < 0 ) and gTextAlpha or gTextAlpha - ( alpha * gTextAlpha ); scale = math.evalCurve( gMaxScaleCurve, scale ); local textscale = math.evalCurve( gTextScaleCurve, scale ); local textalpha = math.evalCurve( gTextAlphaCurve, alpha ); -- dxDrawText( "police job", x1_, y1_, x1_, y1_, tocolor ( 255, 255, 255, textalpha ), textscale * gTextSize, "arial", "center", "bottom", false, false, false, true ); end end end ); -- ////////////////////////////////// -- // MATH FUNCTIONS // -- ////////////////////////////////// function math.evalCurve( curve, input ) if input < curve[ 1 ][ 1 ] then return curve[ 1 ][ 2 ]; end for idx = 2, #curve do if input < curve[ idx ][ 1 ] then local x1 = curve[ idx - 1 ][ 1 ]; local y1 = curve[ idx - 1 ][ 2 ]; local x2 = curve[ idx ][ 1 ]; local y2 = curve[ idx ][ 2 ]; local alpha = ( input - x1 ) / ( x2 - x1 ); return math.lerp( y1, y2, alpha ); end end return curve[ #curve ][ 2 ]; end function math.lerp( from, to, alpha ) return from + ( to-from ) * alpha; end كدا يصير؟
  8. سيرفر local x,y,z = getElementPosition( Text ) Text = createText ( 562, 1591.596680, -2495.323242, 18.098244 ) s كلنت guiGridListGetSelectedItem ( playerList ), 1 ) addEventHandler ( "onClientGUIClick", playerList, click ) dxDrawText ( playerZoneName, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) end function HandleTheRendering ( ) addEventHandler ( "onClientRender", root, createText ) -- keep the text visible with onClientRender. end
  9. مافي ولا شي بلكود صح؟؟
  10. ههه اول مره استخدم فكشن الدي اكس والجريد لست
  11. addEventHandler ( "onClientGUIClick", playerList, click ) end end addEventHandler ( "onClientResourceStart", getRootElement(), createPlayerList function click ( button, state, sx, sy, x, y, z, elem, gui ) end end function createText ( ) dxDrawText ( playerZoneName, 44, screenHeight - 41, screenWidth, screenHeight, tocolor ( 0, 0, 0, 255 ), 1.02, "pricedown" ) dxDrawText ( playerZoneName, 44, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "pricedown" ) end
  12. انا سويت gridlist احين ابي اذا اخترت كلمة من لقريد لست تصير الكلمة الي اختارها فوق الاعب وشكراً
  13. بس اخبركم + انا مجرد عضو
  14. الموضوع مخالف 1- العنوان 2- طلب الكود جاهز
  15. مو كنه اسم الموضوع مخالف؟؟
  16. كودي كلنت addEventHandler("onClientGUIClick", root, function() if(source == i1) then triggerServerEvent("spawn",localPlayer) end end) سيرفر addEvent("spawn",true) addEventHandler("spawn",root, function () outputChatBox("...", source, 255, 0, 0, true) spawnPlayer (source, 1794.5008544922, math.random(1334.1871337891,1336.1871337891), 6.7346267700195, 123) setElementModel ( source, 30 ) end)
  17. اذا ابي اخلي وضيفة onClientGUIClick تنقلك لمكان وتغير ملابسك استخدم؟ spawnPlayer setElementModel صح؟ قلت اسألكم قبل لا اسويهم ويطلعو الفكشنات غلط
  18. ابي اسأ لكم شنو الفكشنات الي ستخدمتوها بلمود وشكراً
  19. ابي اخليه يغلق اللوحة اذا ضغط يعني ابي امرين في زر شنو الفكشنات
×
×
  • Create New...