Jump to content

toptional

Members
  • Posts

    493
  • Joined

Everything posted by toptional

  1. toptional

    Scripter

    Guys, Give him a break? He's saying he's a good scripter(i believe seen him helping others), But making a big RP gamemode all by himself is a hard job. But seriously ANOTHER RP? My god when will people get original.
  2. Is there a setting section? Where i can disable such and such?
  3. Hey guys! I was wondering how do you edit the freeroam resource? Disable weather changing, add another section on the vehicle? I can't find the freeroam resource?
  4. Thanks TAPL! (This is my 500th post! Party )
  5. This is what MTA needs! More original servers! They should ban RP servers one day
  6. Hi guys, Is there an event client or server that triggers something the first time someone joins the server? I was thinking onPlayerRegister but i don't think it exists? Is there something i could use ?
  7. The i'm pretty sure that dxrectangle is not a GUI element, or is it?
  8. I made this dx rectangle i want when someone press's it it will trigger a server event which i will do later, But i can't figure it out. I tried onClientClick but it doesn't work. I think i got the parameters wrong I was just experimenting it's probably all wrong. firstMissionMarker = createMarker ( 1699.88647, -2259.09521, 38.5, "cylinder", 1.5, 255, 255, 0, 125 ) setElementInterior ( firstMissionMarker, 2) function Draw () spawnbutton = dxDrawRectangle(569, 538, 144, 53, tocolor(255, 0, 0, 255), true) spawntext = dxDrawText("Spawn!", 620, 555, 721, 569, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, false, true, false, false) end; addEventHandler("onClientMarkerHit",firstMissionMarker, function (plr) if (getElementType(plr) == "player") and ( plr == localPlayer )then addEventHandler("onClientRender",source,Draw); end; end ); addEventHandler("onClientMarkerLeave",firstMissionMarker, function ( plr ) if (getElementType(plr) == "player") and ( plr == localPlayer )then removeEventHandler("onClientRender",source,Draw); end; end ); function spawnPlayerOnDXButtonPress ( left, down, 569, 538, 1699.88647, -2259.09521, 38.5, spawnbutton ) if ( spawnbutton ) then outputChatBox ("works!") else outputChatBox ("FAIL!") end end addEventHandler("onClientClick", source, spawnPlayerOnDXButtonPress )
  9. I got it working, but it's kind of a bad way, the planes spawns in water sometimes sometimes in a building. so i was thinking of creating a table and selecting a random selection of 3 coordinates, any idea how this could be done? I can't figure it out.
  10. Is there anyway i can find out the coordinates of intervals from the gta map? without figuring them out will takes long?
  11. I'm not sure how to use math.random I'm trying to create a vehicle randomly on the map can anyone give me an example? I tried this but it's not working planeCrash= createVehicle ( 577, math.random,math.random,math.random) Thanks.
  12. Here where there you see root as the element that means it shows for all, i have tried source, localPlayer, plr nothing works with them the gui doesn't even show. addEventHandler("onClientMarkerHit",firstMissionMarker, function (plr) if (getElementType(plr) == "player") then addEventHandler("onClientRender",root,Draw); end; end ); addEventHandler("onClientMarkerLeave",firstMissionMarker, function ( plr ) if (getElementType(plr) == "player") then removeEventHandler("onClientRender",root,Draw); end; end );
  13. Another Issue- How do i make a dxrectangle like a Gui button?
  14. Ok It works, but the \n is showing in it and not making a new line
  15. I need the all the dx stuff to show when you enter the only marker, I really don't understand Dx it's a big confusion to me can anyone explain? here is my code: firstMissionMarker = createMarker ( 1699.88647, -2259.09521, 38.5, "cylinder", 1.5, 255, 255, 0, 125 ) setElementInterior ( firstMissionMarker, 2) addEventHandler("onClientRender", root, function() dxDrawRectangle(368, 208, 520, 354, tocolor(3, 15, 251, 195), true) dxDrawText("The Aviator's Spawn Panel Information.", 479, 226, 725, 257, tocolor(254, 0, 0, 195), 1, "sans", "left", "top", false, false, true, false, false) dxDrawLine(368, 267, 889, 267, tocolor(43, 0, 0, 195), 1, true) dxDrawText("Welcome to the Aviators Gamemode!\n\nThe main focus of this gamemode is to fly around, join airlines hang about,buy houses, meet your friends buy cars and show off your flying skills! If you've loved flying in single player this is the gamemode for you!\n\nHere are the levels\nA student pilot is 0 points : These can fly everything except the Andromada, AT-400, military planes and military helicopters (hydra/hunter) \n \nA Private pilot is 150 points : These can fly everything except the Andromada and AT-400, and military planes and helicopters (hydra/hunter) and flying with the shamal will be x1.5 the amount of money a student pilot earns \n \nA Commercial pilot is 250 points : These can fly everything except the military planes and helicopters (hydra/hunter) \n \nArmy pilots is 500 points : These can fly everything \nIn an airline, all airplanes of the airline can be used not matter what \"level\" you are ", 396, 272, 871, 503, tocolor(255, 255, 255, 255), 1, "default", "left", "top", false, true, true, false, false) end ) end
  16. It's just not working, this is really fustrating me, the element doesn't freeze!
  17. Thanks it works! But i have another issue there is another part of the script where you go into a marker with this other vehicle and get warped into the dodo, but the other vehicle doesn't go away here is that part of the script addEvent ( "spawnPlane", true ) addEventHandler ( "spawnPlane", root, function ( vehicleName ) local vehicleModel = getVehicleModelFromName ( vehicleName ) if ( vehicleModel ) then -- add this to get spawn the vehicle in your exact position of the maker local x, y, z = getElementPosition ( source ) local vehicle = createVehicle ( vehicleModel, 1690.14868, 1453.82971, 10.76650, 0, 0, 0 ) warpPedIntoVehicle ( source, vehicle ) outputChatBox ("#1874CDMake your way to Las Venturas Airport to pick up your plane!", source,24,116,205, true) end end )
  18. Yes that happens but i don't want that only the person who entered the marker to be frozen.
×
×
  • Create New...