Jump to content

qaisjp

Retired Staff
  • Posts

    2,344
  • Joined

  • Days Won

    10

Everything posted by qaisjp

  1. https://wiki.multitheftauto.com/wiki/AddVehicleSirens https://wiki.multitheftauto.com/wiki/SetVehicleSirens
  2. code at first file and first line of the resource: local _eKeys = {} local _setElementData = setElementData function setElementData(p,k,...) _setElementData(p,k,...) _eKeys[k] = true end function clearElementData() for _,v in pairs(getElementsByType"player") do for k in pairs(_eKeys) do removeElementData(v,k) end end end must be server side.
  3. I don't know mysql, use the DB functions if ur not a pro.
  4. The player enters and the vehicle. Block one of them by using getElementType
  5. function playerChat (message, type) if string.sub(message, 1,2) ~= "++" then return end what indian shit are you talking about ? the code above should do it. add it to your code if your not a dumbass.
  6. There is something wrong with your query.
  7. tostring should do it, if not: function bool2string(b) return b and "true" or "false" end
  8. You can spawnPlayer on the same person even if they are spawned btw, it wont create a clone.
  9. You can't. Instead, try this code at the start of your gamemode _getElementsByType = getElementsByType _spawnPlayer = spawnPlayer _destroyElement = destroyElement function getElementsByType(i, ...) if i == "player" then local tab = {} for i,v in ipairs(_getElementsByType"player") do if not getElementData("isDestroyed") then tab[i] = v end end return tab else return _getElementsByType(i,...) end end function spawnPlayer(p,...) setElementData(p, "isDestroyed", false, true) _spawnPlayer(p,...) end function destroyElement(e,...) setElementData(e, "isDestroyed", true, true) _destroyElement(e) end it's untested. syntax is correct tho
  10. Sorry for double post but I opened MTA:SE right now, and pressed File > New Resource and type "deb" in the resource name waited a few seconds to rethink my name and boom crash. I sent the report, but the editor never re-opened edit: occurs whenever i type 3 chars into it
  11. Also, since breakpoints also mean pausing everything going on, this would result in desync and lots of crappy stuff to deal with. I haven't tested these to see if it is already made but: support for previously created resources without SE When you select a script, the grdlist at the right switches to the client/server accordingly. When you are editing a script, in the row at the top which have quick buttons, there could be a quick toggle between client and server. Something advanced: add a button called "Optimise" which checks if variables are used in other script files and if it isn't make it a local variable.
  12. Such fucking great quality I watched it in 3D.
  13. FUCKING BEAUTIFUL +1337
  14. sorry, its got some bad edits and a bad song. the song is more suited for cod, not racing.
  15. The developers would rather add support for 1.0+ instead of support an entire other operating system which probably has an entirely different executable format. Lots of things would need to be rewritten, as last time I checked .dll is only for Windows, and .so is used on Linux (Linux is a clone of Unix, Mac OS X is a Unix system afaik - so I assume .so is used on Macs). Many of the libraries needed would have to be in mac format and still, the team has modified some of these a lot and reworking it is a waste of time. MTA's core was built originally to support Vice city, III and San Andreas iirc, but soon only began to support San Andreas. Multi-os was never put into consideration from starting because afaik each only supported Windows. Much code may be rewritten in the mac release, hence incompatibility with other clients which use Windows. Also, the developers are used to be current code structure, and complications may arise when branching the windows client to the mac client. So I can give you one answer, it's probably going to be no. inb4thelock.
  16. I may be wrong, but doesn't var_dump do this?
  17. Actually, this shouldn't go at the resource section. I think the resource section is more of a showroom, to show off resources (for release or not, including WIP resources), not requesting resources.
  18. qaisjp

    Scripter

    Indeed, probably both are the owners and can do whatever they like with it (because in the end, they both benefit)
  19. I know this a far-fetched idea, but perhaps when this becomes official, it can be integrated into the MTA server and MTA installer itself (when you install MTA, there is a checkbox to install the script editor) Integration into MTA Server: Can restart the currently edited resource using a keybind (for local server) Can do the same for remote server, but ip, port and admin account details needed. Live syntax checker lol crazier idea: breakpoints (mta server code is needed to be edited for that)
  20. Get a team from around the world for 24/7 support. Make sure you know lots about Linux, servers and php. Divide the work up, one person does the site, one person does the control panel in the site, a few people do the 24/7 support, and the others moderate the files. Make it completely legal, people can sue you just for terminating the service. You get money, but you have to put a lot of money into it to begin with. Make sure the files don't have copyrighted material such as music found on most race servers. This can get you sued and probably get the service shut down, which may also result in something called the butterfly effect. (you get sued by the music people, the clients sue you for shutting down your service without notice)
  21. Modloader - Loading mods, for the greater good. viewtopic.php?f=108&t=36481&hilit=modloader
  22. local file = fileExists( filename ) and fileOpen( filename, true ) or fileCreate( filename ) I'm not sure, I'm assuming that if the file already existed, you would get a TRUE value, and not a file element. You could also fix it by using parentheses
×
×
  • Create New...