Jump to content

Captain Cody

Members
  • Posts

    2,753
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by Captain Cody

  1. Psh it's only 800 lines of code "Sarcastically"
  2. Yes he does mean health, he said previously that he wanted to lower health, or kill the player. Any ways issues I see just from scanning : radn is not defined as a global variable, you will have to redefine in it in each of the segments enter timer is never cancelled so even when he leaves he will still gain radioactive stuff function radx2 is missing an end function hill_Exit has 1 to many ends Any thing appearing in debugscript 3?
  3. You could use https://wiki.multitheftauto.com/wiki/Ge ... etPosition To set the direction of the projectile.
  4. Did I just hit my help limit here or something?
  5. What exactly is the issue you are having. I'm able to edit bikes with my rigged editor without an issue.
  6. Any way I would go about assigning a texture color to the vehicles color. So when you change primary it changes one of the shaders colors, but if you change secondary it changes another color?
  7. In general people use SQL because it's easy to transfer from host to host. 'From what I know' + You can sync accounts with website and server as said above. Account data is stored in a DB file, so yeh it's praticly the same thing as mySQL.
  8. MrTasty is correct, battery should not drain unless your alternator is bad or you leave lights running while engine is off, but that still would barley drain it. Lights use almost no power. "I'm mechanic I know this stuff" And I gave you steps to do it, try those.
  9. Faster. And yes it is possible, with the right editor.
  10. On vehicle spawn set the vehicles ElementData "Battery" to 100, or on resource start if the vehicle doesn't have one then set it to "100" Set timer, and every few secounds check if the car is in motion, if so set its elementdata 'Current' - "Amount you want" If the timer finds that the element data is 0, then kill engine, and kill lights. Then make it so you cannot turn them back on.
  11. https://wiki.multitheftauto.com/wiki/EngineLoadDFF
  12. OnMarkerHit is finding the vehicle that hit it not the player, Try this addEventHandler("onMarkerHit", Marker, function (hitPlayer, matchingDimension) if getElementType(hitPlayer) == "player" and matchingDimension then local theVehicle = getPlayerOccupiedVehicle(hitPlayer) if (theVehicle) then setElementData(theVehicle, "Cleaned", true) fadeCamera(hitPlayer, false, 2.5, 0, 0, 0) setTimer(fadeCamera, 2500, 1, hitPlayer, true, 2.5) moveObject(gate, 9000, 1915.5, -1771.80, 16) moveObject(gate1, 2000, 1915.5, -1780.85, 13) outputChatBox("Welcome to the car wash.", hitPlayer, 0, 255, 255) end end) Or you can use this addEventHandler("onMarkerHit", Marker, function (hitElement, matchingDimension) if getElementType(hitElement) == "vehicle" and matchingDimension then local driver = getVehicleOccupant ( hitElement) if (driver) then setElementData(hitElement, "Cleaned", true) fadeCamera(driver , false, 2.5, 0, 0, 0) setTimer(fadeCamera, 2500, 1, driver , true, 2.5) moveObject(gate, 9000, 1915.5, -1771.80, 16) moveObject(gate1, 2000, 1915.5, -1780.85, 13) outputChatBox("Welcome to the car wash.", driver , 0, 255, 255) end end)
  13. Ok nvm new question, how would I apply multiple shaders to the same thing?
  14. Any way to do custom offsets when applying a image to a world texture?
  15. DDoSing was not at all in my mind at the time, that's no fair for the other people using that host.
  16. /start 'ResourceName' Or use admin panel and start them, the settings one is missing a file, remove it from the xml file.
  17. Really you don't need a script for this. First as MIK said, yes they're idiots who have nothing better to do, no one listens. Secound that's what active admins are for. Stuff like this..
  18. What he wants is to check if the number is in an ip format, and if so not allow it. Aka 192.168.1.1, 4 decimals 4 numbers. Some thing that can be added to prevent mis-bans is to check if it is a valid ip some how.
  19. I believe you will have to replace them individually, there are no functions I know of in mta that will do a scan such as that and automatically replace them
  20. Captain Cody

    lock

    function getPedWeapons(ped) local playerWeapons = {} if ped and isElement(ped) and getElementType(ped) == "ped" or getElementType(ped) == "player" then for i=2,9 do local wep = getPedWeapon(ped,i) if wep and wep ~= 0 then table.insert(playerWeapons,wep) end end else return false end return playerWeapons end https://wiki.multitheftauto.com/wiki/GetPedWeapons Returns a table From this you have 2 options A: Check if the weapon is in that table B: Simplify the code above and combine it into the code you are working on, and make it return true / false if it finds that weapon.
  21. Not to certain about that one.. It's an easy task for a person with hacking experience. And any ways stealing resources is not about hacking the mta server it's self, it has to do with hacking into the file host for that server, which as I've said before easy thing to do if you have enough experience. Aye nvm, didn't notice what was said before. But yes, emailing there hosts is indeed one way of doing it. But although there is some that won't host stolen scripts, alot of hosts don't give a 'Crap' about what is hosted as long as it's not interfering with their server boxes.
  22. https://wiki.multitheftauto.com/wiki/GetElementPosition ....
×
×
  • Create New...