Jump to content

Captain Cody

Members
  • Posts

    2,753
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by Captain Cody

  1. What if the server runs one of the best maps ever made for SA? And it is apparent that it is indeed the map.
  2. getElementParent returns the parentElement, but you cannot get a variables name.
  3. Captain Cody

    Request 2

    Oh didn't take into account blowing up; I'll try to fix this in a bit. local vehicleHealthMultiplier = 3 addEventHandler( "onClientVehicleDamage", root, function ( _,_, loss ) if isElement(source) then -- Checks if the vehicle still exists if getElementHealth(source) > 0 then -- Checks if it's health isn't 0 (blown up) setElementHealth( source, getElementHealth(source)+(loss)-(loss/vehicleHealthMultiplier)) end end end )
  4. SA has shadow cols; which is how it generates its shadows by default but they are often in accurate; and present a lot of issues if used on bigger objects (Rockstar were being absolutely -well, stupid as hell with their implementation of these, or in other words, shadow cols are a smart way of doing it, but they weren't thinking right when they actually added them.) (Also Ren, if you could implement these properly without alot lag that'd be awesome)
  5. Haha I'm very guilty of the readability thing.
  6. Well it is possible with lua, just not as pretty. Doesn't render ware have Dynamic shadows by default? Because if so I would if it'd be possible to some how unlock the dynamic lighting and the dynamic shadows aspect of render-ware in MTA.
  7. All of the main calulations and stuff take place in the compiled ASI file.
  8. Reinstall it with the installer from the main site (mtasa.com)
  9. What resource is the second one? with some work those so called "bugs" could likely be fixed. Also one thing I can think of, of how to do something like this would be something like a reverse green screen effect, in other words Pretty much you render the object with a different color view point behind it, using a matrix from the camera to the object, after that you use some sort of shader to drop the green background, and then you tint it black; then render that on the surrounding objects with the right set up. This is likely a very bad example; because it'd require each object to have a view point, and massive lag would occur, and it wouldn't be pretty. Just something I thought of off the top of my head, something similar but way less laggy could probably be done through a fx file and all you'd need to do is supply cords, but I haven't any experience with fx.
  10. Currently you are only able to get the position of the actual physical objects on a vehicle such as hood, wheels, bumper,etc. But would it be possible to make it so you can get the position of the engine, front lights, gas cap, rear lights? This could be useful for many things such as adding brighter lights, calculating correct positions for dynamic lights, even having a fuel script that needs your vehicles gas cap aligned with the fuel unit, etc.
  11. You can find examples here ExecuteSQLQuery What you need is "executeSQLDelete"
  12. Captain Cody

    MTA Crash

    Malware gen is in a lot cases a false positive especially with a antivirus as unknown as that.
  13. Don't want to fill this topic with any more arguments related to this so I'll just leave it at, inital load freezes up a tad bit with United due to enormous amount of objects dffs txds etc getting loaded in. But after which you have no load times. And with maps such as gostown, VC stand alone and LC stand alone there is little to no initial loading times. If you'd like to continue this PM me or make another topic.
  14. noExit = {} addEvent("eventNoVehiclePlayers", true) function eventNoVehiclePlayers() for eventPlayers in pairs(WrapedPlayers) do noExit[eventPlayers] = true exports.SAEGcommands:sendMessage(getPlayerName(client).." Has removed yeah ability to exit vehicle !", 255, 0, 0,eventPlayers) end end addEventHandler("eventNoVehiclePlayers", root, eventNoVehiclePlayers ) function noExitAye(player) if noExit[player] then cancelEvent() end end addEventHandler("onVehicleStartExit", getRootElement(), noExitAye)
  15. ? addEvent("eventFeezePlayers", true) function eventFeezePlayers() addEventHandler("onVehicleStartExit", getRootElement(), cancelEvent) for eventPlayers in pairs(WrapedPlayers) do toggleAllControls ( eventPlayers, false ) exports.SAEGcommands:sendMessage(getPlayerName(client).." Has Frozen You !", 255, 0, 0,eventPlayers) end end addEventHandler("eventFeezePlayers", root, eventFeezePlayers ) That's assuming it's all players.
  16. function exitingVehicle(player) if player == localPlayer then cancelEvent() end end addEventHandler("onClientVehicleStartExit", getRootElement(), exitingVehicle) Or if you want globally addEventHandler("onVehicleStartExit", getRootElement(), cancelEvent)
  17. My Streamer may not be perfect, but it's the best one in MTA made so far. It's made with breaking previous limits in mind which is successfully has done.
  18. Hahahha that's the funniest thing I heard all day you cannot beat my streamer plain and simple. Heck only thing stopping me from being able to stream the entire map without missing objects is fps.
  19. Captain Cody

    MTA Crash

    Try adding an exception to the file it is detecting.
  20. Wasn't it Simple01 the lad talking about this?
  21. Streamer = Something that handles loading and unloading objects.
  22. Captain Cody

    MTA Crash

    *Yells* "Disable the anti virus" I didn't say it. Joking aside, what anti virus do you use?
  23. Really the staff are abusive at times, but they are in general much better staff then the majority of servers on MTA has.
  24. May you explain better what you are trying to accomplish?
×
×
  • Create New...