Jump to content

MR.S3D

Members
  • Posts

    732
  • Joined

  • Last visited

Everything posted by MR.S3D

  1. كذا راح يلف على نص القوروبات ولما يوصل للاعبين قدها انتهى اللوب
  2. show me all code. Send it private message.
  3. اللوب الأول للتحقق من اللاعب اللي هو انت الأدمن انك موجود بالقروب ولا لا عشان يسمح بالدخول للوب الثاني واللوب الثاني للتحقق من اللاعبين انهم موجودين بالقروبات ثم ارسال اليهم
  4. تم اضافتك لا انا سعد صاحب سيرفر الوزارة مب موجود عندك.
  5. groups = { "Console", "Admin", "SuperModerator", "Moderator", "Level 1", "Level 2", "Level 3", "Level 4", "Level 5", "Level 6", "Head.Admin", "Owner", "Leve16Plus", "Level5Plus", "Level4Plus", "Level3Plus", "Level2Plus", "Level1Plus", "AdminChat" } addCommandHandler("AdminChat", function(player,cmd,...) local msg = table.concat({...}) for theKey,theGroup in ipairs(groups) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup(theGroup)) then for theKey,theGroup in ipairs(groups) do for theKey,thePlayer in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup(theGroup)) then outputChatBox("(ADMIN) "..getPlayerName(player)..": #ffffff"..msg,thePlayer,255,0,0,true) end end end break end end end ) addEventHandler("onResourceStart",root, function() for theKey,thePlayer in ipairs(getElementsByType("player")) do bindKey(thePlayer,"[","down","chatbox","AdminChat") end end ) addEventHandler("onPlayerJoin",root, function() bindKey(source,"[","down","chatbox","AdminChat") end )
  6. هات سكايبك للتواصل معاك ومحاولى حل المشكلة
  7. You should use in server side for clinet use triggerServerEvent to send user name to server. and in server side addEvent... Example server side: local acco = getAccount ( 'mr.saad' ) if (acco) then -- If Registered Account Already existing outputChatBox ("Change User") else -- If not existing outputChatBox ("Registerd") end
  8. so, you need destroy two vehicles. when tow player hit mark2? not, it destroys, but it was only to destroy those who enter the marker, not everyone who took the vehicle but already decided, the script is not mine, I tested because my friend was in trouble .. I realize when, who was destroying was restartResource I am a very sluggish person yes, I said why use restart
  9. so, you need destroy two vehicles. when tow player hit mark2?
  10. Sorry, but I did n't understand what you want ! why you use destroyElement(marker) use this setElementVisibleTo(marker, Jogador, false) this code for restart resource setTimer(function() restartResource(getThisResource()) end, 100, 1) why?
  11. local marker = createMarker (2211, -2506, 12.8, "cylinder", 1, 255,0,0,255) local mark2 = createMarker (667, -615, 16, "cylinder", 4, 255,0,0,255) local blip = createBlip(667, -615, 17, 0) createBlip (2211, -2506, 12.8, 51) setElementVisibleTo(mark2, root, false) setElementVisibleTo(blip, root, false) veh = {} function entrarmarker(Jogador) if(isElement(Jogador)) and (getElementType(Jogador) == "player") then if veh[Jogador] and isElement(veh[Jogador]) then destroyElement(veh[Jogador]) veh[Jogador] = nil end if (not isPedInVehicle(Jogador)) then veh[Jogador] = createVehicle ( 408, 2200, -2509, 12.5 + 10 ) outputChatBox ( "#ff0000use /trabalharaqui", Jogador, 255,255,255, true) end end end addEventHandler("onMarkerHit", marker, entrarmarker) function commandMarker(Jogador) if isElementWithinMarker(Jogador, marker) then setElementData(Jogador, "trab", true) warpPedIntoVehicle(Jogador, veh[Jogador]) setElementVisibleTo(mark2, Jogador, true) setElementVisibleTo(blip, Jogador, true) end end addCommandHandler("trabalharaqui", commandMarker) function des (Jogador) if(isElement(Jogador)) and (getElementType(Jogador) == "player") then if getElementData(Jogador, "trab") then if veh[Jogador] and isElement(veh[Jogador]) then destroyElement (veh[Jogador]) veh[Jogador] = nil end ---destroyElement(marker) setElementVisibleTo(marker, Jogador, false) setElementVisibleTo(mark2, Jogador, false) outputChatBox ( "#ff0000PARAB?NS VOC? TERMINOU A ENTREGA DE LIXO E GANHOU 500$ !", Jogador, 255,255,255, true) givePlayerMoney ( Jogador, 500) removeElementData(Jogador, "trab") setTimer(function() restartResource(getThisResource()) end, 100, 1) end end end addEventHandler( "onMarkerHit", mark2, des)
  12. --1 - make tabel veh = {} veh["veiculo"] = {} --2 - add pLAYER TO TABEL veh["veiculo"][Player] = createVehicle... --3- for destroyElement if veh["veiculo"][Player] and isElement( veh["veiculo"][Player] ) then destroyElement(veh["veiculo"][Player]) veh["veiculo"][Player] = nil end
  13. groups = { "Console", "Admin", "SuperModerator", "Moderator", "Level 1", "Level 2", "Level 3", "Level 4", "Level 5", "Level 6", "Head.Admin", "Owner", "Leve16Plus", "Level5Plus", "Level4Plus", "Level3Plus", "Level2Plus", "Level1Plus", "AdminChat" } addCommandHandler("AdminChat", function(player,cmd,...) local msg = table.concat({...}} for theKey,theGroup in ipairs(groups) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup(theGroup)) then for theKey,theGroup in ipairs(groups) do for theKey,thePlayer in ipairs(getElementsByType("player")) do if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)),aclGetGroup(theGroup)) then outputChatBox("(ADMIN) "..getPlayerName(player)..": #ffffff"..msg," "),thePlayer,255,0,0,true) end end end break end end end ) addEventHandler("onResourceStart",root, function() for theKey,thePlayer in ipairs(getElementsByType("player")) do bindKey(thePlayer,"[","down","chatbox","AdminChat") end end ) addEventHandler("onPlayerJoin",root, function() bindKey(source,"[","down","chatbox","AdminChat") end )
  14. الموضوع سهل جدا اطرد لي اكوادك على الخاص وبأذن الله سوف أساعدك
  15. MR.S3D

    سؤال

    لحفظ العاجل استخدم local name = getPlayerName( player ) local msg = text setElementData(root,'3ajel',{name,msg}) طبعا text متغير النص و player اللاعب اللي كتب النص لجلب العاجل استخدم : local data = getElementData(root,'3ajel') if not data then data = {'',''} end local name = data[1] local text = data[2] استخدم name للاسم استخدم text للنص
  16. Clinet function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function dx_test() dxDrawRectangle(138, 178, 554, 33, tocolor(111, 6, 77, 255), false) dxDrawRectangle(153, 211, 520, 160, tocolor(0, 0, 0, 160), false) if ( isMouseInPosition (167, 333, 148, 28) ) then dxDrawRectangle(167, 333, 148, 28, tocolor(107, 5, 74, 255), false) else dxDrawRectangle(167, 333, 148, 28, tocolor(107, 5, 74, 180), false) end if ( isMouseInPosition (515, 333, 148, 28) ) then dxDrawRectangle(515, 333, 148, 28, tocolor(107, 5, 74, 255), false) else dxDrawRectangle(515, 333, 148, 28, tocolor(107, 5, 74, 180), false) end if ( isMouseInPosition (340, 333, 148, 28) ) then dxDrawRectangle(340, 333, 148, 28, tocolor(107, 5, 74, 255), false) else dxDrawRectangle(340, 333, 148, 28, tocolor(107, 5, 74, 180), false) end dxDrawText("Race Shop", 323, 178, 581, 201, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) dxDrawText("Buy ($900)", 210, 338, 334, 357, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Buy ($250)", 381, 338, 505, 357, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Buy ($1500)", 555, 338, 679, 357, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawImage(189, 241, 102, 81, "img/Repair.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(520, 239, 143, 98, "img/flip.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(359, 230, 104, 98, "img/Nitro.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(520, 239, 143, 98, "img/flip.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end sShowing = false bindKey("f1","down", function ( ) if ( sShowing == true ) then removeEventHandler("onClientRender",root,dx_test) showCursor ( false ) else addEventHandler("onClientRender",root,dx_test) showCursor ( true ) end sShowing = not sShowing end ) addEventHandler("onClientClick",root, function ( button , state ) if( button == "left" and state == "up" ) then if ( sShowing == true ) then if ( isMouseInPosition (167, 333, 148, 28) ) then triggerServerEvent ( "Repair", localPlayer ) end end end end ) Server addEvent( "Repair", true ) addEventHandler( "Repair", root, function () if ( getPlayerMoney (source) >= 5000 ) then local Veh = getPedOccupiedVehicle ( source ) if Veh then takePlayerMoney(source, 5000) fixVehicle(Veh) else outputChatBox('خطأ لاتملك مركبه',source,255,0,0,true) end else outputChatBox('ليس لديك مال كافي للشراء',source,255,0,0,true) end end ) mete.xml
  17. MR.S3D

    Server list spam

    Fake SERVER IP: 144.76.95.253:22036 Real SERVER IP: 178.63.82.131:22022
  18. شرح كافي ووافي وماقصرت عليه بس حبيت اذكرك ان حدث "onClientPlayerJoin" يشتغل للاعبين المتواجدين اللي بالسيرفر في حين وقت دخولك للسيرفر ومراح يظهر لك لانه وقت دخولك يكون الكلنت ماتحمل على جهازك فاذا اللاعب يبيه وقت دخوله للسيرفر يرحب فيه فيستخدم حدث "onPlayerJoin" تحياتي لك أخوي
  19. من برستيج : خروجي من اللعبة بإرادتي أفضل من اطلع بعد فتره وما يدرون أني طلعت واختفي وخلاص لا من درى و لا من عرف وسبب الخروج متابعه الحياه و الملل من الانترنت . ودعواتكم لي بالتوفيق في الاختبارات .
  20. رجاءاً عدم الخروج من محتوى المواضيع والتسبب في مشاحنات بين الأعضاء يغلق.
  21. الله يبارك فيكم كلكم .
  22. ماب رائع يعطيك العافية ماقصرت
  23. الله يبارك فيكم وان شاء الله أكون عند حسن الظن تحياتي
×
×
  • Create New...