Jump to content

N3xT

Retired Staff
  • Posts

    2,490
  • Joined

  • Days Won

    18

Everything posted by N3xT

  1. اتكلم عن الآن وليس الماضي, وغير كذا ولا عمري خشيت سيرفر بسول عشان اعرف اللي فيه
  2. جيب لي أي سيرفر فيه فكرة الخطوط اللي من مطار لمطار, يلا يلا بالتوفيق
  3. لا تقلد احد وانا واول واحد يدعمك
  4. كل الأخطاء اللي قلتها عدلتها, كتبت الكود بالليل وماركزت فيه عموماً اللوب صح وما يحتاج مثل ما قلت انت
  5. أولاً كتابتك للترايقر خطأ ثانياً الإلمنت غير موجود ثالثاً إرسالك للترايقر خطأ أيضاً رابعاً كتابة إسم للفنكشن خطأ خامساً عدم توفر جدول للسيريال
  6. بالنسبة لي اشوف انها جداً مفيدة، وحالياً شغال على وحدة
  7. ماني شايف ان كودي فيه خطأ، ممكن بس الـ v[1] ونسيت اشيل الرقم، بالنسبة لكودك فهو الخطأ لأن لو فيه ازرار ثانية راح يقفلها #Edit: function getNewMission () local buttonTable = { {Button1}, } if ( buttonTable ) and ( #buttonTable ~= 0 ) then for _,v in ipairs (buttonTable) do guiSetEnabled(v, false) end else return false end local mission = math.random(buttonTable) if ( mission ) then guiSetEnabled(mission, true) end return mission end setTimer(getNewMisson, 10000, 0)
  8. function getNewMission () local buttonTable = { {"Button1"}, } if ( buttonTable ) and ( #buttonTable ~= 0 ) then for _,v in ipairs (buttonTable) guiSetEnabled(v[1], false) end else return false end local mission = math.random(buttonTable) guiSetEnabled(mission, true) return mission end setTimer(getNewMisson, 10000, 0)
  9. حط مع زر اللوحة حقتك او الكوماند putPlayers()
  10. لو تحطه بـ 50 ريال ماحد اشتراه, الناس تبي كل شيء مجاني شوف لوحتي مخلصها من زمان وما بعتها للحين لأني داري ما احد بيشتريها
  11. رقم الثلاثة تقدر تقول عليه مثل الزخرفة لحرف الـ إي, ونكي سابقاً بلاك نكست لكن حسيته طويل وشلت بلاك =).
  12. N3xT = نكست عموماً أبدعت لكن كنت أفضل الدي اكس عن اللوحات العايدية , للأفضل ان شاء الله.
  13. ليه ما تحفظ الصورة من النت وتركبها بنفسك بالمود
  14. Server: imageName = "forum.png" imageURL = "www.mtasa.com/forum.png" function startImageDownload( playerToReceive ) fetchRemote ( imageURL, myCallback, "", false, playerToReceive ) end function myCallback( responseData, errno, playerToReceive ) if errno == 0 then triggerClientEvent( playerToReceive, "onClientGotImage", resourceRoot, responseData ) local file = fileCreate ( imageName ) if ( file ) then fileWrite ( file , responseData ) fileClose ( file ) end end end Client: addEvent( "onClientGotImage", true ) addEventHandler( "onClientGotImage", resourceRoot, function( pixels ) if myTexture then destroyElement( myTexture ) end myTexture = dxCreateTexture( pixels ) end ) addEventHandler("onClientRender", root, function() if myTexture then local w,h = dxGetMaterialSize( myTexture ) dxDrawImage( 200, 100, w, h, myTexture ) end end )
  15. ماني شايف أخطاء عالعموم بدل السيرفر بذا, واذا ماشتغل عطني الديبق local exAdmin = "Admin-Ex" -- أسم الادمن اكس local aGroups = { -- جدول الرتب اللي ما تبيها تروح ["3GL"] = true, ["FFO"] = true, ["Adminmsg"] = true, }; function removeGroups ( player ) if ( player ) and ( getElementType ( player ) == "player" ) then if isGuestAccount ( getPlayerAccount ( player ) ) then return end local Acc = getAccountName ( getPlayerAccount ( player ) ) if ( #aclGroupList ( ) == 0 ) then return end for _,Groups_ in ipairs( aclGroupList ( ) ) do if not ( aGroups [ aclGroupGetName ( Groups_ ) ] ) then if ( isObjectInACLGroup ( "user." ..Acc, Groups_ ) ) then aclGroupRemoveObject ( Groups_ ,"user."..Acc ) end end end end end xAddToGroupFunction_ = function ( Group,Price,Name ) local account = getAccountName(getPlayerAccount(source)); if isGuestAccount(getPlayerAccount(source)) then return outputChatBox("#ff4f00* ( #ffffffBuy Admin #ff4f00) : #ffffff * يجب عليك التسجيل اولاَ",source,255,0,0,true); end if isObjectInACLGroup("user."..account, aclGetGroup(tostring(Group))) then return outputChatBox("#ff4f00* ( #ffffffBuy Admin #ff4f00) : #ffffff** لديك هذهـ الرتبة فعـلا ! ",source,255,0,0,true); end if isObjectInACLGroup("user."..account, aclGetGroup(exAdmin)) then return outputChatBox("#ff4f00* ( #ffffffBuy Admin #ff4f00) : #ffffff** الحساب الخاص بك محظور | "..Name,source,255,0,0,true); end local sValue = getElementData( source,'PlayTime' ) if not sValue then sValue = '0:0:0' end local data = split(sValue,':') local hour = tonumber( data[1] ) if hour == nil or not tonumber(hour) then hour = 0 end if ( hour >= tonumber(Price)) then removeGroups ( source ) aclGroupAddObject (aclGetGroup( tostring(Group)),"user."..account); outputChatBox("#ff4f00* ( #ffffffBuy Admin #ff4f00) : #ffffff** تم اضافة الرتبة بنجاح | "..Name,source,0,255,0,true); else outputChatBox("#ff4f00* ( #ffffffBuy Admin #ff4f00) : #ffffff**ليس لديك ساعات كافية",source,255,0,0,true); end end addEvent("Accept:the:request",true)
  16. عطني اكواد السيرفر + الكلنت كاملة بعد التعديل , ووش تبي تسوي بالظبط؟
  17. N3xT

    hacker on mta

    as they said, It's your fault. anyway, You can ban him from your server.
  18. لا تطولها وهي قصيرة addCommandHandler ( "myCarH", function () local isVehicle = getPedOccupiedVehicle ( localPlayer ) if isVehicle then local theVehicle = math.floor(getElementHealth ( isVehicle )) outputChatBox ( "vehicle's health: "..theVehicle.."." ) if theVehicle == 100 then outputChatBox ( "vehicle's health: very good." ) triggerServerEvent("newMessage", localPlayer, localPlayer, "myMessage." ) elseif theVehicle < 100 and theVehicle >= 80 then outputChatBox ( "vehicle's health: good." ) triggerServerEvent("newMessage", localPlayer, localPlayer, "myMessage." ) elseif theVehicle < 80 and theVehicle >= 50 then outputChatBox ( "vehicle's health: معقولة ض1." ) triggerServerEvent("newMessage", localPlayer, localPlayer, "myMessage." ) elseif theVehicle < 50 and theVehicle >= 0 then outputChatBox ( "vehicle's health: bad vehicle." ) triggerServerEvent("newMessage", localPlayer, localPlayer, "myMessage." ) end else outputChatBox ( "You are not inside vehicle." ) end end ) -- Server addEvent("newMessage", true) addEventHandler("newMessage", root, function ( player , stringValue ) if ( player ) and ( getElementType(player) == "player" ) then if ( stringValue and stringValue ~= "" ) then exports["guimessages"]:outputServer(player, stringValue, 255, 255, 0) end end end )
  19. خذها مني, مايصير تعتمد على أحد بحياتك شوف عدد مواضيعي من يوم ما خشيت المنتدى ممكن ما تتعدى الـ 15 ومع ذلك الحين أعتبر من أفضل المبرمجين وأحاول اطور نفسي بنفسي
  20. ! شوف ردوده كل ما أحد قاله شيء قال تراني جديد على البرمجة طيب جديد على البرمجة تعلم مثلك مثل الناس الباقية حنا قاعدين نساعدك
×
×
  • Create New...