Jump to content

joedajoester

Members
  • Posts

    256
  • Joined

  • Last visited

Details

  • Gang
    Joe's World Freeroam

joedajoester's Achievements

Red-Headed Stepchild

Red-Headed Stepchild (19/54)

0

Reputation

  1. Thank you for all your help everyone, it works!
  2. Still not removing the gates when i type "spatula" This is a tough bugger lol. http://imgur.com/gENUtDp
  3. Thanks for the quick reply, however it still doesn't remove the objects
  4. Hi, so im trying to have the command "spatula" attach objects (which it does) and then when i type "spatula" again i want it to remove the objects only if they are attached. Spent a few hours on this but i get no error and only the removing part doesnt work. function addspatula (player) local spatula = 0 if spatula == 0 then car1gate1 = createObject(971, 0, 0, 5) car1gate2 = createObject(971, 0, 0, 5) car2gate1 = createObject(971, 0, 0, 5) car2gate2 = createObject(971, 0, 0, 5) vehicle = getPedOccupiedVehicle(player) attachElements( car1gate1, vehicle, 0.4, 6.2, -0.6, 90, 90, 90 ) attachElements( car1gate2, vehicle, 0.4, 13.2, -0.6, 90, 90, 90 ) addVehicleUpgrade ( vehicle, 1087 ) addVehicleUpgrade ( vehicle, 1087 ) else removeElements( car1gate1, vehicle, 0.4, 6.2, -0.6, 90, 90, 90 ) removeElements( car1gate2, vehicle, 0.4, 13.2, -0.6, 90, 90, 90 ) end end addCommandHandler("spatula", addspatula)
  5. I need this script to only teleport a player, not any other element, also wont teleport them while in a car. I got it working but i edited it a little and fergot what i did and now it teleports everything, even this dxdraw text i have in the marker. miniadminbase = createMarker(-1749, -3030, 53.6, 'cylinder', 1.5, 255, 0, 0, 150) function duty(player, matchingDimension) if getElementType (player) then setElementPosition (player, 0, 0, 5 ) end end addEventHandler("onMarkerHit",miniadminbase,duty) Thanks
  6. Are your graphics settings high? If so, then its the picture you are using.
  7. Hi , here is a script that i got from solidsnake14. The script is good for putting one picture somewhere. For placing multiple pictures, this rescource is good. Heres the script Script: local distance = 70 local screenSizeX, screenSizeY = guiGetScreenSize() local scale = 7 local myImage = "mtalogo.png" local x, y, z = 0, 0, 5 function renderImage() local px, py, pz = getElementPosition ( localPlayer ) local dist = getDistanceBetweenPoints3D ( px, py, pz, x, y, z ) if (dist < distance and isLineOfSightClear( px, py, pz, x, y, z, true, false, false, false )) then local screenX, screenY = getScreenFromWorldPosition ( x, y, z+0.5 ) local scaled = screenSizeX * (1/(2*(dist+5))) *.85 local relX, relY = scaled * scale, scaled * scale if ( screenX and screenY ) then dxDrawImage( screenX, screenY, relX, relY, tostring(myImage) ) end end end addEventHandler( "onClientRender", root, renderImage ) If you need any extra help setting up the scripts, just ask
  8. Hi all, for some scripts i was wondering how would i make it so that some settings of the script (object movement speed for example) can be edited in the admin panel by clicking settings. All i know so far is that part of it has to do with the meta, you have to add stuff to the end of it. What i do not understand is, where in the script does it say that this option can be edited by the settings? Thanks for the help guys glad to be back to mta. I guess heres an example script i want to be able to edit the movement speed through admin panel resource settings. col = createColTube (-1868.6999511719, -3104.1999511719, 53.900001525879, 10, 3) -- enter your cooderates here for your colshape please note 10 and 3 is to do with the size of the shape. root = getRootElement () othergate1 = createObject ( 2951, -1868.5, -3104.1999511719, 54.700000762939, 0, 0, 318.5) -- enter the ID of the object followed by the coordinates -- note the rotx y and z may not be required so you just remove these. x y and z is where you would put your cordinates. function Open ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Staff" ) ) then moveObject (othergate1, 2500, -1868.5, -3104.1999511719, 56.900001525879) -- here is where you enter the coordinatess of the new location of the object, 2200 = the speed of the movent. end end end addEventHandler ( "onColShapeHit", col, Open) function Close ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Staff" ) ) then moveObject (othergate1, 2500,-1868.5, -3104.1999511719, 54.700000762939) -- here is where you copy the coordinates of the orginal location of the object, 2951 = the timer of movent. end end end addEventHandler ( "onColShapeLeave", col, Close )
  9. Hey guys sorry for the inactivity but i wanna make a admin base but have a room with text on a wall saying where the teleports lead to. My only option i could think of would be making some pictures with transparent backgrounds and dxdraw-ing them but that wont be too good. If anyone knows a way please let me know and im not gonna change the textures of objects. Thanks
  10. Hi fellow MTA users! I've just started a new freeroam server (actually been up before- but this is a complete overhaul for us!). Come on down to see what it's like! My staff and I have been working incredibly hard to pull this together and I feel like it's been an incredible turnout. We have gamemodes that are great fun, some great scripts & mods, and our awesome staff that is growing with modest members to help you around the server and answer any questions you might have! Go and register at our forums at http://joesworldfreeroam.webs.com! We're also looking for great scripters and moderators, you can work your way up to supermod and even admin if you prove that you are a loyal JWF member, and then applying for the higher position. If you wish to apply, go to the forums and register, then apply in the correct area in the forums section!
  11. It hasnt been working for me for about 2 days, i never had this problem before but other servers are not having this problem because i can see them in the list. Should i re install mta?
  12. Thanks for the quick reply it doesnt flash the colors though, its just a solid rainbow color
  13. function party (getRootElement()) setSkyGradient ( math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255), math.random (0,255) ) end addEventHandler("onClientResourceStart", party) Doesnt do anyhting, i need it to flash the sky and water different colors. I started out with the sky but this doesnt work
×
×
  • Create New...