Jump to content

Simple0x47

Members
  • Posts

    1,518
  • Joined

  • Last visited

  • Days Won

    8

Everything posted by Simple0x47

  1. Desactiva la autentificación con serial editando el archivo mtaserver.conf
  2. Tendrás que controlar el evento OnVehicleStartEnter.
  3. Well I've got to admit it, I was wrong with my first opinion about this server. I totally recommend it!
  4. Well since an image must be downloaded... you should first download the resource with that image, and then keep going with the rest of the resources.
  5. Hello World! I've thought about this and I've decided to release the actual code in order to show the structure of things work in order to allow developers to be accommodated with SUI in order to make use of it in a full way when a full version will be released. Follow the development here: sDevelopment Download
  6. You can still overpass those checkings.
  7. Is under massive development. Screenshots will be shown when its gonna be released.
  8. function playerTargetCheck ( ) for i, thePlayer in ipairs ( getElementsByType( "player" ) ) do if ( player ~= thePlayer ) then local px, py, pz = getElementPosition( thePlayer ) local tx, ty, tz = getElementPosition( player ) if ( getDistanceBetweenPoints3D( px, py, pz, tx, ty, tz ) <= 50 ) then setElementHealth( player, ( getElementHealth( player ) - 50 < 0 ) and 0 or getElementHealth( player ) - 50 ) end end end end addCommandHandler ( "sharigano", playerTargetCheck )
  9. function drawSpeedometer() if isPedInVehicle(self) and getElementHealth(self) > 0 and enableSpeed ~= false and getElementData(getLocalPlayer(),"userpanelOpen") ~= true then speedx, speedy, speedz = getElementVelocity ( getPedOccupiedVehicle( localPlayer ) ) actualspeed = (speedx^2 + speedy^2 + speedz^2)^(0.5) speed = actualspeed * 180 local alap = tocolor(255,117,0,178) if speed >= 240 then alap = tocolor(255,0,0,178) else alap = tocolor(255,117,0,178) end dxDrawImage(screenW * 0.7882, screenH * 0.6800, screenW * 0.1785, screenH * 0.2344, discImg, 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(screenW * 0.7862, screenH * 0.7210, screenW * 0.1785, screenH * 0.2344, needleImg, needleRotation, 0, 0, alap, false) end end
  10. With more than 30 players with 20 AI each you would see the effects.
  11. SUI is making use of dxRenderTargets in order to allow a great functionality of elements that can be parents ( box, scrollbar ). This won't mean it will be laggy, just that the people that have VideoMemoryFreeForMTA couldn't see this type of objects. So there's the possibility of using SUI even if they cannot handle a renderTarget by not using Boxes with more content that they can fit and not use scrollbars at all in this cases. In order to avoid complex code for the developer that is going to use SUI, I'm going to develop a backend that could handle this situations in order to keep as simple as possible the dev's life. Update: RenderTargets maybe aren't going to be used at all!
  12. I will try to create all the ceGUI's ones.
  13. Well it would be possible if you would be a genius that could create GTA SA from scratch for MTA SA :v
  14. The idea of SUI is creating an API for creating User Interfaces in a easy way by having complex and optimized structures.The personalization is similar to using the dxDraw functions. There are also 'styles' you can add or remove by having a little bit of knownledge of Lua table definition, and about the animations... you should check out the code. The dxLib is estimated to be released on December.
  15. Hello people. I've been working for a while on sui ( Simple User Interface ), it's under massive development and I'd like to know if you guys are interested in a new dxLib or if you have enough with the stuff is out right now.
  16. Simple0x47

    Pubg

    Or just take the one from the PUBG server some russians have made and implement it in your server. But making it like a 'water shader' would be enough I think.
  17. Just look for the Edit text otherwise answer the question that @!#NssoR_) made you.
  18. ¿Y qué tal si posteas en la sección española?
  19. What about designing 'professionally' your post.
  20. ¿Qué tal código de tu resource? Ya que parece que te falta un destroyElement to bonito :v
×
×
  • Create New...