-
Posts
2,259 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Adham
-
سلام عليكم ورحمه الله وبركاته في مود التوب بار شات عدلت عليه كده اذا كلام صغير مثلا م يطلع برا الشاشه السودا لو سويت كلام كبير يطلع برا الشاشه السودا ومدري كيف احلها الكود dxDrawText(row[1], (x - 500)/2.0, row[3] - 20, (x - 500) / 2 +500, row[3], row[2], 1.0, "default-bold", "center", "center", false, false, false, false, false)
-
سلام عليكم ورحمه الله وبركاته اليوم التوب بار ابيه يجي في النص الكلام .. الاكواد function dxDrawNotificationBar ( ) local doRemove = { top = { }, bottom = { } } -- This is used so it prevents the next message from flashing -- Top Message Bar for i, v in pairs ( messages_top ) do local i = i - 1 if ( not v.locked ) then v.alpha = v.alpha - 2 if ( v.alpha <= 20 ) then table.insert ( doRemove.top, i+1 ) end messages_top[i+1].alpha = v.alpha else if ( v.alpha < 160 ) then v.alpha = v.alpha + 1 messages_top[i+1].alpha = v.alpha end if ( v.rTick <= getTickCount ( ) ) then v.locked = false messages_top[i+1].locked=false end end dxDrawRectangle ( (sx_/2-530/2), i*25, 530, 25, tocolor ( 0, 0, 0, v.alpha ) ) dxDrawText ( tostring ( v.message ), 0, i*25, sx_, (i+1)*25, tocolor ( v.r, v.g, v.b, v.alpha*1.49375 ), sy*1.2, "default-bold", "center", "center") end if ( #messages_top > maxMessages and messages_top[1].locked ) then messages_top[1].locked = false end -- Bottom Message Bar for i, v in pairs ( messages_btm ) do if ( not v.locked ) then v.alpha = v.alpha - 3 if ( v.alpha <= 20 ) then table.insert ( doRemove.bottom, i ) end messages_btm[i].alpha = v.alpha else if ( v.alpha < 160 ) then v.alpha = v.alpha + 1 messages_btm[i].alpha = v.alpha end if ( v.rTick <= getTickCount ( ) ) then v.locked = false messages_btm[i].locked=false end end dxDrawRectangle ( (sx_/2-530/2), sy_-(i*25), 530, 25, tocolor ( 0, 0, 0, v.alpha ) ) dxDrawText ( tostring ( v.message ), 0, sy_-(i*25), sx_, sy_-((i-1)*25), tocolor ( v.r, v.g, v.b, v.alpha*1.49375 ), sy*1.2, "default-bold", "center", "center") end if ( #messages_btm > maxMessages and messages_btm[1].locked ) then messages_btm[1].locked = false end -- handle message removes if ( #doRemove.top > 0 )then for i, v in pairs ( doRemove.top ) do table.remove ( messages_top, v ) end end if ( #doRemove.bottom > 0 ) then for i, v in pairs ( doRemove.bottom ) do table.remove ( messages_btm, v ) end end end addEventHandler ( "onClientRender", root, dxDrawNotificationBar ) مثلا انا حطيت الكود ذا exports.topbarchat:sendClientMessage ( "* [Login]x "..getPlayerName(source):gsub( "#%x%x%x%x%x%x", "" ).." has login",root,255,255,0,true ) الكلام م يجي بالنص بالظبت
-
ممكن يسوي تحقق اذا الشيك بوكس ترو يظهر ايديت واذا الشيك بوكس false يسوي يختفي الايديت guiSetVisible guiCheckBoxGetSelected
-
لا مب غلطان , بس انا سويتهولو ب طريقة تانيه أعتذر .
-
لو قصدك انك لما تحدد اسم حساب من القريد لست و تضعط زر وتعطيه داتا للاكونت المحدد فأ تفضل : -- Client -- addEventHandler ( "onClientGUIClick", root, function ( ) if source == button then local account = guiGridListGetItemText ( aGrid , guiGridListGetSelectedItem ( aGrid ) , 1 ) if account == "" then outputChatBox ( "حدد حساب" ) return end triggerServerEvent ( "SetAccount", localPlayer, account ) end end ) ; -- Server -- addEvent ( "SetAccount", true ) addEventHandler ( "SetAccount", root, function (account) if account then local acc = getAccount (account) if ( not acc ) then outputChatBox ("خطأ في أسم الحساب",source,255,5,5) return end setAccountData ( acc, "Data", true ) end end ) ;
-
local buttons ={ [ "F1" ] = true, }; addEventHandler( "onClientKey", root, function(button , press) if press and getElementDimension(localPlayer) == 0 then if buttons[button]then cancelEvent() end end end )
-
لو انك شوفت الويكي كان أحسن .
-
اولأ , اتكلم بحترام ثانيأ , الواد قال فوق م ظبت
-
تبي تسوي مثل " سرفر " طارهـ صح ؟
-
قصدك الكان مثل في طارة القديم ؟
-
شف ذا المثال كمل عليه : addCommandHandler ( "AFK", function ( player ) setElementInterior ( player, 0, x, y, z ) -- المكان التبيه يروح له setElementFrozen ( player, true ) outputChatBox ( "تم نقلك للافك", player, 255,255,255,true ) else setElementInterior ( player, 0, x, y, z ) -- جط x,y,z للمكان التبيه يرجع له لين يكتب افك مرأ اخرا setElementFrozen ( player, false ) outputChatBox ( "تم نقلك للعالم العادي", player, 255,255,255,true ) end end )
-
exports.scoreboard:addScoreboardColumn عشان تضيف كلومن جديد في السكوري بورد " التاب " و تسوي اذا الاعب واقف م يتحرك تسوي له داتا واذا اتحرك تشيل الداتا منه .
-
غلط tocolor Client-Side
-
فاضل , لك تحقق ان الاعب مسجل الدخول وسوي مثل م المثال بالويكي جاهز myTextItem = textCreateTextItem ( "Hello world!", 0.5, 0.5 ) -- create text item for the display textDisplayAddText ( myDisplay, myTextItem ) لا تحط tocolor
-
حط خط default-bold وريح نفسك
-
بالغلط حطيتها addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == button ) then executeCommandHandler ( "report" ) end end )
-
جرب addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == button then ) executeCommandHandler ( "report" ) end end )
-
addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == button ) then local Account = guiGetText ( Editname ) local Pass = guiGetText ( Editpass ) if ( Account ~= "" and Pass ~= "" ) then triggerServerEvent ( "Set", localPlayer, Account, Pass ) else outputChatBox ( "أكمل البيانات" ) end end end) تشكر ع التنبيه
-
جرب addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == button ) then local Account = guiGetText ( Editname ) local Pass = guiGetText ( Editpass ) if ( Account ~= "" and Pass ~= "" ) then triggerServerEvent ( "Set", localPlayer, Account, Pass ) else outputChatBox ( "أكمل البيانات" ) end end end) -- سرفر addEvent ( "Set", true ) addEventHandler ( "Set", root, function ( Account, Pass ) local Acc = getAccount (Account) if ( not Acc ) then outputChatBox ("خطأ في الحساب",source,255,5,5) return end setAccountPassword(Acc,Pass) end) تم التجربه #
-
عندي , فكره لك هذا الكود انا مسويه : سرفر: function Download ( msg,color) local Data = getElementData ( source, "Download" ) if Data then outputChatBox('#666666(Downloading..) '.. getPlayerName(source) .. '#ffffff : '.. msg,root, r, g, b, true) return cancelEvent() end end addEventHandler ( "onPlayerChat",root, Download ) addEventHandler ( "onPlayerJoin", root, function ( ) setElementData ( source, "Download", true ) end ) addEventHandler ( "onPlayerLogin", root, function ( ) setElementData ( source, "Download", false ) end ) اذا الاعب دخل السرفر تعطيه تاق داونلود ولما يسجل الدخول يشيل منه التاق بالتوفيق .
