Jump to content

illestiraqi

Members
  • Posts

    256
  • Joined

  • Last visited

Posts posted by illestiraqi

  1. On this roleplay server, OwlGaming, we got trailers to roleplay with, such as making deliveries with a truck then putting a trailer on the back, or a Utility Van with a trailer where we can put cars on it. But there is an issue from MTA, when we're driving with the trailers, not everybody sees it, or it randomly detaches and I need it fixed so we can actually carry on roleplay with these stuff, right now if I were to go from a mansion at Richman to IGS with a truck and trailer, people at IGS wont see my trailer, but I will and incoming vehicles from behind will be hitting my trailer that I'm seeing client-sided.

  2. I need help removing these bushes that are marked around the red box, please help me, I also need it in the .map wise, so for example, the tree that's within the square box, if I remove it, in the .map file, it's like

        "removeWorldObject (veg_palm04) (2)" radius="22.657042" interior="0" model="620" lodModel="0" posX="2367.6016" posY="-1706.2891" posZ="11.28906" rotX="0" rotY="0" rotZ="0">
    

    So please remove it like that, please.

    haVoviE.png

  3. okay so this vehicle library system my friend gave me, it gives me a Mysql error

    [2014-12-30 03:43:52] INFO: MYSQL ERROR 1054: Unknown column 'gtaid' in 'field list' 
    [2014-12-30 03:43:59] ERROR: vehicle-manager\vehicle-library\s_vehicle_library.lua:40: exports: Call to non-running server resource (integration) 
    [2014-12-30 03:43:59] ERROR: vehicle-manager\vehicle-library\s_vehicle_library.lua:40: exports: Call to non-running server resource (integration) 
    

    Now heres the MySQL

    CODE REMOVED

  4. I am myself an administrator using the /add admin George command and before I had no admin at all I gave myself it and now I can't give no one nor can I promote/demote anyone it just says you are not admin or somewhat but I am, why?

  5. I fixed it, I just got opened the server sided .lua file and looked underneath the addCommandHandler and looked at what group in the ACL you have to be in to open this gui and it didn't have any so I had my own ACL group of "Owner" and replaced the only line (Right underneath me) to the other line (The bottom bottom line). Can't believe I actually fixed this myself :) Thanks for helping tho.

            if not isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(pSource)), aclGetGroup(aclGroup)) then 
    

            if not isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(pSource)), aclGetGroup("Owner")) then 
    

  6. So I got the decompiled version of DayZ and I figured that anyone is allowed to make/remove anyone to/from admin/supporter and I want that changed, I want it to only allow anyone in the ACL group "Admin" to be allowed to use the command /add

    Heres what I found:

    function setGroup(playersource, command, teamName, targetString) 
      if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(playersource)), aclGetGroup("Admin")) then 
        do 
          local foundTargetPlayer = getPlayerWildcard(targetString) 
          if foundTargetPlayer then 
            if teamName ~= "admin" and teamName ~= "supporter" then 
              if teamName == "remove" then 
              else 
                outputChatBox("#FFFFFFCorrect names are admin, supporter and remove!", playersource, 27, 89, 224, true) 
                return 
              end 
            end 
            if teamName == "remove" then 
              value = false 
              account = getPlayerAccount(foundTargetPlayer) 
              setAccountData(account, "admin", value) 
              setAccountData(account, "supporter", value) 
              setElementData(foundTargetPlayer, "admin", value) 
              setElementData(foundTargetPlayer, "supporter", value) 
            else 
              value = true 
            end 
            account = getPlayerAccount(foundTargetPlayer) 
            accountname = getAccountName(account) 
            setAccountData(account, teamName, value) 
            setElementData(foundTargetPlayer, teamName, value) 
            if value == true then 
              outputChatBox("#FFFFFF" .. getPlayerName(foundTargetPlayer) .. " #FF0000 has been promoted to " .. teamName .. "!", getRootElement(), 27, 89, 224, true) 
            else 
              outputChatBox("#FFFFFF" .. getPlayerName(foundTargetPlayer) .. " #FF0000 lost his status...", getRootElement(), 27, 89, 224, true) 
            end 
          else 
            outputChatBox("#FFFFFFCan't find player! Did you input the correct name?", playersource, 27, 89, 224, true) 
          end 
        end 
      else 
        outputChatBox("#FFFFFFYou are not an admin!", playersource, 27, 89, 224, true) 
      end 
    end 
    addCommandHandler("add", setGroup) 
    function banPLayer(playersource, command, targetString, banTime, reason) 
      if getAccountData(getPlayerAccount(playersource), "admin") == true then 
        do 
          local foundTargetPlayer = getPlayerWildcard(targetString) 
          local banTime = banTime or 0 
          local reason = reason or "Unknown" 
          if foundTargetPlayer then 
            do 
              local account = getPlayerAccount() 
              local ip = getPlayerIP(foundTargetPlayer) 
              local serial = getPlayerSerial(foundTargetPlayer) 
              local name = getPlayerName(foundTargetPlayer) 
              kickPlayer(foundTargetPlayer, playersource, reason) 
              addBan(ip, name, serial, playersource, reason, banTime * 86400) 
              outputChatBox("#FFFFFF" .. name .. " #FF0000 has been banned for " .. banTime .. " Day(Z)'s.", getRootElement(), 27, 89, 224, true) 
            end 
          else 
            outputChatBox("#FFFFFFCan't find player! Did you input the correct name?", playersource, 27, 89, 224, true) 
          end 
        end 
      else 
        outputChatBox("#FFFFFFYou are not an admin! ", playersource, 27, 89, 224, true) 
      end 
    end 
    addCommandHandler("playerban", banPLayer) 
    function pmsgAdmin(playersource, command, ...) 
      local msg = table.concat({ 
        ... 
      }, " ") 
      if getAccountData(getPlayerAccount(playersource), "admin") == true then 
        outputChatBox("[GLOBAL]" .. getPlayerName(playersource) .. ": " .. msg, getRootElement(), 60, 200, 40, true) 
      else 
        outputChatBox("#FFFFFFYou are not an admin! ", playersource, 27, 89, 224, true) 
      end 
    end 
    addCommandHandler("pmsg", pmsgAdmin) 
    

    Not sure if that's the complete script of the /add script but if it isn't tell me if itis, please and thank you help me fix this to let anyone in Admin ACL group to only use /add command, thank you.

  7. This is a public script and doesn't say I require permission for editing.

    @Mr.Risk, the gui is still not opening, I was wondering if there was a problem with the addCommandHandler line or something, not sure but I've never seen a .lua code with the addCommandHandler like that but if you do know that that isn't the problem then go with what you think is just trying to help since I'm useless already atm.

    addCommandHandler("give", 
    function(pSource) 
    

  8. I got this Give Item Panel and when I do /give, it doesn't open.

    Client:

    --[[ 
    /** 
        @ name: Give-an-Item Panel (GIP) 
        @ author: Renkon 
        @ version: 1.0 
        @ type: DayZ Addon 
        @ description: Panel which lets you give items to any player connected to your server. 
    */ 
    ]] 
      
    addEvent("onGIPOpened", true) 
      
    local sW, sH = guiGetScreenSize() -- // Variables needed to know the width and height. 
    local w =  
    {    
        gridList = {}, 
        label = {}, 
        editBox = {}, 
        button = {}, 
        comboBox = {} 
    } 
         
    local items =  
    { 
        ["Weapons"] = { 
            --"TEC-9", 
            --"M136 Rocket Launcher", 
            --"Heat-Seeking RPG", 
            "M4", 
            "AK-47", 
            "Lee Enfield", 
            "CZ 550", 
            "MP5A5", 
            "PDW", 
            "SPAZ-12 Combat Shotgun", 
            "Sawn-Off Shotgun", 
            "Winchester 1866", 
            "M9 SD", 
            "M911", 
            "Desert Eagle", 
            "Binoculars", 
            "Tear Gas", 
            "Grenade", 
            "Satchel", 
            "Baseball Bat", 
            "Shovel", 
            "Golf Club", 
            "Hunting Knife", 
            "Hatchet" 
        }, 
         
        ["Ammo"] = { 
            --"M136 Rocket", 
            "M4 Mag", 
            "AK Mag", 
            "Lee Enfield Mag", 
            "CZ 550 Mag", 
            "MP5A5 Mag", 
            "PDW Mag", 
            "SPAZ-12 Pellet", 
            "2Rnd. Slug", 
            "1866 Slug", 
            "M9 SD Mag", 
            "M911 Mag", 
            "Desert Eagle Mag" 
        }, 
         
        ["Food/Drinks"] = { 
            "Water Bottle", 
            "Pasta Can", 
            "Beans Can", 
            "Burger", 
            "Pizza", 
            "Soda Bottle", 
            "Empty Water Bottle", 
            "Empty Soda Cans", 
            "Scruffy Burgers", 
            "Milk", 
            "Raw Meat", 
            "Cooked Meat" 
        }, 
         
        ["Backpacks"] = { 
            "Coyote Backpack", 
            "Czech Backpack", 
            "Assault Pack (ACU)", 
            "Alice Pack" 
        }, 
         
        ["Toolbelt"] = { 
            "Box of Matches", 
            "Infrared Goggles", 
            "Night Vision Goggles", 
            "GPS", 
            "Map", 
            "Toolbox", 
            "Watch", 
            "Radio Device" 
        }, 
         
        ["Medic stuff"] = { 
            "Bandage", 
            "Morphine", 
            "Medic Kit", 
            "Heat Pack", 
            "Blood Bag", 
            "Painkiller", 
        }, 
         
        ["Car parts"] = { 
            "Tire", 
            "Engine", 
            "Tank Parts" 
        }, 
         
        ["Clothes"] = { 
            "Camouflage Clothing", 
            "Ghillie Suit", 
            "Civilian Clothing", 
            "Survivor Clothing" 
        }, 
         
        ["Others"] = { 
            "Wood Pile", 
            "Empty Gas Canister", 
            "Full Gas Canister", 
            "Roadflare",     
            "Wire Fence", 
            "Tent" 
        } 
    } 
      
    local isItemSelected = false 
      
    -- // Window creation code -- 
    addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        w.main = guiCreateWindow(sW/2 - 179, sH/2 - 165, 358, 330, "Give-an-Item Panel (GIP)", false) 
        guiWindowSetSizable(w.main, false) 
        guiSetAlpha(w.main, 1.00) 
      
        w.gridList.main = guiCreateGridList(10, 26, 151, 291, false, w.main) 
        w.gridList.column = guiGridListAddColumn( w.gridList.main, "Player", 0.85 ) 
         
        w.label.desc = guiCreateLabel(176, 26, 178, 22, "Choose a player from the GUI", false, w.main) 
        guiSetFont(w.label.desc, "default-bold-small") 
        w.label.desc2 = guiCreateLabel(233, 210, 60, 22, "Quantity", false, w.main) 
        guiSetFont(w.label.desc2, "default-bold-small") 
      
        w.comboBox.category = guiCreateComboBox(171, 65, 266, 160, "-- Choose a category --", false, w.main) 
        w.comboBox.itemList = guiCreateComboBox(171, 145, 266, 50, "-- Choose an item --", false, w.main) 
         
        w.editBox.quantity = guiCreateEdit(231, 234, 55, 26, "", false, w.main) 
        w.button.give = guiCreateButton(176, 280, 77, 37, "Give", false, w.main) 
        w.button.close = guiCreateButton(263, 280, 77, 37, "Close", false, w.main) 
        guiSetFont(w.button.give, "default-bold-small") 
        guiSetProperty(w.button.give, "NormalTextColour", "FFAAAAAA") 
        guiSetFont(w.button.close, "default-bold-small") 
        guiSetProperty(w.button.close, "NormalTextColour", "FFAAAAAA") 
         
        guiSetVisible(w.main, false) 
        guiSetEnabled(w.button.give, false) 
         
        for key, value in pairs (items) do 
            if type(value) == "table" then 
                guiComboBoxAddItem(w.comboBox.category, key) 
            end 
        end 
         
        -- // Making quantity be only edited by numbers -- 
        addEventHandler("onClientGUIChanged", w.editBox.quantity,  
        function() 
            guiSetText(source, guiGetText(source):gsub("[^0-9]","")) -- // We remove everything which is not a number 
            check() 
        end) 
         
        -- // Changing second combobox items when first one changes -- 
        addEventHandler("onClientGUIComboBoxAccepted", w.comboBox.category, 
        function() 
            local text = guiComboBoxGetItemText(w.comboBox.category, guiComboBoxGetSelected(w.comboBox.category)) 
            guiComboBoxClear(w.comboBox.itemList) 
            for i, st in ipairs(items[text]) do 
                guiComboBoxAddItem(w.comboBox.itemList, st) 
            end 
            guiComboBoxAdjustHeight(w.comboBox.itemList, #items[text]) 
        end ) 
         
        -- // Showing item when second one was accepted. -- 
        addEventHandler("onClientGUIComboBoxAccepted", w.comboBox.itemList, 
        function() 
            isItemSelected = true 
            check() 
        end ) 
         
        -- // Handling button that closes. -- 
        addEventHandler ( "onClientGUIClick", w.button.close,  
        function() 
            guiSetVisible(w.main, false) 
            showCursor(false) 
        end, false ) 
         
        -- // Handling give button. -- 
        addEventHandler ( "onClientGUIClick", w.button.give,  
        function() 
            local playerName = guiGridListGetItemText(w.gridList.main, guiGridListGetSelectedItem(w.gridList.main), 1) 
            local item = guiComboBoxGetItemText(w.comboBox.itemList, guiComboBoxGetSelected(w.comboBox.itemList)) 
            if (getPlayerFromName(playerName)) then 
                triggerServerEvent("onGIPGive", localPlayer, playerName, item, tonumber(guiGetText(w.editBox.quantity))) 
            else 
                outputChatBox("Player disconnected or changed name", 255, 0, 0) 
                    end 
            guiSetVisible(w.main, true) 
            showCursor(true) 
        end, false ) 
      
        addEventHandler("onClientGUIClick", w.gridList.main, check) 
    end ) 
      
    -- // Remi-X function. Sets height depending on item quantity -- 
    function guiComboBoxAdjustHeight ( combobox, itemcount ) 
        local width = guiGetSize ( combobox, false ) 
        return guiSetSize ( combobox, width, ( itemcount * 20 ) + 20, false ) 
    end 
      
    -- // Handling when the administrator opens the panel -- 
    -- // Handling when the administrator opens the panel -- 
    addEventHandler("onGIPOpened", root, 
    function() 
        guiGridListClear ( w.gridList.main ) 
        guiSetEnabled(w.button.give, false)   
        isItemSelected = false 
        for id, player in ipairs(getElementsByType("player")) do 
            if player ~= localplayer then 
                local row = guiGridListAddRow ( w.gridList.main ) 
                guiGridListSetItemText ( w.gridList.main, row, w.gridList.column, getPlayerName ( player ), false, false ) 
            end 
        end 
        guiSetVisible(w.main, true) 
        showCursor(true) 
    end ) 
      
    function check() 
        if guiGetText(w.editBox.quantity) ~= "" and isItemSelected and guiGridListGetItemText(w.gridList.main, guiGridListGetSelectedItem(w.gridList.main), 1) ~= "" then -- // If there's quantity 
            guiSetEnabled(w.button.give, true) -- // We enable the button 
        end 
    end 
    

    Server:

    --[[ 
    /** 
        @ name: Give-an-Item Panel (GIP) 
        @ author: Renkon 
        @ version: 1.0 
        @ type: DayZ Addon 
        @ description: Panel which lets you give items to any player connected to your server. 
    */ 
    ]] 
      
    addEvent("onGIPGive", true) 
      
    local aclGroup -- // Minimum group in order to access give GUI. 
    local isConfigOkay = true -- // Checking if script works correctly. 
      
    -- // Adding required information in order to make the addon work correctly. -- 
    addEventHandler("onResourceStart", resourceRoot, 
    function() 
        call (getResourceFromName("DayZ"), "addAddonInfo", "GIP", "Give-an-Item Panel") 
        aclGroup = get("aclMinimumGroup") 
        if string.find(aclGroup, ",") then 
            aclGroup = split(aclGroup, ',') 
        end 
        if type(aclGroup) == "string" then 
            if not aclGetGroup(aclGroup) then  
                outputError("Error config meta.xml. Bad ACL Group. Resource will not work")  
                isConfigOkay = false 
                return  
            end 
        else 
            for i, val in ipairs(aclGroup) do 
                if not aclGetGroup(aclGroup[i]) then 
                    outputError("Error config meta.xml. Bad ACL Group. Resource will not work")  
                    isConfigOkay = false 
                    return 
                end 
            end 
        end 
    end ) 
      
    -- // Handling /give command. -- 
    addCommandHandler("give", 
    function(pSource) 
         
        if not isConfigOkay then return end 
        if type(aclGroup) == "string" then 
            if not isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(pSource)), aclGetGroup(aclGroup)) then return end 
            triggerClientEvent(pSource, "onGIPOpened", pSource) 
        else 
            for i, _ in ipairs(aclGroup) do 
                if isObjectInACLGroup ("user."..getAccountName(getPlayerAccount(pSource)), aclGetGroup(aclGroup[i])) then 
                    triggerClientEvent(pSource, "onGIPOpened", pSource) 
                    break 
                end 
            end 
        end 
    end ) 
      
    -- // Function to inform. -- 
    function outputError(msg) 
        outputDebugString(msg, 1) 
        outputChatBox(msg, root, 255, 0, 0, true) 
    end 
      
    -- // Give handler. -- 
    addEventHandler("onGIPGive", root, 
    function(pName, item, quantity) 
        setElementData(getPlayerFromName(pName), item, quantity) 
        outputChatBox("Given "..quantity.." "..item.." to "..pName, source, 255, 255, 0) 
        outputChatBox("An admin gave you "..quantity.." "..item, getPlayerFromName(pName), 255, 255, 0) 
    end ) 
    

    NOTE: I'm not really much of a scripter but any support will be thanked for and also I want the gui to open to anyone in the ACL Group of "Admin".

  9. Sorry for double post but right after I posted the other post, I searched for the DayZ legit scripts from ffs-Sniper and got the files, thanks for the help but it finally worked, just trying to figure out how do I kill myself if anyone knows the command?

  10. I got the original DayZ Files but it only works on 1.3 and my friends and I want to run a 1.4 DayZ server and try to make it big but before we can do that I need support in making it 1.4, anyone help please?

  11. For my login system, I put the camera into the Ten Green Bottles interior, perfect, then I tried adding these...

    BarT1Ped = createPed(11, 493.60000610352, -78.199996948242, 998.79998779297) 
    setElementFrozen(BarT1Ped, true) 
    setElementDimension(BarT1Ped, 5223) 
    setElementInterior(BarT1Ped, 11) 
    setElementCollisionsEnabled(BarT1Ped, true) 
    setElementRotation(BarT1Ped, 0, 0, 90) 
      
    BarT2Ped = createPed(171, 498.89999389648, -77.599998474121, 998.79998779297) 
    setElementFrozen(BarT2Ped, true) 
    setElementDimension(BarT2Ped, 5223) 
    setElementInterior(BarT2Ped, 11) 
    setElementCollisionsEnabled(BarT2Ped, true) 
    setElementRotation(BarT1Ped, 0, 0, 90) 
    

    ... Just two bar tenders and they don't show while @ the login screen, please help.

  12. I kept trying to change this around and still wont work, don't know why honestly. Assistance would be nice please

            local isAdmin = exports.integration:isPlayerAdmin(localPlayer) 
            if isAdmin then 
                if getElementData(thePlayer,"adminduty" )  == 1  then 
                    dxDrawImage(ax,ay,iconH,iconH,"images/hud/adm_on.png") 
                    table.insert(tooltips, "adminonduty") 
                else 
                    dxDrawImage(ax,ay,iconH,iconH,"images/hud/adm_on.png", 0, 0, 0, disabled_item(100)) 
                    table.insert(tooltips, "adminoffduty") 
                end 
                ax = ax - iconW 
            end 
    

  13. I was hoping if anyone could of made this for free because I was offering 1$ but now we are saving up for GTA 5 were loosing allot of money so I cant pay, please.

    how is that? for free because you were offering 1$?

    No, if you'd understand english properly, you'd know what I mean, Me and my bro are saving up for GTA 5, so were loosing allot of money paying for these stuff so he wont allow it, any way anyone can make it for free?

  14. It's quite clear what he wants.

    @illestiraqi: You must use the following functions/event:

    createMarker 
    addCommandHandler 
    getElementData 
    setElementModel 
    

    onMarkerHit

    Look Castillo as far as we both know I cant script and am willing to pay 1$ to have this made for me please?

×
×
  • Create New...