Jump to content

1B0Y

Members
  • Posts

    130
  • Joined

  • Last visited

Everything posted by 1B0Y

  1. Personally I'm not a big fan of the typical simplistic design, but looks good enough - at least you seem to have paid attention to spacing and all that - which is a very rare sight around here My OCD makes sure the spacing is spot on. Haha
  2. You should work a little more aesthetic server because it is something that always attracts attention. Sorry for my english I speak spanish Will do. I worked with a few members in MTA's IRC channel the other night to finish off the login page's design. I've uploaded it to the SS box. How does it look?
  3. 1B0Y

    need help :)

    Isn't this suppose to be in the Scripting category?
  4. I've added a screenshot of the login UI. Let me know how it looks and suggest anything that could be added.
  5. = { { { { "nothing to see here" } } } } function () return "nope" end () --Server start requirements --serverslots --gamemodename -- getResourceRootElement(getThisResource()) function checkResourceRequirements ( res ) = { { { { "nothing to see here" } } } } function () return "nope" end () if getResourceName(getThisResource()) ~= "DayZ" then reason = "Name of resource does not match (DayZ)!" end if reason ~= false then outputServerLog ( "Resource " .. getResourceName(res) .. " wasn't started: ("..tostring(reason)..")." ) outputChatBox ( "Resource " .. getResourceName(res) .. " wasn't started: ("..tostring(reason)..").", getRootElement(), 255, 255, 255 ) outputConsole ( "Resource " .. getResourceName(res) .. " wasn't started: ("..tostring(reason)..")." ) outputDebugString ( "Resource " .. getResourceName(res) .. " wasn't started: ("..tostring(reason)..")." ) cancelEvent() end end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), checkResourceRequirements ) local itemTable = { ---------------------- ["farm"] = { {"Wood Pile",1463,0.4,0,13}, {"Bandage",1578,0.5,0,4}, {"Water Bottle",2683,1,0,6}, {"Pasta Can",2770,1,0,6}, {"Beans Can",2601,1,0,6}, {"Burger",2768,1,0,6}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"Soda Bottle",2647,1,0,9}, {"Empty Gas Canister",1650,1,0,10}, {"Hunting Knife",335,1,90,4}, {"Box of Matches",328,0.4,90,8}, {"Desert Eagle",348,1,90,0.2}, {"Morphine",1579,1,0,4}, {"Tent",1279,1,0,0.5}, {"M1911",346,1,90,4}, {"Painkiller",2709,3,0,3.5}, {"Lee Enfield",357,1,90,0.3}, {"Winchester 1866",349,1,90,0.3}, {"Tire",1073,1,0,2}, {"Tank Parts",1008,1,0.8,2}, {"Civilian Clothing",1241,2,0,2.5}, {"Map",1277,0.8,90,6}, {"GPS",2976,0.15,0,2}, }, ---------------------- ["residential"] = { {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,5}, {"M1911",346,1,90,1.5}, {"M9 SD",347,1,90,1.9}, {"Winchester 1866",349,1,90,0.1}, {"PDW",352,1,90,1}, {"Hunting Knife",335,1,90,3}, {"Hatchet",339,1,90,1}, {"Pizza",1582,1,0,7}, {"Soda Bottle",2647,1,0,7}, {"Empty Gas Canister",1650,1,0,9}, {"Roadflare",324,1,90,9}, {"Milk",2856,1,0,7}, {"Assault Pack (ACU)",3026,1,0,6}, {"Painkiller",2709,3,0,7}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"Grenade",342,1,0,0.01}, {"Desert Eagle",348,1,90,0.4}, {"Sawn-Off Shotgun",350,1,90,0.3}, {"SPAZ-12 Combat Shotgun",351,1,90,0.4}, {"MP5A5",353,1,90,0.4}, {"Watch",2710,1,0,3}, {"Heat Pack",1576,5,0,6}, {"Wire Fence",933,0.25,0,1}, {"Lee Enfield",357,1,90,0.3}, {"Alice Pack",1248,1,0,1.5}, {"Tire",1073,1,0,1}, {"Tank Parts",1008,0.8,0,1}, {"Morphine",1579,1,0,2}, {"Civilian Clothing",1241,2,0,9}, {"Map",1277,0.8,90,10}, {"GPS",2976,0.15,0,3}, {"Pasta Can",2770,1,0,7}, {"Beans Can",2601,1,0,7}, --{"TEC-9",372,1,90,0}, {"Burger",2768,1,0,7}, {"Golf Club",333,1,90,3}, {"Baseball Bat",336,1,90,3}, {"Shovel",337,1,90,3}, }, ---------------------- ["military"] = { {"Box of Matches",328,0.4,90,2}, {"M1911",346,1,90,5}, {"M9 SD",347,1,90,4}, {"Winchester 1866",349,1,90,3}, {"PDW",352,1,90,4}, {"Hunting Knife",335,1,90,2.4}, {"Hatchet",339,1,90,2.1}, {"Pizza",1582,1,0,2}, {"Soda Bottle",2647,1,0,2}, {"Empty Gas Canister",1650,1,0,4}, {"Roadflare",324,1,90,4}, {"Milk",2856,1,0,1}, {"Painkiller",2709,3,0,4}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"Grenade",342,1,0,0.5}, {"Sawn-Off Shotgun",350,1,90,2.3}, {"SPAZ-12 Combat Shotgun",351,1,90,2.3}, {"MP5A5",353,1,90,2.8}, {"Watch",2710,1,0,4}, {"Heat Pack",1576,5,0,3}, {"Wire Fence",933,0.25,0,1}, {"Lee Enfield",357,1,90,3.5}, {"Alice Pack",1248,1,0,4}, {"Night Vision Goggles",368,1,90,4}, {"Binoculars",369,1,0,4}, {"Tire",1073,1,0,2}, {"Tank Parts",1008,0.8,0,2}, {"Morphine",1579,1,0,4}, {"Camouflage Clothing",1247,2,0,4.5}, {"Civilian Clothing",1241,2,0,3}, --{"TEC-9",372,1,90,3}, {"AK-47",355,1,90,3.8}, {"GPS",2976,0.15,0,3}, {"Map",1277,0.8,90,7}, {"Toolbox",2969,0.5,0,1}, {"Engine",929,0.3,0,2}, {"Tent",1279,1,0,4.5}, {"Ghillie Suit",1213,2,0,0.3}, {"M4",356,1,90,2.4}, {"CZ 550",358,1,90,0.4}, {"Infrared Goggles",369,1,90,3}, {"Assault Pack (ACU)",3026,1,0,5}, {"Czech Backpack",1239,1,0,2}, {"Radio Device",330,1,0,6}, {"Coyote Backpack",1252,1,0,0.9}, {"Shovel",337,1,90,1}, }, ---------------------- ["industrial"] = { {"Wire Fence",933,0.25,0,7}, {"Toolbox",2969,0.5,0,3}, {"Tire",1073,1,0,4}, {"Engine",929,0.3,0,3.5}, {"Tank Parts",1008,1,0.8,4}, {"Winchester 1866",349,1,90,3}, {"Water Bottle",2683,1,0,4}, {"Pasta Can",2770,1,0,4}, {"Beans Can",2601,1,0,4}, {"Burger",2768,1,0,4}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,10}, {"Soda Bottle",2647,1,0,4}, {"Empty Gas Canister",1650,1,0,6}, {"Full Gas Canister",1650,1,0,1.5}, {"Map",1277,0.8,90,3}, {"Watch",2710,1,0,2}, {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,2}, {"M1911",346,1,90,1.5}, {"PDW",352,1,90,2}, {"Hunting Knife",335,1,90,2}, {"Hatchet",339,1,90,1.5}, {"Pizza",1582,1,0,4}, {"Roadflare",324,1,90,5}, {"Milk",2856,1,0,4}, {"Assault Pack (ACU)",3026,1,0,6}, {"Coyote Backpack",1252,1,0,0.5}, {"Radio Device",330,1,0,6}, {"Golf Club",333,1,90,1.5}, {"Baseball Bat",336,1,90,1.5}, {"Shovel",337,1,90,1.5}, {"Night Vision Goggles",368,1,90,1.5}, }, ---------------------- ["supermarket"] = { {"Raw Meat",2804,0.5,90,8}, {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,5}, {"M1911",346,1,90,3.5}, {"PDW",352,1,90,2}, {"Hunting Knife",335,1,90,3}, {"Hatchet",339,1,90,2.1}, {"Pizza",1582,1,0,7}, {"Soda Bottle",2647,1,0,7}, {"Empty Gas Canister",1650,1,0,5}, {"Roadflare",324,1,90,6}, {"Milk",2856,1,0,7}, {"Assault Pack (ACU)",3026,1,0,6}, {"Pasta Can",2770,1,0,7}, {"Beans Can",2601,1,0,7}, {"Burger",2768,1,0,7}, {"Painkiller",2709,3,0,7}, {"Empty Soda Cans",2673,0.5,0,12}, {"Scruffy Burgers",2675,0.5,0,12}, {"MP5A5",353,1,90,0.5}, {"Watch",2710,1,0,3}, {"Heat Pack",1576,5,0,6}, {"Wire Fence",933,0.25,0,1}, {"Lee Enfield",357,1,90,0.2}, {"Alice Pack",1248,1,0,0.5}, {"Tire",1073,1,0,1}, {"Tank Parts",1008,1,0.8,2}, {"Morphine",1579,1,0,2}, {"Civilian Clothing",1241,2,0,3.5}, {"Map",1277,0.8,90,4}, {"GPS",2976,0.15,0,1}, {"Radio Device",330,1,0,6}, {"Golf Club",333,1,90,1.9}, {"Baseball Bat",336,1,90,1.4}, {"Shovel",337,1,90,0.3}, }, ["other"] = { {"Raw Meat",2804,0.5,90}, {"Cooked Meat",2806,0.5,90}, {"Full Gas Canister",1650,1,0}, {"Empty Water Bottle",2683,1,0}, {"Survivor Clothing",1577,2,0}, {"Night Vision Goggles",368,1,90}, {"Infrared Goggles",369,1,90}, {"1866 Slug",2358,2,0}, {"2Rnd. Slug",2358,2,0}, {"SPAZ-12 Pellet",2358,2,0}, {"MP5A5 Mag",2358,2,0}, {"AK Mag",1271,2,0}, {"M4 Mag",1271,2,0}, {"M1911 Mag",3013,2,0}, {"M9 SD Mag",3013,2,0}, {"Desert Eagle Mag",3013,2,0}, --{"M136 Rocket",3082,0.7,90}, {"CZ 550 Mag",2358,2,0}, {"Lee Enfield Mag",2358,2,0}, {"PDW Mag",2041,2,0}, {"MP5A5 Mag",2041,2,0}, {"Box of Matches",328,0.4,90,5}, {"Wood Pile",1463,0.4,0,5}, {"M1911",346,1,90,3.5}, {"PDW",352,1,90,2}, {"Hunting Knife",335,1,90,2.5}, {"Hatchet",339,1,90,1.8}, {"Pizza",1582,1,0,7}, {"Soda Bottle",2647,1,0,7}, {"Empty Gas Canister",1650,1,0,5}, {"Roadflare",324,1,90,6}, {"Milk",2856,1,0,5},
  6. Suggest it on the bug tracker: https://bugs.mtasa.com/
  7. 1B0Y

    HELP :(

    local realTime = getRealTime() local day, month, year = realTime.monthday, realTime.month+1, realTime.year+1900 dxDrawText(day.."/"..month.."/"..year, screenWidth*0.750, screenHeight*0.100, screenWidth*0.988, screenHeight*0.089, tocolor(50, 206, 50, 255), 1.70, "sans", "left", "top", false, false, false, false, false)
  8. 1B0Y

    I need help

    Try this: function onStart() window = guiCreateWindow(519,214,347,282,"24/7 Shop",false) sevenShopList = guiCreateGridList(11,25,326,218,false,window) guiGridListSetSelectionMode(sevenShopList,0) local id = guiGridListAddColumn(sevenShopList,"ID:",0.19,window) local wepname = guiGridListAddColumn(sevenShopList,"Name:",0.38,window) local wepprice = guiGridListAddColumn(sevenShopList,"Price",0.38,window) buy = guiCreateButton(13,249,134,23,"Buy",false,window) reject = guiCreateButton(199,249,134,23,"Close ",false,window) guiWindowSetSizable(window,false) guiSetVisible (window,false) end addEventHandler("onClientResourceStart",resourceRoot,onStart) addEvent("sevenShop:showGUI",true) addEventHandler("sevenShop:showGUI",root, function (sevenShop) guiGridListClear(sevenShop) for i,v in ipairs(sevenShop) do local row = guiGridListAddRow(sevenShop) guiGridListSetItemText(sevenShopList, row, wepname, getWeaponNameFromID(v[2]), false, false) guiGridListSetItemText(sevenShopList, row, id, v[1], false, false) guiGridListSetItemText(sevenShopList, row, wepprice, v[3], false, false) end guiSetVisible (window,true) showCursor(true) end) addEventHandler("onClientGUIClick",root, function () if (source == reject) then guiSetVisible(window, false) showCursor(false) elseif (source == accept) then local weaponName = guiGridListGetItemText(sevenShopList,guiGridListGetSelectedItem(sevenShopList),2) if row and col and row ~= -1 and col ~= -1 then local weaponName = guiGridListGetItemText(sevenShopList, row, col) triggerServerEvent("weapon_Name",client,client,getWeaponNameFromID(weaponName)) guiSetVisible(window,false) showCursor(false) end end end)
  9. Edit your mtaserver.conf so that your zombie script will start when the server starts. Place a shortcut to your mtaserver exe file into a folder called "Startup". The server will start whenever you log into your account. Edit: Might be a good idea to use the DayZ MTA gamemode if you're new to scripting. Making a zed gamemode from scratch is a big task for lua beginners.
  10. Interested in putting this in the DayZ MTA gamemode? because this'd be awesome to put in and would save us time looking through the PBOs ourselfs
  11. Nice to hear that MTA and GTASA works fine with Win10. That's my worries dealt with.
  12. I'm currently working on a quick script which will remove the old vehicles from your server (due to the new saving system). You will be able to find this quick-fix on the forum: http://mtadayz.heliohost.org/
  13. An idea I was planning on doing but never knew what it could look like until I saw this. Looks great, dude
  14. Don't mind if I do: These have always existed in the gamemode and have recently been updated to use SQLite (and soon, MySQL) functionality. Why would someone buy two features that are already in the gamemode? [Proof directly from the changelog in bitbucket in Ver 0.9.0] ### ADDED: Vehicles are now stored in a custom database (database/vehicles.db) ### ADDED: Tents are now stored in a custom database (database/tents.db) Vehicles randomly respawn at their desired spawn points over a period of time under certain conditions. Again, already in the gamemode. Aaaand the rest aren't in the gamemode. Edit: i've updated my previous post.
  15. Last edited: 06/09/2015 - Website added. WEBSITE: http://sanandreaslife.com/ NEWS
  16. Some of these have already been implemented into the gamemode and/or in the addons folder.
  17. By the default scoreboard, do you mean the one on the community website or the one that you can find on Arma 2?
  18. I really should try and fix that prone feature... hmmmm
  19. Please note that the 0.8.0 version has a few bugs due to the new inventory system and some other features we've just released. If you find bugs, please report them to our forum.
  20. 1B0Y

    Any Scripter

    https://github.com/1B0Y/project-roleplay There you go, have fun with it.
  21. A few months ago, I decided to recreate an old gamemode that I used to play on back in the DP2 days called "Kutmode", which was hosted by a member called "Simbad". The main core features are pretty much completed (if not, near completion and any developer can easily finish it off) and can be used however you want to. I'm releasing these scripts because i'm working on a newer version of SourceMode and I decided to throw out the old design and start from scratch again. Bugs might be fixed depending on how much free time I have or you can submit your own on Github and i'll merge it to the master repo. Enjoy! Files: https://github.com/1B0Y/project-roleplay
  22. 1B0Y

    Selling scripts

    Yep, because it's very hard to script the subjected resources above. Please, take my money! *insert sarcasm feeling here*
  23. createPickup() setPlayerWantedLevel() getPlayerWantedLevel()
  24. 1B0Y

    Teleport window

    change line 14: addTeleports() change line 22: local file = xmlLoadFile("Teleports.xml") change line 37: local file = xmlLoadFile("Teleports.xml")
×
×
  • Create New...