Jump to content

King12

Members
  • Posts

    439
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by King12

  1. Client Side addEvent("MarkerHit", true) addEventHandler( "MarkerHit", localPlayer, function () window = guiCreateWindow (237, 146, 149, 206, "Aeroporto Las Venturas", false) guiWindowSetSizable(window, false) guiSetVisible(window, true) outputChatBox('Object Created !',255,255,0) button1 = guiCreateButton(9, 29, 130, 28, "Ilha Perdida", false, window) guiSetFont(button1, "default-bold-small") showCursor ( true ) end end) function click1 () button2 = guiCreateButton(9, 72, 130, 28, "New City", false, window) guiSetFont(button2, "default-bold-small") end addEventHandler ( "onClientGUIClick", button1, click1, true ) Server Side local myMarker = createMarker(1358.8127441406,1679.6812744141,9.8203125, 'cylinder', 2.0, 255, 0, 0, 150) local myBlip = createBlip( 1358.8127441406,1679.6812744141,9.8203125 ) function HitMarker ( hitElement ) if getElementType ( hitElement ) == "player" then triggerClientEvent( source, "MarkerHit", source) else outputChatBox("Get out of the car", hitElement, 255,255,255,true) end end addEventHandler("onMarkerHit", myMarker, HitMarker)
  2. آتوقع يبي لك تسوي تيبل للجنوط بعدين تسوي لها لود للقريد ونفس الشي مع الفنكشن هذا
  3. if row == "" then removeVehicleUpgrade ( Vehicle, x) return end x = تعريف الجنوط اللي عندك مادري وش مسميها انت عاد
  4. خادم ببلاش ( تجريبي ) آبو يومين بس بس والله 200 ميقا تسد ض1
  5. تعديل بسيط لو تبي تعدله اللوحه بالآنقليزي آسمها plate plate = for cars سكربت حلو :د
  6. الله يصلحكم بس مالها داعي المشاكل اللي تضيع الوقت ذي -.-
  7. الخادم ^ سرعة التحميل وهذا نتي الله يرحم حالنا بس ._.
  8. خلاص يرحم والديكم مانبي سوالف طويله ياليت تيتي ولا تابل يقفلون الموضوع
  9. Actually I googled it already, but I was to lazy to test everysingle code. Thanks a lot!
  10. I've made my dx window with guieditor, but it doesn't fit any resolutions since mine is 1920x1080 addEventHandler("onClientRender", root, function () dxDrawImage(1766, 0, 154, 1080, "images/background.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(1795, 925, 106, 100, "images/settings.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(1795, 143, 106, 100, "images/menu.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawImage(1795, 522, 106, 111, "images/player.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("The time is:", 1760, 21, 1931, 52, tocolor(0, 0, 0, 255), 0.80, "bankgothic", "center", "top", false, false, true, true, false) dxDrawText("The time is:", 1759, 20, 1930, 51, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "top", false, false, true, true, false) dxDrawText(timenow or "Updating..", 1759, 51, 1930, 82, tocolor(255, 255, 255, 255), 0.80, "bankgothic", "center", "top", false, false, true, true, false) end )
  11. يعطيكم العافيه ماقصرتوا,, جنرال آظن طريقتك يبيلها فنكشن لكل آفنت
  12. على الزر يسوي دراو لويندو او تقدر تقول dxDrawImage يعني تبيه يوم يضغط على زر يسوي dxDrawImage ? بالضبط زي المثال حقي اللي فوق بس مايشتغل
  13. على الزر يسوي دراو لويندو او تقدر تقول dxDrawImage
  14. up يصير كذا ولا كيف؟ function news(_,_,_,_,_,_,_,clickedElement) if (clickedElement == button1) then addEventHandler("onClientRender", root, drawwindow) end end addEventHandler ( "onClientClick", root, news )
  15. go to /admin/conf/commands.xml and remove these lines "kick" call="kick" args="P,s" /> "ban" call="ban" args="P,s,i" /> "mute" call="mute" args="P,s,i" />
  16. آنآ آعرف آنه سيرفر ومسوية سيرفر متى قلت آنه كلنت آسفين , نسيت آن كل الفنكنشنات اللي بالسكربت تجي سيرفر بس شكلي تفلسفت بالكود حقي
  17. not sure but maybe this? local health = math.ceil(getElementHealth(localPlayer)) if health > 100 then return elseif health < 100 then dxDrawImage(x*Tlargura, y*Taltura, largura, altura, "health/"..(math.ceil(getElementHealth(localPlayer)/5)*5)..".png" ) end
  18. guiGridListSetItemText(statsGrid, row, 1, string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", ""), false, false)
  19. حدث آون كلينت كليك صحيح؟ بس باقي احذف if test and mouse then إلى if test then ?
  20. يعني يصير كذا؟ bindKey("F1","down", function() if toggeled then toggeled = false else toggeled = true end end) addEventHandler("onClientRender",root, function if toggeled then test = dxDrawImage(10, 111, 375, 525, "images/drift.png", 12, 0, 0, tocolor(215, 172, 2, 255), true) end end) addEventHandler ( "onClientCursorMove", root, function ( _, __, x, y ) if not test then return end if x >= 10 and y >= 111 and x <= (10+375) and y <= (111+525) then mouse = "testa" if mouse then mouse = nil end end end ) addEventHandler ( "onClientClick", root, function ( button, state, x, y ) if button == "left" and state == "down" then if test and mouse then -- blabla end end end ) التحققات هذي اخذتها من عناد ^
  21. entered + player آلمفروض تحط بدل source = آلمصدر لآن آلسورس هو آلمصدر في آلإيفنت أو آلحدث بآلعربي يعني حدث onVehicleEnter Vehicle آلسورس فيه وهكذآ ------------------- [lua]addEventHandler("onPlayerSpawn", root, -- حدث آذآ آللآعب آنتقل function() -- وظيفة آلحدث if getTeamName(getPlayerTeam(source)) == "No Team" and getElementData(source, "gang") == "SKULLS" then -- تحقق آذآ كآن SKULLS آلسورس آو آللآعب في تيم آسمه نو تيم وتحقق آذآ كآن بفروب آسمه setElementPosition(source, 140.40361, 1370.79529, 1083.86633) --نقل آلسورس آلى مكآن معين setElementInterior(source, 5 ) -- وضع آنترو للسورس setElementDimension(source, 0 ) -- وضع عآلم وهمي للسورس setElementHealth(source, 200 ) -- إعطآء آللآعب دم setPedStat(thePlayer, 24, 999) -- نضع قيمة لدم آللآعب كي تجعل دم آللآعب كآمل 200 setElementModel(source, 30 ) -- إعطآء آللآعب شخصية setPedArmor ( player, 100 ) --إعطآء آللآعب درع end -- نهآية آلتحقق end --نهآية آلوظيفة ) --قوس إغلآق آلحدث مادري ليش تشرح كود من الآساس مايشتغل بالكامل لآن فيه فنكنشات سيرفر حتى الآفنت سيرفر مو كلينت وتحط localPlayer مو source
  22. مايمديك لآن السكربت مايدعم آلوان الهيكس
×
×
  • Create New...