Jump to content

salh

Members
  • Posts

    206
  • Joined

  • Last visited

Everything posted by salh

  1. في المشكلة الاولى وش تبي تسوي بضبط؟
  2. local salhmark = createMarker(-2439.22803, -616.13788, 132.55708, 'cylinder', 2.0, 255, 0, 0, 0) اخر الكود فيه 255,0,0 الون 0 الاخيره ذا الشفاشفيه
  3. guiSetProgressBarRun واضح من الاسم Syntax guiSetProgressBarRun(progressBar theProgressbar, float ProgressBarCount, float ProgressBarCountPlus) theprogrssbar = البار ProgressBarCount = البار يبداء عند رقم ProgressBarCountPlus = كم يزيد البار في الثانيه (الكود) function guiSetProgressBarRun ( guiElement, ProgressBarCount, ProgressBarCountPlus ) if not guiElement == "gui-progressbar" or not ProgressBarCount or not ProgressBarCountPlus then outputDebugString("Bad arugment @ guiSetProgressBarRun ",0,255,0,0) return end guiProgressBarSetProgress ( guiElement ,tonumber( ProgressBarCount ) ) setTimer( function ( ) if not tonumber ( ProgressBarCount ) then return false end ProgressBarCount = ProgressBarCount + ProgressBarCountPlus guiProgressBarSetProgress ( guiElement ,tonumber( ProgressBarCount ) ) end , 1000 , ProgressBarCount ) end (مثال) addEventHandler("onClientResourceStart", resourceRoot, function() salh = guiCreateProgressBar(393, 533, 438, 65, false) guiSetProgressBarRun(salh, 0, 10) end ) اذا كان عندي اي خطاء علموني ابي اتعلم من اخطائي (:
  4. صنعت لك ذا الفاكشن حاول تستفيد منه + سوي اول ما يدخل الاعب يظهر function guiSetProgressBarRun ( guiElement, ProgressBarCount, ProgressBarCountPlus ) if not guiElement == "gui-progressbar" or not ProgressBarCount or not ProgressBarCountPlus then outputDebugString("Bad arugment @ guiSetProgressBarRun ",0,255,0,0) return end guiProgressBarSetProgress ( guiElement ,tonumber( ProgressBarCount ) ) setTimer( function ( ) if not tonumber ( ProgressBarCount ) then return false end ProgressBarCount = ProgressBarCount + ProgressBarCountPlus guiProgressBarSetProgress ( guiElement ,tonumber( ProgressBarCount ) ) end , 1000 , ProgressBarCount ) end addEventHandler("onClientResourceStart", resourceRoot, function() salh = guiCreateProgressBar(393, 533, 438, 65, false) guiSetProgressBarRun(salh, 0, 10) end )
  5. why you make this local salh = guiCreateLabel(453, 0, 476, 78, character, false) -- this is gui you can use local ut not Necessary
  6. -- gui Button = guiCreateStaticImage(250, 250, 250, 30, "gfx/Button.png", false) function outputPressedCharacter(character) if character==" " then --if the character is a space character = "space" --change 'character' to 'space' end setTimer ( function() guiSetText(salh, "")  end, 100, 1 ) salh = guiCreateLabel(453, 0, 476, 78, character, false) end addEventHandler("onClientGUIClick", root, function () if source == Button then addEventHandler("onClientCharacter", getRootElement(), outputPressedCharacter) end end) thsi code make the text show this*
  7. انت مصعبها function dxCreateGridList(x,y,h,w,color) dxDrawRectangle(x, y, h, w, color or tocolor(249, 0, 0, 153), false) dxDrawLine(x, y+30, h+h-163, w-w+145, tocolor(255, 255, 255, 255), 1, false) end function salh() dxCreateGridList(437, 115, 599, 471) end addEventHandler("onClientRender", root, salh) ترا بس مثال يعني لو تغير المكان بتصير مشكلة في الاين + تقدر تضيف لها فاكشنات زي اضافت رو و ايتمز مثال function dxAddItems(x,y,h,w,color,text) local y = y + 20 dxDrawRectangle(x, y, h, w, color or tocolor(220, 220, 200, 250), false) dxDrawText(text, x, y, h, w, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end
  8. you want if player click the button show the text or the character? this work with me
  9. please clarify use this: -- gui Button = guiCreateStaticImage(250, 250, 250, 30, "gfx/Button.png", false) function outputPressedCharacter(character) if character==" " then --if the character is a space character = "space" --change 'character' to 'space' end setTimer ( function() guiSetText(salh, "") end, 100, 1 ) salh = guiCreateLabel(453, 0, 476, 78, character, false) end addEventHandler("onClientGUIClick", root, function () if source == Button then addEventHandler("onClientCharacter", getRootElement(), outputPressedCharacter) end end)
  10. try this -- Client function addToXML( player, GlobalID, folder, folder1 ) local xml = xmlLoadFile("meta.xml") if ( xml ) then huh = xmlCreateChild( xml, "file" ) xmlNodeSetAttribute( huh, "src", folder.."/"..folder1.."/"..GlobalID) xmlSaveFile(xml) xmlUnloadFile(xml) else print("Unable to open meta.xml") end end addCommandHandler("Reload", addToXML)
  11. --Client Moneys = 0 addEventHandler("onClientRender", root, function() dxDrawText("Vip Money:"..Moneys, 1038, -3, 1366, 53, tocolor(255, 255, 255, 255), 2.00, "default", "left", "top", false, false, false, false, false) end ) function GiveMoneys() Moneys = Moneys + 1 end addCommandHandler("Vip", GiveMoneys)
  12. you need update the xml file with out restart the script? you can use https://wiki.multitheftauto.com/wiki/XmlSaveFile and https://wiki.multitheftauto.com/wiki/XmlLoadFile
  13. السؤال واضح يبي يعرف كيف يسوي ميمو و قريدلاست وليديت بوكس دي اكس
  14. هاذي اشياء مو اساسية + شكرا على الشرح ي ام بي سي (:
  15. --Client salhMark = createMarker ( -666.91980, 951.71588, 12.13281, "cylinder" ) function salh(hitElement) if isPlayerInVehicle ( hitElement ) then local vehicle = getPedOccupiedVehicle(hitElement) setElementPosition(vehicle, -656.82086, 949.41492, 12.13281) end end addEventHandler("onClientMarkerHit",salhMark,salh)
  16. -- server function salh(thePlayer ) local theVehicle = getPedOccupiedVehicle ( thePlayer ) if theVehicle then destroyElement ( theVehicle ) end end addEventHandler ( "onPlayerQuit" , root ,salh)
  17. انت وش تبي تسوي من الاساس ؟
  18. you can use https://wiki.multitheftauto.com/wiki/DxDrawText to make text for new money and make function who make the number + or -
  19. salh

    [HELP] Text

    on click the guiCreateStaticImage show text?
  20. what debugscript say?
×
×
  • Create New...