Jump to content

MAB

Members
  • Posts

    313
  • Joined

  • Last visited

Everything posted by MAB

  1. MAB

    how?

    how to put a image from game-state.com of the server i am scripting in after i reply a topic? server link: http://www.game-state.com/104.128.237.194:22003/
  2. MAB

    how?

    it is what i need... thanks alot
  3. MAB

    how?

    i said i want to make the marker going up and down not i want to create marker...
  4. MAB

    how?

    how to make a arrow marker keep going up and down like GTA with example please..
  5. ERROR: RC\server.lua:37: attempt to call global 'getElementInerior' (a nil value) function challange (challanger,commandName,player2,money) -- making the challanging function if ( getElementInerior(challanger) == 11 ) then local bet = tonumber(money) local challanged = getPlayerFromName(player2) if not money or not player2 then outputChatBox("Correct Sync for challange is /challange .",challanger,0,255,0) end if not bet then outputChatBox("Invalid amount.",challanger,0,255,0) end if not challanged then outputChatBox("Can't find a player with that name.",challanger,0,255,0) end if ( challanged and bet ) then setElementData(challanged,"challanger",getAccountName(getPlayerAccount(chaallanger))) end end end addCommandHandler("challange",challange)
  6. MAB

    not working

    so the problem was the marker size? LOL
  7. MAB

    not working

    let me get this clear.. u r fixing the problem by changing the marker color? didn't work
  8. MAB

    not working

    why it isn't working?! local marker = createMarker(2441.18262,2065,11.82031,"arrow",1) -- creating a marker local blip = createBlipAttachedTo (marker,33,1) -- attaching a blip to the marker function enter (hit) if ( getElementType(hit) ~= "player" or isPedInVehicle(hit) ) then return end -- make sure that the hit element is a player and the player is on foot fadeCamera(hit,false,1,0,0,0) -- make his camera go black setTimer(fadeCameraDelayed,1500,1,hit) -- after 1.5 sec do the fadeCameraDelayed function end -- end of the function addEventHandler("onMarkerHit",marker,enter) -- attaching the enter function to the marker function fadeCameraDelayed(player) -- This function prevents debug warnings when the player disconnects while the timer is running if (isElement(player)) then -- checking if the player didn't quit the game fadeCamera(player, true, 0.5) -- return his camera to normal after 0.5 sec end -- end of if end -- end of the function
  9. [quote name=..&G:..]Hello guys, I am trying to make a small image in the middle right part of the screen, but I keep bumping on an issue. The image is fine for me, but for a friend with a bigger resolution, he gets it more to the left and a bit longer to the right Any ideas? local x, y = guiGetScreenSize() to make any dx element fixed for all screens do that.. for more information go to tutorials forum and look at my dx tutorial.. local sw, sh = guiGetScreenSize() -- get the screen size of the player... local x,y = (sw/1280),(sh/768) -- my resolution is 1280x768 so that is what i do... i do / my screen width and / my screen height ... use yours function draw () -- ur image positions without any math stuff... currencyWindow = guiCreateStaticImage(x*postionOne, y*positionTwo, x*positionThree, y*positionFour, ":guieditor/images/examples/fereastra.png", false) end -- now all people will see the image like u see it.. any one except the very low resolution ones there will be a small defferance...
  10. بقولك انا اللي عامل الطريقه دي وعارفها كويس... مش مصدقني؟ خش viewtopic.php?f=148&t=91351 spoiler قبل الاخير هنا في ال
  11. مش بحب استعمل اسكربتات تانيه... انا عاوز اعرف بتتعمل ازاي وابقا اعملها انا
  12. 1. اه الاتنين 2. شكرا بس ممكن مثال؟ 3. الطريقه البسيطه اللي انت بتتكلم عليها دي انا اللي عملتها... هي مش حلوه عشان العلامه بتاعت الكتابه مش بتختفي وبتمشي علي النص اللي بتكتبو وكام النص مش بيكون مظبوط علي المستطيل
  13. طبعا كلنا عارفين وظائف الدايركت اكس اللي هي بتبدأ ب dx طيب انا بعرف اعمل لوحه تقدم و ازرار ب وظائف الدايركت اكس بس عاوز اعرف اذا حد بيعرف يعمل صندوق تعديل بوظائف الدايركت اكس.. اللي هو Edit Box... وياريت كمان لو بيعرف يعمل gridlist يبقي حلو اوي..
  14. MAB

    camera functions

    i used setCameraMatrix to change the player's camera position .. now how to reset it to the normal mode ?!
  15. that will make it invisible for all players, right?
  16. all works except the setElementVisibleTo function. the player still can see the marker but it worked when i used triggerServerEvent local changer = createMarker ( 217.48380, -98.56483, 1004.25781, "cylinder", 1.5, 0, 255, 0, 170 ) setElementInterior ( changer, 15 ) function trigger (hit) if isPedInVehicle(hit) then return end showCursor ( hit, true ) setPlayerHudComponentVisible ( hit, "all", false ) showChat ( hit, false ) triggerClientEvent ( hit, "show", hit ) setElementVisibleTo(source,hit,false) end addEventHandler( "onMarkerHit", changer, trigger )
  17. MAB

    hurry up

    lol didn't see it .. thanks
  18. MAB

    hurry up

    what hell does that thing want from me?! i tried every thing http://prntscr.com/8468ia addEventHandler("hats",root,function() local texture, model = getPedClothes ( source, 16 ) if ( texture and model ) then if texture == "bandred" and model == "bandana" then addPedClothes ( source, "bandblue", "bandana", 16 ) end if texture == "bandblue" and model == "bandana" then addPedClothes ( source, "bandgang", "bandana", 16 ) end if texture == "bandgang" and model == "bandana" then addPedClothes ( source, "bandblack", "bandana", 16 ) end if texture == "bandblack" and model == "bandana" then addPedClothes ( source, "bandred2", "bandknots", 16 ) end if texture == "bandred2" and model == "bandknots" then addPedClothes ( source, "bandblue2", "bandknots", 16 ) end if texture == "bandblue2" and model == "bandknots" then addPedClothes ( source, "bandblack2", "bandknots", 16 ) end if texture == "bandblack2" and model == "bandknots" then addPedClothes ( source, "bandgang2", "bandknots", 16 ) end if texture == "bandgang2" and model == "bandknots" then addPedClothes ( source, "capknitgrn", "capknit", 16 ) end if texture == "capknitgrn" and model == "capknit" then addPedClothes ( source, "captruck", "captruck", 16 ) end if texture == "captruck" and model == "captruck" then addPedClothes ( source, "cowboy", "cowboy", 16 ) end if texture == "cowboy" and model == "cowboy" then addPedClothes ( source, "hattiger", "cowboy", 16 ) end if texture == "hattiger" and model == "cowboy" then addPedClothes ( source, "helmet", "helmet", 16 ) end if texture == "helmet" and model == "helmet" then addPedClothes ( source, "moto", "moto", 16 ) end if texture == "moto" and model == "moto" then addPedClothes ( source, "boxingcap", "boxingcap", 16 ) end if texture == "boxingcap" and model == "boxingcap" then addPedClothes ( source, "capgang", "cap", 16 ) end if texture == "capgang" and model == "cap" then addPedClothes ( source, "capgangside", "capside", 16 ) end if texture == "capgangside" and model == "capside" then addPedClothes ( source, "capgangover", "capovereye", 16 ) end if texture == "capgangover" and model == "capovereye" then addPedClothes ( source, "capgangup", "caprimup", 16 ) end if texture == "capgangup" and model == "caprimup" then addPedClothes ( source, "bikerhelmet", "bikerhelmet", 16 ) end if texture == "bikerhelmet" and model == "bikerhelmet" then addPedClothes ( source, "capred", "cap", 16 ) end if texture == "capred" and model == "cap" then addPedClothes ( source, "capredback", "capback", 16 ) end if texture == "capredback" and model == "capback" then addPedClothes ( source, "capredside", "capside", 16 ) end if texture == "capredside" and model == "capside" then addPedClothes ( source, "capredover", "capovereye", 16 ) end if texture == "capredover" and model == "capovereye" then addPedClothes ( source, "capredup", "caprimup", 16 ) end if texture == "capredup" and model == "caprimup" then addPedClothes ( source, "capblue", "cap", 16 ) end if texture == "capblue" and model == "cap" then addPedClothes ( source, "capblueback", "capback", 16 ) end if texture == "capblueback" and model == "capback" then addPedClothes ( source, "capblueside", "capside", 16 ) end if texture == "capblueside" and model == "capside" then addPedClothes ( source, "capblueover", "capovereye", 16 ) end if texture == "capblueover" and model == "capovereye" then addPedClothes ( source, "capblueup", "caprimup", 16 ) end if texture == "capblueup" and model == "caprimup" then addPedClothes ( source, "skullyblk", "skullycap", 16 ) end if texture == "skullyblk" and model == "skullycap" then addPedClothes ( source, "skullygrn", "skullycap", 16 ) end if texture == "skullygrn" and model == "skullycap" then addPedClothes ( source, "hatmancblk", "hatmanc", 16 ) end if texture == "hatmancblk" and model == "hatmanc" then addPedClothes ( source, "hatmancplaid", "hatmanc", 16 ) end if texture == "hatmancplaid" and model == "hatmanc" then addPedClothes ( source, "capzip", "cap", 16 ) end if texture == "capzip" and model == "cap" then addPedClothes ( source, "capzipback", "capback", 16 ) end if texture == "capzipback" and model == "capback" then addPedClothes ( source, "capzipside", "capside", 16 ) end if texture == "capzipside" and model == "capside" then addPedClothes ( source, "capzipover", "capovereye", 16 ) end if texture == "capzipover" and model == "capovereye" then addPedClothes ( source, "capzipup", "caprimup", 16 ) end if texture == "capzipup" and model == "caprimup" then addPedClothes ( source, "beretred", "beret", 16 ) end if texture == "beretred" and model == "beret" then addPedClothes ( source, "beretblk", "beret", 16 ) end if texture == "beretblk" and model == "beret" then addPedClothes ( source, "capblk", "cap", 16 ) end if texture == "capblk" and model == "cap" then addPedClothes ( source, "capblkback", "capback", 16 ) end if texture == "capblkback" and model == "capback" then addPedClothes ( source, "capblkside", "capside", 16 ) end if texture == "capblkside" and model == "capside" then addPedClothes ( source, "capblkup", "caprimup", 16 ) end if texture == "capblkup" and model == "caprimup" then addPedClothes ( source, "trilbydrk", "trilby", 16 ) end if texture == "trilbydrk" and model == "trilby" then addPedClothes ( source, "trilbylght", "trilby", 16 ) end if texture == "trilbylght" and model == "trilby" then addPedClothes ( source, "bowler", "bowler", 16 ) end if texture == "bowler" and model == "bowler" then addPedClothes ( source, "bowlerred", "bowler", 16 ) end if texture == "bowlerred" and model == "bowler" then addPedClothes ( source, "bowlerblue", "bowler", 16 ) end if texture == "bowlerblue" and model == "bowler" then addPedClothes ( source, "bowleryellow", "bowler", 16 ) end if texture == "bowleryellow" and model == "bowler" then addPedClothes ( source, "boater", "boater", 16 ) end if texture == "boater" and model == "boater" then addPedClothes ( source, "bowlergang", "bowler", 16 ) end if texture == "bowlergang" and model == "bowler" then addPedClothes ( source, "boaterblk", "boater", 16 ) end if texture == "boaterblk" and model == "boater" then removePedClothes ( source, 16 ) end end if not ( texture and model ) then addPedClothes ( source, "bandred", "bandana", 16 ) end end) end )
  19. MAB

    2 questions

    i must create browser, right?! so it is not possible to make mta open the player's pc default browser like google chrome or firefox ?!
  20. MAB

    2 questions

    1. how to insert/remove text into a read only edit box when the player press on a button ? 2. how to make the player's default web browser opens and connect that link when he press on a button ? https://wiki.multitheftauto.com/wiki/All_Skins_Page
  21. MAB

    [REL]DX Edit Box

    not working function testing () exports.dxedit:createEditBox( "1", 0.2, 0.2, 0.20, 0.07, true, "", false, 25, "arial", false, 0, { 0, 0, 0, 180 }, true, { 255, 255, 255, 180 }, 2, true, 60, true, "Simple box 1", { 0, 0, 0, 40 }, true, 3, "arial", true, true, {0, 114, 210}, false ) end addEventHandler("onClientRender",root,testing) and exports.dxedit:createEditBox( "1", 0.2, 0.2, 0.20, 0.07, true, "", false, 25, "arial", false, 0, { 0, 0, 0, 180 }, true, { 255, 255, 255, 180 }, 2, true, 60, true, "Simple box 1", { 0, 0, 0, 40 }, true, 3, "arial", true, true, {0, 114, 210}, false )
  22. well.. i done it other way.. thanks anyway
  23. i still don't know what to replace source with.. do i replace it with localPlayer?!
×
×
  • Create New...