Jump to content

Callum

MTA Contributors
  • Posts

    865
  • Joined

  • Last visited

Everything posted by Callum

  1. Work on MTA 0.X (III/VC) has resumed (now led by a group called 'Project Redivivus', which is a Multi Theft Auto group) - Please report any bug reports or feature requests to the Project Redivivus tracker, and we will do our best to have it included in the planned unofficial Multi Theft Auto 0.6 release. Before working on the 0.6 features, we will be cleaning up the 0.5 source code and open sourcing it, so anybody can contribute to the project. Any feedback would be appreciated.
  2. Callum

    Disable command

    If you only want to disable some of the votemanager commands, edit the settings in the resource's meta.xml file.
  3. Callum

    i am new

    First of all, welcome to the MTA forums! And to answer your questions; Sure you can. Please read the server manual for more information on how to set up your own server.
  4. You could make it; function centerWindow(window) local resX,resY = guiGetScreenSize() local w,h = guiGetSize(window,false) guiSetPosition(window,(resX/2)-(w/2),(resY/2)-(h/2),false) end
  5. Callum

    MTA 1.1 Error

    This is a problem with your machine, not MTA.
  6. Callum

    1.0.4 to 1.0.5

    Could also look at http://linux.multitheftauto.com/
  7. To answer question 3, getDistanceBetweenPoints2D uses triginometry to calculate the distance between 2 vectors on the map.
  8. The mtasa protocol isn't handled by IE, but by MTA itself. If it's localhost (127.0.0.1) you should still be able to connect, even if your ports aren't forwarded (since it's the host machine). Check the server console to see if the connectiion is rejected for some reason.
  9. Callum

    Update CEGUI

    The alternates look kinda ugly in my opinion.
  10. Callum

    Problems

    To make the 'background' blank (it is blank by default, however) you can use; fadeCamera(false) As for the login GUI, you can use; guiSetVisible(loginGUIWindow) -- of course, you replace loginGUIWindow with your own variable.
  11. @SolidSnake, or simply; addEventHandler("onClientPlayerRadioSwitch",getLocalPlayer(),cancelEvent)
  12. qaisjp: The first argument of 'outputChatBox' isn't a player element, but rather a string of text.
  13. marker1 = createMarker(-2319.1865234375, -1837.935546875, 499.82629394531 , "cylinder" , 1, 0, 0, 204, 200) function markers(thePlayer) if thePlayer == getLocalPlayer() then local x,y,z = getElementPosition(thePlayer) createObject(1655,x+20,y,z) outputChatBox('Object Created !',255,255,0) end end addEventHandler("onClientMarkerHit",marker1,markers)
  14. To convert absolute to relative you simply do; relativeX = absoluteX*relativePosX relativeY = absoluteY*relativePosY
  15. (From 1.1 onwards) You could use the handling functions to make the car's brakes more realistic in the slippery surface. See this link for more information on how to set the handling.
  16. As a server developer/scripter, you only need to have an understanding of the lua scripting language. However, if you are interested in committing patches to MTA itself, you have to know C++. And I believe Java is similar to C#.
  17. You could simply choose another HTTP port, since your HTTP port is only used for clients to download the resources, and not initially connect to the server itself - However, remember to make sure that the port is forwarded.
  18. Callum

    NEVER MIND!

    SARL is intensly similar to SANL, alike the domain (sarlrpg.net - sanlrpg.net). There is/was somebody in SANL called BlackS, but I don't run SANL anymore.
  19. You can set the item key as a string, and then call the string later on like 'tableName["item"]', instead of looping the whole table every time.
  20. Why not attach the event handler to the window, and check if the 'source' is a button?
  21. function tworzeniePickupa ( button, state, absoluteX, absoluteY, wx, wy, wz, clickedElement ) if state == "down" then outputChatBox(wx.." "..wy.." "..wz) end end addEventHandler ( "onClientClick", getRootElement(), tworzeniePickupa )
  22. Callum

    Need help(log in)

    Quite a few servers have a GUI panel (especially if they block chatting (T) when not logged in), if they don't, then you type '/login [username] [password]' to login. If you're referring to login to the MTA community, that doesn't work, and isn't required.
  23. server side (modified Castillo's): function mapsList() for k, v in ipairs(getResources()) do if getResourceInfo(v,"type") == "map" then triggerClientEvent("sendMaps",getRootElement(),getResourceName(v)) end end end addEvent("getMaps", true) addEventHandler("getMaps",getRootElement(),mapsList) @Castillo: I wouldn't use 'type' as a variable, since it's a built-in lua function.
×
×
  • Create New...