Jump to content

joedajoester

Members
  • Posts

    256
  • Joined

  • Last visited

Everything posted by joedajoester

  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
  14. joedajoester

    no warp

    Hi, im trying to make a script that when someone is in a colzone they can only be warped to by people in the staff acl group. This is where im at now, because im stuck. I dont know how to continue the warping when they are in the acl group. col = createColTube (-1752, -2978, 55, 100, 17) -- enter your cooderates here for your colshape please note 10 and 3 is to do with the size of the shape. root = getRootElement () function warp ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Staff" ) ) then end end end addEventHandler ( "onSetPos", col, warp) EDIT: Will this work instead? col = createColTube (-1752, -2978, 55, 100, 17) root = getRootElement () function warp ( pla ) if getElementType ( pla ) == "player" then if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Staff" ) ) then else outputChatBox("You cannot warp to this person currently", getRootElement(), 0, 255, 0) end end end addEventHandler ( "onSetPos", col, warp)
  15. Is there one that automatically has fireworks?
  16. I'm reopening my server and was wondering if anyone knows of any party scripts that i can use to celebrate the reopening I found 1 script that flashes colors on the sky but im having trouble finding anything else
  17. I go on this website and i get http://mta4free.com/index.php?p=request
  18. I go on this website and i get Server's uptime: 19:42:15 up 33 days, 14:04, 0 users, load average: 1.45, 1.33, 1.33 RAM usage: total used free shared buffers cached Mem: 4096 1392 2703 0 0 0 -/+ buffers/cache: 1392 2703 Swap: 0 0 0 Total: 4096 1392 2703 http://mta4free.com/index.php?p=request
  19. When i go on the website, i just get some text and it servers uptime and other info. I can never get into the website to sign up
  20. joedajoester

    warp

    function sendMessage2( messageclean, messageType) if message then if(string.find(message, "warp me to"))then local player = gettok ( message, 4, string.byte(' ') ) outputChatBox("warped to "..) executeCommandHandler ( "warp ", source, source ) end end end addEventHandler("onPlayerChat",root,sendMessage2) Can someone help. I get no error. Example: warp me to Thunder-D and it warps me to him and says i have been warped to thunder-d. Thanks
  21. function sendMessage2( messageclean, messageType) local message = string.lower(messageclean) local x, y, z = getElementPosition ( source ) if (string.find(messageclean, "a ") and string.find(messageclean, "infernus")) then outputChatBox("Your car has spawned, enjoy!", source, 0, 255, 0) createVehicle ( 411, x, y+5, z + 10 ) warpPedIntoVehicle ( source, vehicle ) end end addEventHandler("onPlayerChat",root,sendMessage2) It wont warp me into the car. It says bad argument @ warppedintovehicle i think its because vehicle should be changed but i dont know what to change it to
  22. joedajoester

    Enb series

    Hi, i was boared so i decided to get enb series. It worked and i started to configure it more and all of a sudden the reflections on cars stopped working. I tried replacing all the files and getting a new config and still no car reflections. Specs nvidia 9800 gt 4gb ram AMD athlon II x4 630 I am using mta 1.3
  23. Ok, I have no clue how to do text so i just use gimp and put text and remove the background. How would I attach it to a element like how the playername is attached to the player how would I do that or for a car? Thanks
×
×
  • Create New...