GerardWay

Members
  • Content Count

    304
  • Joined

  • Last visited

Everything posted by GerardWay

  1. Hey guys, so I just wanted to warn you about some problems with VortexServers. I've been using them on and off to host my Servers for about a year now, and it's been nothing but grief unfortunately. No disrespect to the actual leaders of the company - but the servers are constantly laggy, sometimes I can't connect to my Server at all, when people can connect to the Server they just get absolutely lagged out or end up with terrible pings. And one time, when asking about these problems, I was called a 'liar' and told that there were no problems with the Service. In fact, after buying another Server a few days ago, it came with destroyed files. MTAServer.conf was absolutely screwed up, had the wrong IP and Port in, and therefore prevented my Server from running before I figured out what was causing the Server to screw up. I tried reinstalling multiple times before I figured out that MTAServer.conf was screwed up and nothing worked from that either. If it had been a newbie trying to use a Server they'd bought, they'd have no clue on how to fix this. That's not entirely good at all. My Servers have crashed so many times it's unbelievable. And the only reason I keep buying from Vortex is because I keep hoping that things have improved&because the prices aren't too bad. So basically, VortexServers have cost me a lot of money for a fairly unreliable service, and they're going to lose a customer completely soon if something isn't done to make up for the amount of money I've put into Servers from them only to have it completely screw up and lag everyone out constantly. Once again, no hate to the Company owners or anything. I'm just pointing out something I've been wanting to say for a while, but wanted to avoid being called a 'liar' of some sort. (I'm not an enemy or a rival serverhost either. Literally just a normal guy trying to get a decent Server.)
  2. Thank you! [ADMIN PLEASE DELETE TOPIC]
  3. Could you possibly help me out with the bar visible distance please? I managed to make him spawn at different locations, so now it's just the bar left:3
  4. Hey guys! I was wondering if anyone could help me out here. I have a bot that spawns and attacks players, but I'd like to have 2 things changed about it: - The ProgressBar needs to only appear on a Players screen when he is near the bot - More spawnpoints for this bot need to be added I'd be grateful if anyone could help:) client local screenX, screenY = guiGetScreenSize() -- Settings local nemesisMaxHP = 2500 local progressWidth, progressHeight = 400, 20 local progressX, progressY = (screenX - progressWidth) / 2, 100 local dxTextTitle = "Nemesis HP:" local dxTextScale = 1.5 local dxTextFont = "Bluenote" local dxTextColor = tocolor(255, 255, 255, 255) -- Initiate Skins addEventHandler("onClientResourceStart", resourceRoot, function() local txd = engineLoadTXD("nemesis.txd", 312 ) local dff = engineLoadDFF("nemesis.dff", 312 ) engineImportTXD(txd, 312) engineReplaceModel(dff, 312) end ) -- Calculated variables ( no need to touch ) local dxTextWidth = dxGetTextWidth(dxTextTitle, dxTextScale, dxTextFont) local dxTextHeight = dxGetFontHeight(dxTextScale, dxTextFont) local dxPosX, dxPosY = (screenX - dxTextWidth) / 2, progressY - 7 - dxTextHeight -- Don't touch these local cProgress, theNemesis, nemesisMaxHP addEvent("onReceiveNemesis", true) addEventHandler("onReceiveNemesis", resourceRoot, function (nemesis, maxHealth) if ( nemesis ) then cProgress = 100 theNemesis = nemesis nemesisMaxHP = maxHealth + 100 addEventHandler("onClientRender", getRootElement(), renderDX) end end ) function renderDX() if ( theNemesis and isElement(theNemesis) and cProgress ) then local nemesisCurrentHP = exports.extra_health:getElementExtraHealth(theNemesis) + getElementHealth(theNemesis) cProgress = nemesisCurrentHP < 0 and 0 or (nemesisCurrentHP / nemesisMaxHP) -- Draw the Title Text dxDrawText(dxTextTitle, dxPosX - 2, dxPosY - 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX - 2, dxPosY, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX + 2, dxPosY - 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX, dxPosY - 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX, dxPosY + 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX + 2, dxPosY + 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX + 2, dxPosY, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX - 2, dxPosY + 2, dxTextWidth, dxTextHeight, tocolor(0, 0, 0, 255), dxTextScale, dxTextFont) dxDrawText(dxTextTitle, dxPosX, dxPosY, dxTextWidth, dxTextHeight, dxTextColor, dxTextScale, dxTextFont) -- Draw the BG DX Rectangle dxDrawImage(progressX-5, progressY-5, progressWidth+10, progressHeight+10, "files/bar_bg.png") -- Draw the progress dxDrawImageSection(progressX, progressY, progressWidth * cProgress, progressHeight, progressX, progressY, progressWidth, progressHeight, "files/bar_progress.png") -- Draw the dead text if ( cProgress == 0 and isPedDead(theNemesis) ) then dxDrawText("The Nemesis has been defeated - Please wait for the next one to Spawn.", progressX, progressY, progressWidth, progressHeight, dxTextColor, dxTextScale, dxTextFont) end else removeEventHandler("onClientRender", getRootElement(), renderDX) end end Server -- Settings local nemesisSpawnMSG = "The nemesis has spawned!" local nemesisKillMoney = 15000 local nemesisKillLocalMSG = "You have assisted killing the Nemesis ( " .. tostring(nemesisKillMoney) .. ")" -- Special Variables addEventHandler("onResourceStart", resourceRoot, function () createNemesis(-1935.5480957031, 665.44055175781, 47.0, 90, 2500, 312, 0, 0, nil, 38, "attacking", true) setTimer(createNemesis, 300000, 0, -1935.5480957031, 665.44055175781, 47.0, 90, 2500, 312, 0, 0, nil, 0, "chasing", true) end ) addEventHandler("onResourceStop", resourceRoot, function() if theNemesis then destroyElement(theNemesis) end end ) function createNemesis(botX, botY, botZ, botR, maxHP, skinID, interior, dimension, theTeam, weapon, theMode, theModesubject) if ( exports["slothBot"] and exports["extra_health"] and not theNemesis ) then theNemesis = exports["slothBot"]:spawnBot(botX, botY, botZ, botR, skinID, interior, dimension, theTeam, weapon, theMode, theModesubject) maxHealth = maxHP exports["extra_health"]:setElementExtraHealth(theNemesis, maxHealth) local theBlip = createBlipAttachedTo(theNemesis, 23) outputChatBox(nemesisSpawnMSG, getRootElement(), 255, 0, 0) addEventHandler("onBotWasted", theNemesis, function() -- Destroy the blip once the bot dies destroyElement(theBlip) theNemesis = nil -- Award money to all players nearby local bX, bY, bZ = getElementPosition(source) local pCount = 0 for index, player in ipairs(getElementsByType("player")) do local pX, pY, pZ = getElementPosition(player) if ( getDistanceBetweenPoints3D(bX, bY, bZ, pX, pY, pZ) <= 100 ) then outputChatBox(nemesisKillLocalMSG, player, 255, 0, 0) givePlayerMoney(player, nemesisKillMoney) end end outputChatBox("The nemesis has been defeated by " .. tostring(pCount) .. " players!", getRootElement(), 255, 0, 0) end ) for player, _ in pairs ( isReady ) do triggerClientEvent(player, "onReceiveNemesis", resourceRoot, theNemesis, maxHealth) end end end addEvent("onBotWasted", true)
  5. Hey, so I'm trying to redesign the GUI on a Spawn Panel, and I've used the GUI Editor to move around different parts of the old GUI, however, I have a problem. In the original GUI, there are lines like guiCreateWindow(0.0117,0.4284,0.3418,0.5443,"Spawn Selection",true) Which show numbers mainly based in decimals, as opposed to the output from the GUI Editor, which is like GUIEditor.window[1] = guiCreateWindow(839, 0, 527, 763, "Spawn Selection", false) Therefore, whenever I replace the original numbers in the script with the numbers generated by the GUIEditor output, the GUI fails to appear or isn't drawn properly, how can I fix this?
  6. GerardWay

    Map Editor

    So I wasn't entirely sure where to post this, but hopefully I got it right. Whenever I go near an area in the map editor that has more than a small amount of objects, the editor lags really badly, and it becomes impossible to move, exit the game, or even move my cursor. Any ideas on a solution?
  7. I hate to say it bud, but you're extremely unlikely to find a scripter for free, or even with the promise of 'the servers income'.
  8. Hey guys, could someone give me an example of a script, in which when a Player enters a certain vehicle, if their nickname isn't Gerard or their ACL Group isn't Admin, they just get out of a car and a sound is played named 'car.mp3' I'll really appreciate any help!
  9. Yep. Right in the heart of Texas too.
  10. You can have the doughnuts, I drank the root beer, and the empty room has Kim Kardashians nudes taped to the wall.
  11. They all sound a bit too buggy to me mate, extremely un-natural
  12. Hey, I'm looking for someone that sounds or can make themself sound professional. I'll be adding sound effects to my Zombie Server, including a voice saying "Warning: Security Breach" and things like that. So I need someone capable of saying it as if it really was an announcer - Anyone willing to volunteer will be appreciated Skype - teambarrelgaming
  13. ---ISSUE RESOLVED-- Admin - Lock topic please
  14. Ah, my bad, I meant Object Model For example: I have a file named ottos_sfw.txd that replaces the showroom in SF, however if I type 'ottos_sfw' into the Map Editor, it doesnt appear so how would I find the model ID to replace for ottos_sfw.txd?
  15. GerardWay

    Progressbar

    Well, so far, you've contributed two useless pathetic answers to this thread. I can't really see anyone wanting scripting services from an asshole like you. Now, if you're going to be a little /beta/ kid, and spam - take yourself elsewhere. I'm pretty sure nobody wants prematures like you here anyway.
  16. GerardWay

    Progressbar

    Could you possibly make it display the extra health (getElementExtraHealth) of the bot called Nemesis in my script please?
  17. Yes, I am aware of how to replace the Model, however I don't know which ID to replace for my model
  18. How do I find out which ID to replace when replacing a model?
  19. GerardWay

    Progressbar

    Thanks, that seems a lot better:) Could you possibly make it work with Nemesis for me please?
  20. GerardWay

    Progressbar

    Excuse me, could you point out when I actually said this was my resource? If you look closely, I didn't.
  21. GerardWay

    Progressbar

    Sorry for the Double-Post, but can anyone help out please?
  22. GerardWay

    Admin rights

    ShoBy, add me on Skype, I can help out Skype: teambarrelgaming
  23. GerardWay

    Admin rights

    Do you mean you want the Owner ACL to have the same rights as Admin?
  24. GerardWay

    Progressbar

    I erased it ^ I'm now back with the code that is at the start of this topic