-
Posts
275 -
Joined
-
Last visited
-
Days Won
2
Everything posted by #CroSs
-
أنت وش تبي تسوي بالظبط ، لأني ما فهمت عليك عندك زرين واحد يخليك بتيم شرطة ويعطيك عصا وثاني يخليك بنوتيم ويشيل العصا لو كانت عندك ؟
-
default-bold-small خطوط الدي اكس مافيها خط اسمه function drawRows() dxDrawRectangle((x - 550)/2, 0, 600, R, tocolor(0, 0, 0, 250)) for i, row in pairs(Rows) do dxDrawText( row[1], (x - 540)/2, row[3] - 20, (x - 600) / 2 + 600, row[3], row[2], 1.0, "default-bold", "center", "center", false, false, false, true, false ) end end addEventHandler("onClientPreRender", root, drawRows)
-
مو شرط اسم الفنكشن او مثل ما تقول كود برمجي يبدا بحرف صغير تقدر تسوي اسم لفنكشن يبدأ بحرف كبير او فنكشن اسمه خرابيط بس المهم انه ما يبدا برقم function ASDASDASDaskdlhasdaskjgdasgdasjkgdk( string ) if ( string ) and ( type( string ) == "string" ) then print( string ) end end ASDASDASDaskdlhasdaskjgdasgdasjkgdk( "This is a string" )
-
طيب تبي تسوي لوحة تسجيل وانت ماتعرف تبرمج ؟
-
. صور ايش ؟ ، كله يعطي فلوس
-
ما جات على بالي interpolateBetween . المهم أن الطريقتين صح
-
local Alpha = 255 local AlphaDown = true addEventHandler( "onClientRender", root, function() if ( AlphaDown ) then if ( Alpha >= 255 ) then Alpha = 254 elseif ( Alpha < 255 ) and ( Alpha > 0 ) then Alpha = Alpha - 1 elseif ( Alpha <= 0 ) then Alpha = 1 AlphaDown = not AlphaDown end else if ( Alpha >= 255 ) then Alpha = 254 AlphaDown = not AlphaDown elseif ( Alpha < 255 ) and ( Alpha > 0 ) then Alpha = Alpha + 1 elseif ( Alpha <= 0 ) then Alpha = 1 end end dxDrawText ( "الكلام", left, top, right, bottom, tocolor( 255, 255, 255, Alpha ), 1, "default-bold", "center", "center", false, false, false, true ) end)
-
وش قصدك بالتدريج ؟ يعني الشفافية كل شوي تزيد لـ 255 بعدين تنقص لـ 0 وهكذا ؟
-
Show = true setTimer( function() Show = not Show end, 100, 0 ) addEventHandler( "onClientRender", root, function() if ( Show ) then dxDrawText.. end end)
-
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)
-
اسم فنكشن إلي يرسل رسالة في الشات خطأ+ بيطلع الكلام للكل مو بس للاعب إلي دخل : يصير كذا function jaber() outputChatBox( "حياكم الله في سيرفر GTA-AF", source ) outputChatBox( "منورين السيرفر", source ) end addEventHandler( "onPlayerJoin", getRootElement(), jaber ) شكراً لك تم التعديل+تعلم شيئ اخر You Are Welcome .
-
اسم فنكشن إلي يرسل رسالة في الشات خطأ+ بيطلع الكلام للكل مو بس للاعب إلي دخل : يصير كذا function jaber() outputChatBox( "حياكم الله في سيرفر GTA-AF", source ) outputChatBox( "منورين السيرفر", source ) end addEventHandler( "onPlayerJoin", getRootElement(), jaber )
-
كنت حاط الإحداثيات عشوائية بس سويته إحداثيات محددة ، ما عليك إلا أن تحط الإحداثيات هنا local x, y, z = 0, 0, 0 local x, y, z = 0, 0, 0 function Wasted() local player = getRandomPlayer() if not ( getElementData( player, "Warped" ) == true ) then setElementPosition ( player, x, y, z ) setElementData( player, "Warped", true ) else for _, plr in ipairs ( getElementsByType( "player" ) ) do if not ( getElementData( plr, "Warped" ) == true ) then setElementPosition ( plr, x, y, z ) setElementData( plr, "Warped", true ) break end end end end addEventHandler( "onPlayerWasted", root, Wasted )
-
addEventHandler( "onPlayerJoin", root, function() exports["hud_messages"]:showBox( "#FE9A2E##005BCB* ( "..getPlayerName( source ).."#005BCB ) Has been joined", root, 0, 255, 0, 10 ) end) addEventHandler( "onPlayerChangeNick", root, function( oldNick, newNick ) exports["hud_messages"]:showBox( "#FE9A2E##00FF00 #D4AE06 ( "..oldNick.."#D4AE06 )#D4AE06 Has been changed his nick to ##D4AE06( "..newNick.."#D4AE06 )", root, 0, 255, 0, 10 ) end) addEventHandler( "onPlayerQuit", root, function( reason ) exports["hud_messages"]:showBox( "#FE9A2E# #FF6464* ( " .. getPlayerName( source ) .. "#FF6464 ) Has been left the server [ " .. reason .. " ]", root, 255, 255, 255, 10 ) end) addEventHandler( "onPlayerLogin", root, function( _, account ) if ( isObjectInACLGroup( "user."..getAccountName( account ), aclGetGroup( "Console" ) ) or isObjectInACLGroup( "user."..getAccountName( account ), aclGetGroup( "Admin" ) ) ) then exports["hud_messages"]:showBox( "#FE9A2E##CC0000* #FFFFFF[#CC0000 Server Owner#FFFFFF ] #CC0000( "..getPlayerName( source ).."#CC0000) #FF0000 Has been succesfuly Logged in", root, 204, 51, 255, 10 ) else exports["hud_messages"]:showBox( "#FE9A2E##04B404* ("..getPlayerName( source )..") #04B404 Has been succesfuly Logged in", root, 204, 51, 255, 10 ) end end) addEventHandler( "onPlayerLogout", root, function() exports["hud_messages"]:showBox( "#FE9A2E##FFC900* ( "..getPlayerName( source ).."#FFC900 ) Has been succesfuly Logged out", root, 0, 255, 0, 10 ) end)
-
الأكواد خرابيط , وانت ما تعرف تبرمج ومساعدتك يعني نسوي لك المود كامل
-
local entermark = createMarker( 1100.60962 , 1597.18494, 13.54688, "arrow", 1.6, 255, 255, 0 ) local pos = { { -3231.86914 ,2057.94629 ,31.59201 }, { -3320.76880 ,1991.98511 ,44.09201 }, { -3306.86157 ,2112.84399 ,44.09201 }, { -3351.91675 ,2121.06616 ,44.09201 }, { -3368.96924 ,2027.43518 ,31.59201 }, { -3396.28687 ,2063.67407 ,31.59201 }, { -3368.41772 ,2091.98657 ,31.59201 }, { -3325.93262 ,2041.21875 ,31.59201 }, { -3307.50342 ,2062.55981 ,31.59201 }, { -3353.47192 ,2079.40942 ,31.59201 }, { -3294.45288 ,2076.11523 ,31.59201 }, { -3280.50366 ,2058.91284 ,31.59201 }, { -3230.68555 ,2097.99634 ,31.59201 }, { -3430.72168 ,2099.43921 ,44.09201 }, { -3435.64160 ,2045.14905 ,44.09201 }, { -3411.35474 ,2017.30530 ,44.09201 }, { -3400.87427 ,2065.05591 ,44.30000 }, { -3384.66821 ,2101.92114 ,44.09201 }, { -3327.31348 ,2064.28345 ,44.30000 } } addEventHandler( "onClientMarkerHit", root, function( hitPlayer ) if ( source == entermark ) and ( hitPlayer == localPlayer ) then if ( #pos > 0 ) then local Random = math.random( #pos ) local x, y, z = unpack( pos[Random] ) setElementPosition ( hitPlayer, x, y, z ) setElementDimension ( hitPlayer, 30 ) table.remove( pos, Random ) end end end)
-
function Wasted() local player = getRandomPlayer() if not ( getElementData( player, "Warped" ) == true ) then setElementPosition ( player, math.random( 1000, 1500 ), math.random( 1000, 1500 ), math.random( 100, 150 ) ) setElementData( player, "Warped", true ) else for _, plr in ipairs ( getElementsByType( "player" ) ) do if not ( getElementData( plr, "Warped" ) == true ) then setElementPosition ( plr, math.random( 1000, 1500 ), math.random( 1000, 1500 ), math.random( 100, 150 ) ) setElementData( plr, "Warped", true ) break end end end end addEventHandler( "onPlayerWasted", root, Wasted )
-
addEventHandler( "onClientRender", root, function() if ( isCursorShowing() ) then setCursorAlpha( 0 ) local posX, posY = getCursorPosition() dxDrawImage( posX, posY, width ( عرض الصورة ), height ( طول الصورة ), "Src" ) -- صورة الماوس end end)
-
من اصل اللعبة استخدم ذا الكود عشان يكون اوضح 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
-
كل حدث له سورس خاص به يعني مثلا onPlayerJoin السورس حقه هو الاعب اللي دخل onClientGUIClick السورس حقه العنصر اللي انضغط عليه و هكذا... طيب كيف تعرف السورس؟ من الويكي ادخل علي الايفنت بتلاقي كلمة Source بخط كبير و بتلاقي تحت السورس تقدر تترجمها بقوقل اي خطأ يرجي التصحيح الي فهمته من كﻻمك السورس للي صار عليه حدث صحيح؟ مثﻻ onClientGUIClick واحط يرسل لشات تم ضغط الزر وبنهاية سوريس يجي لنفس الي ضغط الزر صحيح؟؟ لو كﻻمي فيه غلط او حد عنده اضافة يقول ﻻني ملخبط بذي الامور كلامك صح إلي صار عليه الحدث ، بس السورس مو إلي ظغط الزر السورس هو الزر إلي انظغط ، لأن الزر هو إلي صار عليه الحدث مثال onClientMarkerHit هنا السورس مو اللاعب إلي لمس الماركر ، هنا السورس إلي صار عليه الحدث إلي هو الماركر نفسه
-
تراه يضيف بس كان عندي خطأ بسيط ما انتبهت له name المفروض اخليها Name ارجع خذ الكود