-
Posts
288 -
Joined
-
Last visited
Everything posted by Bo7meeeD
-
اذا كان القيم مود اللي تستخدمه بلاي عدل على ملف البلاي [quote="فتى تبوك"][lua]addEventHandler("onResourceStart", resourceRoot, function() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end repeat until spawnPlayer ( player, X+math.random(1,5), Y+math.random(5,9), Z, 180, Skin, 0, 0) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) بدل الـ X z y بالاحداثيات وبدل الـ skin برقم الشخصيه [/lua] جآك الخبير في البرمجه وش تحس بوه =)
-
اذا كان القيم مود اللي تستخدمه بلاي عدل على ملف البلاي [quote="فتى تبوك"][lua]addEventHandler("onResourceStart", resourceRoot, function() resetMapInfo() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) function spawn(player) if not isElement(player) then return end repeat until spawnPlayer ( player, X+math.random(1,5), Y+math.random(5,9), Z, 180, Skin, 0, 0) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) بدل الـ X z y بالاحداثيات وبدل الـ skin برقم الشخصيه [/lua]
-
هذا أول مايدخل الاعب راح يضعة في الاحداثيات المحددة اللي هي x, y, z وتقدر تغيرها انت
-
ذا اذا دخل الاعب يضعه في الاحداثيات المحددة
-
شباب انا مسوي مود يحسب كم واحد في الكول شيب بس المشكلة انه اذا دخلت الكول شيب يحسب واحد واذا دخل واحد ثاني يحسبله واحد بمعنى انه كل واحد يحسبله نفسه بس ! هذا الكود سيرفر mohamad = createColCuboid( 1354.9476318359, -1001.4436645508, 1000, 1000, 2000, 2000 ) addEventHandler ( "onColShapeHit", getRootElement(), function (hitPlayer) if source == mohamad then triggerClientEvent ( hitPlayer, "lbl3", hitPlayer ) end end ) addEventHandler ( "onColShapeLeave", root, function (thePlayer) if source == mohamad then triggerClientEvent ( thePlayer, "lbl4", thePlayer ) end end ) addEvent ("lbl3", true ) hit = 1 hit2 = 1 addEventHandler ( "lbl3", root, function () guiSetVisible ( lbl1 ,true ) guiSetVisible ( lbl2 ,true ) guiLabelSetColor ( lbl1, 255, 0, 0 ) guiLabelSetColor ( lbl2, 0, 0, 255 ) if (getTeamName(getPlayerTeam(localPlayer))=="Criminal")then guiSetText (lbl1, " Criminal "..hit ) hit = ( hit - 1 ) end if (getTeamName(getPlayerTeam(localPlayer))=="Police")then guiSetText ( lbl2, " Police "..hit2) hit2 = ( hit2 - 1 ) end end ) addEvent ("lbl4", true ) addEventHandler ( "lbl4", root, function () if (getTeamName(getPlayerTeam(localPlayer))=="Criminal")then guiSetText (lbl1, " Criminal "..hit ) hit = ( hit + 1 ) end if (getTeamName(getPlayerTeam(localPlayer))=="Police")then guiSetText ( lbl2, " Police "..hit2) hit2 = ( hit2 + 1 ) end end ) addEvent('hide',true) addEventHandler('hide',root, function() guiSetVisible ( lbl1 ,false ) guiSetVisible ( lbl2 ,false ) end )
-
فيه عدة طرق لحفظ الاشياء SQL - مثل ما قال اخونا عاشق الشرق mySQL XML الابسط لك xml بس الافضل mysql طيب لو سمحت اشرحح لي كيف احفظ الشي؟ وش الاشياء اللي اقدر احفظها؟ وكيف اجيب الاشياء المحفوطة وشكككرا آسف تعبتكم معاي..
-
استخدم SQL مافهمتك وضح لو سمحت
-
طيب شباب والحل للمشكلة ؟ كيف احفظ الوقت ؟
-
يعني تحفظ الوقت اذا طلع ودخل يرجع الوقت ؟ معروف منذو مبطي (: يب + سوبر نيترو مو انا
-
يعني تحفظ الوقت اذا طلع ودخل يرجع الوقت ؟ معروف منذو مبطي (: لية تساعدهـ خله يدخل بـ حسابة الاصلي وش فيها ؟ / = ولا خايف يكرشونك لو ترجع للماواضيع القديمه تشوف ان عبودي قالي انت بي كول ولا قلت له لا وروح اقرأ القوانين وشوف وش وصع العضوية الثانية ي حلو
-
هذا فيه وقت بس اذا الاعب طلع ودخل يبدأ له الوقت من البداية ابغى حل GUIEditor_Label = {} GUIEditor_Label[1] = guiCreateLabel(161,201,526,222,"",false) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) function convertMilliseconds( i ) if ( i ) then sec = math.fmod( math.floor( i / 1000 ), 60 ) min = math.floor( math.floor( i / 1000 ) / 60 ) return string.format( '%02d:%02d', min, sec ) end end Timer = setTimer( function( ) createBlip ( 0 , 0 , 3 , 37 ) end, 12000000, 1 ) addEventHandler( 'onClientRender', getRootElement( ), function( ) if isTimer( Timer ) then local TimeLeft = convertMilliseconds( getTimerDetails( Timer ) ) guiSetText( GUIEditor_Label[1], TimeLeft ) guiSetFont(GUIEditor_Label[1], guiCreateFont("BeCooL.ttf", 17)) end end )
-
وقت إيش مشكلة الوقت اللي انت صلحتها
-
واجهت مشككلة # ان الاعب يطلع له وقت واللي دخل يطلع له الوقت من البداية ! اللي مو فاهمني يسأل وشكرا
-
i = 0 -- تحطها خارج الوظيفة i = ( i + 1 ) -- اذا لمس الماركر مشكؤؤر
-
مشكؤؤؤر لبى قلبك بس شباب ابغى اجيب كم مره صار الحدث يعني لما يلمس الاعب ماركر وينقله يزيد الرقم واحد وشككرا
-
Timer = setTimer ( function() guiSetVisible ( GUIEditor_Label[1],true ) end, 5000, 1 ) end ) addCommandHandler( 'timer', function( playerSource ) if isTimer( Timer ) then local TimeLeft = convertMilliseconds( getTimerDetails( Timer ) ) guiSetText ( GUIEditor_Label[1], Timer ) end end )
-
بس تستخدم guiSetText ما عرفت اسويها يا عاشق الشرق
-
ما في طريقة لبل او شي غير ذا ؟
-
وقت ايش اللعبة ولا الحقيقي ولا مهمة وضح . اقصد تايمر مثل السجن تشوف كم باقي
-
السلام عليكم ورححمة الله شباب ابغى اسوي وقت في لبل يعني يكون الوقت واضح في الشاشة وشكككرا
-
جاهز بس غير فيه الافينت addEventHandler( 'onPlayerJoin', getRootElement( ), function( ) setCameraMatrix ( source, 0, 0, 32, 28.902940750122, -52.708686828613, 2.6304724216461) end ) addEventHandler("onPlayerLogin", root, function ( player ) setTimer( setCameraTarget, 1000, 1, source ) setTimer( spawnPlayer, 1000, 1, source, 1177.2+math.random(-5,5), -1324.3, 14.0, -90, playerskin) end ) مشكوؤر العفؤؤ
-
جاهز بس غير فيه الافينت addEventHandler( 'onPlayerJoin', getRootElement( ), function( ) setCameraMatrix ( source, 0, 0, 32, 28.902940750122, -52.708686828613, 2.6304724216461) end ) addEventHandler("onPlayerLogin", root, function ( player ) setTimer( setCameraTarget, 1000, 1, source ) setTimer( spawnPlayer, 1000, 1, source, 1177.2+math.random(-5,5), -1324.3, 14.0, -90, playerskin) end )
-
هو مو قصدة جريد ليست قصده مثل شات الأدمن يعني يروح الكلام في مفكرة memo guiSetText هو يقصد شات غير الشات العادي يعني شات مثلا بس تيم الشرطة يقدرون يتكلمون فيه مثل سيرفر cit2
