Jump to content

Spliff

Members
  • Posts

    36
  • Joined

  • Last visited

Posts posted by Spliff

  1. Okay so, we've currently been mapping alot of stuff, yet we're kind of stuck when it comes to our melee damage;

    When you're on our custom islands, you cannot do any damage to eachother (melee, shooting works), and since our server is 100% based over melee fights, that gives us quite a problem

    I'd just like to point out that you can damage eachother when in LS (when inside the F11 map)

    Whenever you hit someone, the other player doesn't even react to the hit (he doesn't fall back or anything)

    Any idea on what's causing this? And a possible fix?

  2. As the title says, are there any way of adding an interior to all dimensions;

    We've mapped a custom interior, and are gonna make it like a "standard" interior, for all boats to use (you can enter the boat)

    Yet, each boat got it's own dimension for the interior, so players won't run into eachother when entering their boat.

    So, is there any way I could make a .map file, be in all dimensions?

  3. Changed the first code to this;

    function spawnFirst () 
        setPlayerTeam (source, Civil) 
          end 
    addEventHandler("onPlayerSpawn", getRootElement(), spawnFirst ) 
      
    

    He never called his function, and when he afterwards did, it interfeered with his spawn system, works now.

  4. Add the "Offduty" team above the spawn, is the two codes in the same script? Perhaps try something like this;

    function spawnFirst () 
    local mySkins = { 7, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 30, 35, 33, 34, 37, 40, 41, 43, 45, 41, 46, 47, 48, 51, 52, 59, 60, 66, 67, 78, 98, 101, 123, 124, 125, 128,138, 143, 144 } 
    local OffDuty = setPlayerTeam ( "OffDuty", 0, 0, 0 ) 
        spawnPlayer (source, 1684.73242, -2330.71021, 13.54688, 360, mySkins[math.random(1, #mySkins)], 0, 0, OffDuty) 
          setCameraTarget (source, source) 
          fadeCamera(source, true, 2.0) 
          end 
    

    If not, try this;

    function spawnFirst () 
    local mySkins = { 7, 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 30, 35, 33, 34, 37, 40, 41, 43, 45, 41, 46, 47, 48, 51, 52, 59, 60, 66, 67, 78, 98, 101, 123, 124, 125, 128,138, 143, 144 } 
        spawnPlayer (source, 1684.73242, -2330.71021, 13.54688, 360, mySkins[math.random(1, #mySkins)], 0, 0, "OffDuty") 
          setCameraTarget (source, source) 
          fadeCamera(source, true, 2.0) 
          end 
    

    (Adding "" around OffDuty, as the team is a name)

    EDIT3: I think the last code should do the job, but I'll leave both here for now

  5. As the title says, the zombies from Slothman's Zday infestation script simply won't spawn.

    I'm trying to get them spawning through the constant streaming function, and the skins get's added, alongside with the small counter in the right corner, but no zombies spawn!

    I've tried upgrading the resource, and I've tried running in debug mode.

    I've tried to "info zombie-system" yet it appears to be running all fine, according to console that is.

    5xmfz.png

    It does not give any error/warnings when loading, reloading or stopping the resource.

  6. Hey guys, so, I am working on a RP gamemode atm, which uses very few parts of the Valhalla script.

    (Elevator system and half of the item system)

    Anyways, I've been trying to get the elevator system to work, yet whenever I try it out ingame, it simply gives me the error: "There was an error while creating an elevator. Try again."

    I've posted the code giving trouble below, any suggestions?

    Note: The mysql db seems to be fine, yet the query does not get added.

    function createElevator(thePlayer, commandName, interior, dimension, ix, iy, iz) 
        if (exports.global:isPlayerSuperAdmin(thePlayer)) or (exports.donators:hasPlayerPerk(thePlayer,14) and exports.global:isPlayerFullAdmin(thePlayer)) then 
            if not (interior) or not (dimension) or not (ix) or not (iy) or not (iz) then 
                outputChatBox("SYNTAX: /" .. commandName .. " [interior ID] [Dimension ID] [X] [Y] [Z]", thePlayer, 255, 194, 14) 
            else 
                local x, y, z = getElementPosition(thePlayer) 
                 
                interior = tonumber(interior) 
                dimension = tonumber(dimension) 
                local interiorwithin = getElementInterior(thePlayer) 
                local dimensionwithin = getElementDimension(thePlayer) 
                ix = tonumber(ix) 
                iy = tonumber(iy) 
                iz = tonumber(iz) 
                id = SmallestElevatorID() 
                if id then 
                    local query = mysql:query_free("INSERT INTO elevators SET id='" .. mysql:escape_string(id) .. "', x='" .. mysql:escape_string(x) .. "', y='" .. mysql:escape_string(y) .. "', z='" .. mysql:escape_string(z) .. "', tpx='" .. mysql:escape_string(ix) .. "', tpy='" .. mysql:escape_string(iy) .. "', tpz='" .. mysql:escape_string(iz) .. "', dimensionwithin='" .. mysql:escape_string(dimensionwithin) .. "', interiorwithin='" .. mysql:escape_string(interiorwithin) .. "', dimension='" .. mysql:escape_string(dimension) .. "', interior='" .. mysql:escape_string(interior) .. "'") 
                    if (query) then 
                        --reloadOneElevator(id, true) 
                        loadOneElevator(id) 
                        outputChatBox("Elevator created with ID #" .. id .. "!", thePlayer, 0, 255, 0) 
                    end 
                else 
                    outputChatBox("There was an error while creating an elevator. Try again.", thePlayer, 255, 0, 0) 
                end 
            end 
        end 
    end 
    addCommandHandler("addelevator", createElevator, false, false) 
    

  7. Hello.

    -You could check the MTA Resource center, or you could simply google it (Or search the forums)

    -I do not know what this resource is about, yet, I could imagine that you simply put the resource files into the resource folder, and add the resources to your mtaserver.cfg.

    -Cheers.

×
×
  • Create New...