Jump to content

.:HyPeX:.

Members
  • Posts

    1,255
  • Joined

  • Last visited

Everything posted by .:HyPeX:.

  1. Talk to the owner of the script, he'll be sure about how to fix it.
  2. Any of these will work, if you plan to keep the script online 24/7 id say a table (not recommended tho). Anyways, MTA Database or XML file would be the best ones in my opinion.
  3. You should know whats the maxium value of fuel. Note: local ValueToGet = 100 local fuel = getElementData(element, "fuel") local maximum = 100 local progress = (fuel / maximum ) * ValueToGet It'll give a value within 0-100 (specified to which is biggest by ValueToGet) if you correctly set maximum. PD: Dont use caps ("If"), check syntax always.
  4. It also does something to do with your connection, and its related to this. you will see almost the same effect going from client to server side.
  5. You're Welcome
  6. Its you who was the resource, start reading, you'll find out. (Else if you cant find anything, then dont even try editing it)
  7. No, becouse the VPS is currently hosting 3 servers (4 counting mine) and 3 webpages, wich dont go down either.
  8. .:HyPeX:.

    Help Needed

    local NameWithoutString, Counts = string.gsub(getPlayerName(player), "#%x%x%x%x%x%x", "") if Counts == 0 then outputChatBox("No Color codes found!", player,255,255,255,true) outputChatBox("Your name without color codes: "..NameWithoutString, player,255,255,255,true) end
  9. There's a resource called "visualizer" already, you should check it out, and read it. (It comes by default with mta)
  10. No, you need rights to "KICK" a player, else you must disconnect him by other methods, wich cant be made using MTA's function directly, you need to use some ones with bad purpouses
  11. If you're begginer, then you wont understand the code, thats clear enought.
  12. If it does not have resource rights, then you cannot "Kick" him, you can still flood his connection/PC locally thought.
  13. What do you actually mean? if they're online admins, they can do this, but if the script is admin and they're not it will work too..
  14. If you really want to do this, you could delay it with a timer, but its still weird. (i think it is outputChatBox who delays to reach client more than the trigger, wich its output is instant cuz of local-side.)
  15. Well, our server is going down randomly, and we have to check if it is online or not, but server log doesnt show anything, records from the server just end, (it was running, and appears the new startup sequence). Note: Server logs can be accessed under http://bf3-mta.tk/server.log, normally if our server is down, our webpage also goes down (Hosted on same VPS and accessible by bf3-mta.tk), but if web is online, you can see the log. Also, does any it have any importance that BF3 Server and webpage can be both be accessed by bf3-mta.tk? (If you connect to that IP in MTA it'll take you to our server). Also, is there any method we can make the server auto-restart if it goes offline? we're using a Linux VPS. Thanks HyPeX PD: This is a sumarised wich contains the last lines of the log.
  16. .:HyPeX:.

    GPU Issues

    I'm pretty sure my BIOS does not look like that, but i'll see if it does have that MFLASH option, and post back.
  17. .:HyPeX:.

    Script Help

    Well, you should check the errors and try to fix them yourself, you can clearly see them
  18. I found myself it does have an effect over original rotation. My positions worked like this, but its still weird. for i=1, 4 do local a = "Text"..i dxDrawText(Dashboard.Positions.Text[a][1] , Dashboard.Positions.Text[a][2] * x, Dashboard.Positions.Text[a][3] * y, Dashboard.Positions.Text[a][4] * x, Dashboard.Positions.Text[a][5] * y, tocolor(255,255,255,alpha),3,"clear","left", "top", true, false,true, true, true, 270, x*0.05 + ((x*0.2) * i), y*0.85) end
  19. Thanks! it works again now
  20. Well, its a bit buggy, sometimes images get struck, get under other ones, etc, and im unsure why, can someone help me out? function RenderBaseDashBoard() local x,y = guiGetScreenSize() dxDrawRectangle(0, 0, x*0.2, y, tocolor(100,100,100,255)) local i = "Image"..1 dxDrawImage(Dashboard.Positions.ImageNow[i][1] * x, Dashboard.Positions.ImageNow[i][2] * y, Dashboard.Positions.ImageNow[i][3] * x, Dashboard.Positions.ImageNow[i][4] * y, Dashboard.Positions.ImageNow[i][5],0,0,0, tocolor(255,255,255,255), true) local i = "Image"..2 dxDrawImage(Dashboard.Positions.ImageNow[i][1] * x, Dashboard.Positions.ImageNow[i][2] * y, Dashboard.Positions.ImageNow[i][3] * x, Dashboard.Positions.ImageNow[i][4] * y, Dashboard.Positions.ImageNow[i][5],0,0,0, tocolor(255,255,255,255), true) local i = "Image"..3 dxDrawImage(Dashboard.Positions.ImageNow[i][1] * x, Dashboard.Positions.ImageNow[i][2] * y, Dashboard.Positions.ImageNow[i][3] * x, Dashboard.Positions.ImageNow[i][4] * y, Dashboard.Positions.ImageNow[i][5],0,0,0, tocolor(255,255,255,255), true) local i = "Image"..4 dxDrawImage(Dashboard.Positions.ImageNow[i][1] * x, Dashboard.Positions.ImageNow[i][2] * y, Dashboard.Positions.ImageNow[i][3] * x, Dashboard.Positions.ImageNow[i][4] * y, Dashboard.Positions.ImageNow[i][5],0,0,0, tocolor(255,255,255,255), true) for i=1, 4 do local a = "Text"..i dxDrawText(Dashboard.Positions.Text[a][1] , Dashboard.Positions.Text[a][2] * x, Dashboard.Positions.Text[a][3] * y, Dashboard.Positions.Text[a][4] * x, Dashboard.Positions.Text[a][5] * y, tocolor(255,255,255,255),3,"clear","left", "top", true, false,true, true, true, 270, x*0.05 + (x*0.2 * i), y*0.85) end end addEventHandler("onClientRender", getRootElement(), RenderBaseDashBoard) MyStart = {} Timers = {} Timer = {} function MoveImagePosition(image,xstart,xend) MyStart[image] = getTickCount() local image,xstart,xend = image, xstart,xend Timers[image] = setTimer(function () ClientRenderMoving(image, xstart, xend) end, 50,0) Timer[image] = setTimer(function() Timers[image] = nil Timer[image] = nil end, 1000, 1) end function ClientRenderMoving(image,startx, endx) local start = MyStart[image] local image = tonumber(image) local startx = tonumber(startx) local endx = tonumber(endx) local now = getTickCount() if now - start < 1000 then local endtime = start + 1000 local elapsed = now - start local duration = endtime - start local progress = elapsed / duration local nimage = "Image"..image for c=1, 4 do Dashboard.Positions.ImageNow[nimage][c] = interpolateBetween(Dashboard.Positions.ImageStart[nimage][startx][c], 0,0, Dashboard.Positions.ImageStart[nimage][endx][c],0,0, progress, "Linear") end end end function CheckMyShit(cmd, image, startx, endx) MoveImagePosition(image, startx,endx) end addCommandHandler("tta", CheckMyShit)
  21. Well, i give up, simply dont get it. frotation takes the text to hell knows what, and i cant simply get it right. (Dont really get how it is supposed to work if i want text to be vertical from bottom to top of the screen, 270 rot.) frotationcenterX does nothing. frotationCenterY does nothing. Can someone help me out?
  22. Well my mta stopped working, and when i went into mta diag, somehow, text/american.gxt file is missing, can someone upload it for me please? Also, is there any reason why this file was automatically deleted and how? (I havent touched my gta for months).
  23. .:HyPeX:.

    GPU Issues

    Totally forgot to post my Motherboard, its a MSI 760 GM-P21 FX. it only has one PCI Slot, and i already checked that it was correctly plugged in.
  24. Its supposed that I will go to a player, inside table position I, not to work alone imo.
  25. You could use serials and a table wich would be temporal, but its up to you.
×
×
  • Create New...