Jump to content

mjau

Members
  • Posts

    589
  • Joined

  • Last visited

Posts posted by mjau

  1. Ubuntu, simply because its the only one i have been using. And i know alot of other people using it too. However if you dont have any experience running linux at all i suggest you read a bit about it. Can be a bit complicated at first.

  2. He said replace setVehicleHandling with setModelHandling.

    I know, You can see i quote that, I was just explaining ..

    Exactly what were you explaining, i use this in my server and it works perfectly fine.

    This makes every car of the model 411 get the handling

    function infernus() 
    local veh = 411 
    setModelHandling(veh, "mass", 1500) 
    setModelHandling(veh, "turnMass", 4000) 
    setModelHandling(veh, "dragCoeff", 2.2) 
    setModelHandling(veh, "centerOfMass", { 0, 0.3, -0.15 } ) 
    setModelHandling(veh, "percentSubmerged", 85) 
    setModelHandling(veh, "tractionMultiplier", 0.7) 
    setModelHandling(veh, "tractionLoss", 0.9) 
    setModelHandling(veh, "tractionBias", 0.52) 
    setModelHandling(veh, "numberOfGears", 5) 
    setModelHandling(veh, "maxVelocity", 200) 
    setModelHandling(veh, "engineAcceleration", 22) 
    setModelHandling(veh, "engineInertia", 5) 
    setModelHandling(veh, "driveType", "awd") 
    setModelHandling(veh, "engineType", "petrol") 
    setModelHandling(veh, "brakeDeceleration", 6) 
    setModelHandling(veh, "brakeBias", 0.55) 
    end 
    addEventHandler ("onResourceStart", getResourceRootElement(getThisResource()), infernus) 
    

    If you want it to only change for a few cars u use setVehicleHandling and the first argument is the vehicle element, you can create the vehicle in the script like veh = createVehicle(...)

  3. Hallo

    Du må opprette en fil, for eksempel "server.lua" hot. I denne filen sette LUA-koden. I meta.xml din kan du sette den som "src" er navnet på den filen.

    så:

    script.lua inkluderer:

    local spawnX, spawnY, spawnZ = 1959.55, -1714.46, 10 
    function joinHandler() 
    spawnPlayer(source, spawnX, spawnY, spawnZ) 
    fadeCamera(source, true) 
    setCameraTarget(source, source) 
    outputChatBox(" Welcome to My Server ", source) 
    end 
    addEventHandler("onPlayerJoin", getRootElement(), joinHandler) 
    

    Og meta.xml inkluderer:

      
    <meta> 
    <info author="YourName" type="gamemode" name="My Server" description="My first MTA server" /> 
    <script src="server.lua" /> 
    </meta> 
      
    

    Beklager for min norsk er dette oversatt fra nederlandsk til norsk.

    Hvorfor er du her da. oversettere gjør mange feil og noe du skriver kan forvirre. hold deg til den nederlandske tråden og la de norske få ha sin her.

    English: Why are you even here then ?, translators make many mistakes and something you write might confuse the person that needs help. stay at your native language forum and let the norwegians/swedish and danish people have their.

  4. Well then ofc i belive you could use timers, so the first timer trigger when the player presses W and after he have held it for lets say 3 sec it changes to higher rpm sound and so it goes.

    And just to tell you, everything on youtube isnt real, editing a video to change the vehicle sound isnt hard.

  5. function Changemap (thePlayer, cmd, goTo) 
        exports.mapmanager:changeGamemodeMap (goTo) 
        outputChatBox(getPlayerName(thePlayer).." changed the map!") 
    end     
    addCommandHandler("goto", Changemap) 
    

    Im not sure myself as i never worked with the mapmanager, but i belive this is right.

    Ingame do /goto mapname

  6. Uhm, i think you are asking too much from a scripter, most people here use paypal, and at the same time u want the scripter to be german or french. i actually dont think anyone here fits those requirements.

  7. Wiki says Returns an integer of the unbanning time in the format of seconds from the year 1970. Use in conjunction with getRealTime in order to retrieve detailed information.

    And i tried without all that stuff, and it shows me a hell lot of numbers

  8. Lo, im trying to show the time left of an ban in seconds, but whenever i run the code it displays 0, even tho it is 60 secs left

    function test() 
    local ban = addBan("123.123.123.123", nil, nil, rootElement, "nab", 60) 
    local timeLeft = getUnbanTime(ban) - getRealTime().timestamp 
    local dateLeft = getRealTime(timeLeft) 
    outputChatBox(tostring(dateLeft.second)) 
    end 
    addCommandHandler("testja", test) 
    

    Any help ?, btw no hard math expresions or anything, i suck at math :/

  9. I can maybe help you with some things if you want :P

    Like car races ? ( just racing agaibst other people)

    Or other things ;-p

    For free ofc :-)

    Im sorry but i can handle everything else myself, ofcourse you are allowed to contribute with something but the script i really need i told about in the main post :)

×
×
  • Create New...