Jump to content

Simple0x47

Members
  • Posts

    1,518
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Simple0x47

  1. You could try attaching the marker to a object, and moving the object will make the marker move to local marker = createMarker ( 0, 0, 0, "arrow", .75, 255, 0, 0, 170 ) local object = createObject(1318, x, y, z, rx, ry, rz) function moveObject() if attachElements ( marker, object, 0, 0, 2 ) then moveObject(object, time, x, y, z, rx, ry, rz) end end
  2. Find where the key is bind in your scripts and remove it. Just simple as that
  3. Another idea to stop this explosion is freezing the Z Coordinate, which is going to allow the rhino move X,Y but not Z.
  4. Se podrían hacer unas pequeñas modificaciones, pero está bastante bien
  5. Simple0x47

    MTA 5 ?

    The sad thing about this, is that the project FiveM cannot continue developing thanks to Take Two
  6. I'll recommend you mySQL it's better than SQLite and AccData, but if you cannot use it choose SQLite. AccData it's good for storage information about a player, but if you're going to have vehicles and things like this and you've got to save them into something SQLite it's the correct option.
  7. It's possible, I've seen a Sabre vehicle mod which adds to the vehicle a secondary color.
  8. Try this: local localPlayer = getLocalPlayer() function stop_turret_rotation() local veh = getPedOccupiedVehicle(localPlayer) local id = getElementModel ( veh ) if id == 432 or id == 601 then local x, y = getVehicleTurretPosition(veh) if x and y then setVehicleTurretPosition(veh, x, y) -- Forward Look end end end function event() addEventHandler("onClientRender", root, stop_turret_rotation) end addCommandHandler("event", event)
  9. Yeah, that's why we need where your function "removeRadar" is being called.
  10. I think that's not impossible but it's not easy to do, I think you've got to remove/replace the explosion animation.
  11. Try this: (Viva DayZ :v) local hillArea = createColRectangle ( -736.27728271484,909.60327148438, 150, 150 ) local hillRadar = createRadarArea ( -736.27728271484,909.60327148438, 100, 100, 0, 255, 0, 175 ) local radmax = 300 local player = getLocalPlayer() function radx() local radn = getElementData(player,"Radiacion") radi = guiCreateLabel(0.01, 0.31, 0.22, 0.03, "Radiacion: "..radn, true) guiSetFont(radi, "default-bold-small") guiLabelSetColor(radi, 255, 0, 0) end function radx2() local radn = getElementData(player,"Radiacion") if not radn then setElementData(player,"Radiacion",0) destroyElement(radi) setTimer(radx,500,1) else destroyElement(radi) setTimer(radx,500,1) end end ---Jugador entrando al area function hill_Enter ( player, matchingDimension ) if (player and getElementType(player) == "player" and matchingDimension) then if radx5Timer then killTimer(radx5Timer) end local radx4Timer = setTimer( function (player) radx4() playSound("sounds/rad.mp3") if radn and radn >= radmaxx then setElementData(player,"blood",-665) end end,1000,0,player) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter) -- Jugador saliendo del Area function hill_Exit ( player, matchingDimension ) if (player and getElementType(player) == "player" and matchingDimension) then if radx4Timer then killTimer(radx4Timer) end local radx5Timer = setTimer(radx5, 1000, 0, player) end end addEventHandler ( "onColShapeLeave", hillArea, hill_Exit ) function radx4() setElementData(player,radn + 10) end function radx5() setElementData(player,radn - 10) end
  12. I wouldn't recommend you to delete the San Andreas Original map, because if you're going to make your own map or get another one from other GTA games like GTA III (Liberty City map) you're going to suffer lots of bugs and lot of lag. But if you're mad just try the MTA:SA tutorial of removeWorldModel This shit will remove the world models. (Don't be mad) for i=550,20000 do removeWorldModel(i,10000,0,0,0) end setOcclusionsEnabled(false) -- Also disable occlusions when removing certain models setWaterLevel(-5000) -- Also hide the default water as it will be full of holes
  13. Can you write that in a script? He says where in your script do you make use of the removeradar function. It could be like this. function example(player) end function anotherexample(player) local example = example(player) -- Where do you make the call of the function? outputChatBox(example, player) end
  14. When you change the second color it changes the 2nd color. It assigns the color value to the secondary color. Because there's vehicle mods which converts a only color vehicle into two color vehicle.
  15. What you're looking for can be resolved with this functions. isPlayerInTeam outputChatBox
  16. Simple0x47

    Solved

    Try this: addEvent("Register",true) addEventHandler("Register",getRootElement(), function (user,pass) if user ~= "" then if pass ~= "" then if (string.len(pass) >= 4) then local account = getAccount(user,pass) if (account) then outputChatBox("[!] Account: '"..user.."' exists [!]", source, 255, 0, 0, true) else if addAccount( user, pass) then outputChatBox("[!] Account: '"..user.."' | Password: '"..pass.."' [!]", source, 255, 0, 0, true) else outputChatBox("[!] Account cannot be registered [!]", source, 255, 0, 0) end else outputChatBox("[!] Your password must be at least 4 characters long [!]", source, 255, 0, 0, true) end else outputChatBox("[!] Password can not be blank [!]", source, 255, 0, 0, true) end else outputChatBox("[!] Login can not be blank [!]", source, 255, 0, 0, true) end end)
  17. It's clear, you haven't defined players. In the SDK it's not defined that's why the script show's you error. If you could gave the call.php script, I could define for you players.
  18. You would need to make you're own flat texture
  19. Simple0x47

    Solved

    Could you show the script until outputChatBox with the message you've been registered successfully?
  20. Using a custom account system has a lot of pros. First one, it has more performance. Second one, it's easier to control/edit. Third one, you can export the information to webpages, etc... (Which allows you to create a User Panel Control for your server) If you need a mySQL database for free, try here http://www.db4free.net (Host = db4free.net)
  21. You need Scipters because you have a server but you need a scripter. Add me on skype Skype: killer.68x
  22. Can you explain better your problem? Add me on skype I'll help you. Skype: killer.68x
  23. I can help you with mySQL if you want. But please don't use XML.
  24. 000Webhost doesn't allow external sql connections so here's my recomendation.http://www.db4free.net It's a mySQL database free provider for testing uses. Just make your account there and insert the info in your script.
  25. You're using XML as a way to store information? That's not a good choice to store information. I would recommend you to use mySQL. Second, don't make files for every player, just keep all players in one.xml and what's the issue you have with it?
×
×
  • Create New...