Jump to content

bradio10

Members
  • Posts

    118
  • Joined

  • Last visited

Everything posted by bradio10

  1. Hi, Just a few questions I would like to ask. What location is your server located in? Does your server have DDoS protection? What CPU do you use? All it says is the ghz. And finally, is the 4GB ram the amount of ram for the whole node? Because if so, I suggest getting more if you are going to be hosting many game servers on it. I wouldn't even suggest 4GB if you are starting out, you should have 8GB minimum in my opinion. Thanks.
  2. I agree. If your friend has a data center, he could sure as hell setup a bloody MTA server.
  3. Nice to hear you got it working. You add the Include thingo to the file you opened in nano. So just go to the bottom of the file and just type it in there.
  4. If it's still giving you the error after installing LAMP, then I recommend just uninstalling phpmyadmin and then re-installing it. ANd, have you installed php and everything that is in the LAMp tutorial I gave above? Because you also need all of those installed too. iptables -I INPUT -p tcp --dport 3306 --syn -j ACCEPT No, I put the port in for you which is the 3306 in the line above. This it to forward the tcp port which is 3306. You need to forward this port so you can use mysql externally. If you want to ford a udp port, use this code below and just change the 3306 to whatever port you need forwarding. iptables -I INPUT -p udp --dport 3306 -j ACCEPT If you don't know what tcp and udp are, search them on google and you will find an explanation.
  5. I am not sure about these errors. All I did was follow this tutorial: https://www.digitalocean.com/community/ ... -on-ubuntu Then once I finished that, I installed phpmyadmin with this tutorial: https://www.digitalocean.com/community/ ... untu-12-04 If you wanna know how to port forward your MySQL ports, use this command: iptables -I INPUT -p tcp --dport 3306 --syn -j ACCEPT I did all this and it worked out for me. Hope it does for you.
  6. What I did was install phpmyadmin onto my VPS so that it's much easier to add databases and tables and it's also easier to manage them. MySQL also has console commands too which you could find on the internet which include making tables, inserting data into them, etc. Also, have to forwarded the ports for MySQL?
  7. I tried this: function downgradeFuel() player = localPlayer local veh = getPedOccupiedVehicle(player) if (veh) then fuel = getElementData(veh, "fuelbalance") setElementData(veh, "fuelbalance", tonumber(getElementData(veh, "fuelbalance"))-1) outputChatBox("Fuel: "..tonumber(getElementData(veh, "fuelbalance")), root, 255, 255, 0) end end function onEnter() fueltimer = setTimer(downgradeFuel, 2000, 0) end addEventHandler("onClientVehicleEnter", root, onEnter) function onExit() if (isTimer(fueltimer)) then killTimer(fueltimer) end end addEventHandler("onClientVehicleExit", root, onExit) But it still doesn't work the way it should.
  8. Tried your way, still doesn't work. It still constantly outputs only 99, it doesn't decrease.
  9. I do have a timer, look at the bottom of my code.
  10. Hi, So I am having trouble with decreasing fuel for my fuel system I am making. function downgradeFuel() player = localPlayer local veh = getPedOccupiedVehicle(player) if (veh) then fuel = getElementData(veh, "fuelbalance") setElementData(veh, "fuelbalance", tonumber(fuel)-1) newfuel = getElementData(veh, "fuelbalance") outputChatBox("Fuel: "..newfuel, root, 255, 255, 0) end end addEventHandler("onClientVehicleEnter", root, downgradeFuel) setTimer(downgradeFuel, 2000, 0) Every 2 seconds, it outputs the fuel. But, when it does, it only takes 1 away, but doesnt keep decreasing. So, the default is 100, it then outputs 99 because it took 1 away from 100, but then it just constantly outputs 99. I want it to decrease, so 98, 97, 96 etc.. There are no errors in the debug either. Thanks.
  11. Can you provide more information either here or on your website? Information such as: Node specs DDoS protection (if it has that) etc
  12. The spec thingo you gave me makes no sense. On your website, it says that the node (the link you provided) is for your UltraVPS. According to your website, the UltraVPS is 16gb ram, 8 cores, 300gb hard drive space, etc. And the specs on the link you provided is those specs of the VPS. So, basically your saying that if I payed $25USD each year to basically get a whole node to myself, because that's all you can fit on it if the specs are correct. If that's true, then how much do you pay for that node? It couldn't be less than $25 a year. I know that it says it has 0 stock, but thats not the point. Either you oversell, or you don't make any many from the plan at all, if what I am seeing is correct.
  13. Hi, Well, I have been looking at your site ever since it started and ever since, you have had some quite unusual plans for your servers. Especially one that you offer right now. You have 2 $1 VPS's, but one has way better specs than the other. (The BestVPS is better than the StarterVPS) Some of the other plans you had offered before were insanely cheap, so cheap it made me think you over sell your servers. Especially when some plans you were offering were way better and cheaper than others. (Same with the MegaVPS and UltraVPS) So, do you oversell your products? And why are some plans either the same price or cheaper, but have better specs than the others? Thanks.
  14. Oh, I never knew that, this is pretty cool. Thanks for that.
  15. Ok, sorry, I misunderstood BPM and stuff. I thought I could get the BPM and make a visualizer with DX. If anybody has any ideas on how to do that, please comment.
  16. Like what NOki said, read the readme file and it tells you what you need to have in your server name. You have to put what it says otherwise it will continue to give the error.
  17. When drawing the circle, make sure that the width matches the radius, then it will be a complete circle filled in.
  18. bradio10

    BPM Counter

    Hi, I am wanting to make a BPM counter with DX so that it will move up and down to the beat. I'm not sure if this would be the way to do it but I have tried this way and it spams in the debug saying a userdata value function test() sound = playSound("playerpics/song.mp3") counter = setTimer(function() getSoundBPM() end, 50, 0) addEventHandler("onClientRender", root, bpmCounterDX) end addCommandHandler("testbpm", test) function bpmCounterDX() dxDrawRectangle(1062, 484, 15, 112/1000*counter, tocolor(184, 1, 5, 255), true) dxDrawRectangle(1099, 484, 15, 112/1000*counter, tocolor(156, 20, 161, 255), true) dxDrawRectangle(1135, 484, 15, 112/1000*counter, tocolor(7, 161, 175, 255), true) dxDrawRectangle(1173, 484, 15, 112/1000*counter, tocolor(172, 178, 5, 255), true) dxDrawRectangle(1209, 484, 15, 112/1000*counter, tocolor(7, 182, 2, 255), true) end ERROR: musicplayer\client.lua:49: attempt to perform arithmetic on global 'counter' (a userdata value) What is wrong and what is a userdata? Thanks.
  19. Hi, So I am wanting to make a base building system with MTA objects and I have a question. I noticed that when moving objects around, there isn't really an limits as to placing them in the world. Like, I could move the object below the map or up in the sky if I wanted to. I am wanting to know if it is possible to make it so they dont do that and they adapt to the world. So if I move an object onto a hill, it will rotate accordingly to the hill. So instead of sticking into the ground, it will rotate so it won't do that. If you don't understand what I mean and you have played a game called Rust, then what I am talking about is when you try to place objects, the object doesn't just move into the map so you can't see it, it sort of rotates and positions itself to the land. if you still don't understand what I mean, thats ok, I will explain more if you comment below, it's just kinda hard for me to explain Here is an image of what I mean: Can you see how the objects basically adapt tothe land so they tilt and fit properly without going into the ground? Thats what I am wanting to know if it's possible. thanks.
  20. Holy shit. Nice work dude! Can't wait for keyboard integration. This is the best!! Keep it up man! When I go and play a youtube video, it says I need adobe player. When I go and play Nyan Cat, I can't hear sound. Have I done something wrong?
  21. All good now, I got some help from some friends and I got it working. I feel so silly because it was so easy lol. Thanks though.
  22. Thats the thing, I made an FTP account because I don't know how to login with root. What should the login details be?
  23. Thanks for the help. I ended up getting the VPS since I am not going to have very many people using the server anyway. It will only be for developing and showing things/having fun with friends. Thanks
×
×
  • Create New...