Jump to content

Benevolence

Members
  • Posts

    367
  • Joined

  • Last visited

Everything posted by Benevolence

  1. Like Google Earth? Awesome, going to try it now.
  2. So for learning purposes, I'm trying to make this code which will respawn you in the xyz cords given after 2 seconds then when you respawn it gives you a little message. The thing is, after I commit suicide it spawns me instantly. I want it to make me wait 2 seconds. It's not working, what am I doing wrong? function onPlayerWasted() local x = 1742.47546 local y = -1861.00513 local z = 13.57804 spawnPlayer(source, x, y, z) setTimer(spawnPlayer, 5000, 1) --setTimer(spawnPlayer, x, y, z, source, 0, 0, 3 ) fadeCamera(source, true) setCameraTarget(source, source) outputChatBox("You've been respawned as a result of your death.", source) end addEventHandler("onPlayerWasted", getRootElement(), onPlayerWasted)
  3. Yo tambien tengo este problema. Nunca lo eh mencionado en el forum, pero si. Lo que yo ago es que agarro el box despues que le doy click a "Map Editor" y lo muevo por todos los lados por unos segundos. Tambien le doy left click muchas veces en el medio y siempre haci me sale. Toma tiempo pero lo que yo ago lo hace mas rapido. Tratalo.
  4. That would be greatly appreciated! Good luck.
  5. The site mta4free.com isn't working for me. I never used your service, but just saying. "Seems like they found the scripts they were looking for."
  6. That didn't even help. I have a feeling you only made a reply out of rage seeing what you wrote and how you wrote it.
  7. Ask for your parent's permission to use their Credit Card.
  8. Para simpledad chequea http://www.computerhope.com/htmcolor.htm Yo uso este siempre que necesito los codigos para colores.
  9. You have to put the tool in the folder where the server exe is, from there it will just detect where it is, and the rest is magic. Alright, though so. Pretty good.
  10. From the site: I may consider your hosting if you get a location in the US.
  11. Tested it, works. One question, does it auto detect the MTA Server.exe directory? I know you must write that, but I mean like how will it know where it's located?
  12. You can use this script to create gates. All you need to edit is the cords, gate (object id if you wanna change it) which would be 969 in this case. You can change the direction it moves to which would be the offset = part Let me know if it doesn't work for you because I edited it a bit just to post it here, since it had some coding which you don't need. If your new to LUA this is a decent script to learn off of imo. I'm new to LUA and I learned a bit from studying it and whatnot. local gates = { { gate = createObject( 969, 331.2138671875, -1290.6259765625, 53.285789489746, 0, 0, 27.5 ), offset = { 8, 4, 0, 0, 0, 0 } } } local function resetBusy( shortestID ) gates[ shortestID ].busy = nil end local function closeDoor( shortestID ) gate = gates[ shortestID ] local nx, ny, nz = getElementPosition( gate.gate ) moveObject( gate.gate, 1000, nx - gate.offset[1], ny - gate.offset[2], nz - gate.offset[3], -gate.offset[4], -gate.offset[5], -gate.offset[6] ) gate.busy = true gate.timer = nil setTimer( resetBusy, 1000, 1, shortestID ) end local function openDoor(thePlayer, commandName, pass) local shortest, shortestID, dist = nil, nil, 10 local px, py, pz = getElementPosition(thePlayer) for id, gate in pairs(gates) do local d = getDistanceBetweenPoints3D(px,py,pz,getElementPosition(gate.gate)) if d < dist then shortest = gate shortestID = id dist = d end end if shortest then if shortest.busy then return elseif shortest.timer then killTimer( shortest.timer ) shortest.timer = nil outputChatBox( "The gate is already open!", thePlayer, 0, 255, 0 ) else local nx, ny, nz = getElementPosition( shortest.gate ) moveObject( shortest.gate, 1000, nx + shortest.offset[1], ny + shortest.offset[2], nz + shortest.offset[3], shortest.offset[4], shortest.offset[5], shortest.offset[6] ) outputChatBox( "You opened the gate!", thePlayer, 0, 255, 0 ) end shortest.timer = setTimer( closeDoor, 5000, 1, shortestID ) end end end addCommandHandler( "gate", openDoor)
  13. Yeah listen to JR10, he's got your back.
  14. For fly... there's a resource called superman. Look for it, let me know if you don't find it because I have it. For water... what do you mean exactly? You want to raise the water levels? I have a flood script too by the way, let me know if you want it. For the rest, I'm not sure.
  15. I'm not sure how to do it. But anyway, what language do you want to translate to?
×
×
  • Create New...