Jump to content

Dealman

Members
  • Posts

    1,421
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Dealman

  1. Don't double-post to bump your own thread, people will reply when they have time and if they have an answer for you. Also, if you are getting any warnings and/or errors, do post them as it will help significantly to pinpoint where the problem is.
  2. Giving Admin rights is hardly a form of payment, it's more like extra work. I see being an administrator almost as a full-time job. If you truly want a scripter, you'll have to find other means of payment, most likely actual money. Also, it will be a lot easier if you mention what you need help with - what it is you want to be created.
  3. Dealman

    help

    Updated it with 3 examples on how you could check if each parameter consists of numbers or letters. It's up to you to add more foolproof checks if you want it Server Side:
  4. The bikes do have health like any vehicle, yes. But if I recall correctly they don't take any damage from weapons or collisions. Which might make it hard to accomplish what this guy wants.
  5. @Bandi94: I don't think that will work, since bikes don't actually take any damage when shot on. Thus, your script won't be triggered. @BieHDC: Did you try the code Bandi gave you, and did it work? I believe BMX is a vehicle type which includes all bikes except motorbikes. Might be wrong though... D:
  6. Use this instead; interpolateBetween
  7. A friend of mine had made a map where timers were being created through onClientRender by accident, we didn't notice any lag whatsoever - because it was client-side and it didn't use any for loops. It was when cleaning the code up he noticed it. A timer will really only cause lag if it does a for loop like every 10th of a second, server-side. Other than that, they will rarely ever cause lag.
  8. I have never ever had an issue where a lot of timers caused lag, especially when client side. Only if you have a massive amount of timers looping rapidly will it cause lag...
  9. addCommandHandler setTimer addEventHandler --onClientRender removeEventHandler --onClientRender dxDrawRectangle dxDrawText As for fading, you could make us of either onClientRender or setTimer. Just have it decrease the alpha. Using onClientRender will make it fade much smoother than a timer would.
  10. No, it's basically just a welcome screen. Similar to one of those that lobby/multigamemode servers have, yes.
  11. I'm trying to create a welcome screen for my server, it's going fairly well. I know how to do all of the GUI and that stuff with ease, however, the logic behind spawning the player and preventing him from spawning is what confuses me. Since our server uses the Race Gamemode as a basis, how would I go about to prevent the player from automatically spawning when he joins our server? And when a specific button is clicked, they would be put into Race? As I said, I know how to do all of the GUI related stuff but not the actual spawning - it confuses me greatly and I would rather not touch the race gamemode if at all possible. But if needed, well, then it's needed I just need some pointers on what to use, and if I need to edit the Race Gamemode - what in particular should I edit? Any answers are much appreciated...!
  12. Instead of destroying the elements, you could use guiGetVisible and guiSetVisible. Example;
  13. Sorry for being off-topic, but regarding your virus problem - I'd highly suggest you to download Avast!(Free to use) and run their bootscan(Scans your computer when you reboot it, before the OS is initiated.) Usually manages to get rid of those pesky viruses!
  14. I usually do it like it's explained when reading about guiGetScreenSize. And most of the time, it yields perfect results, some things might need another way to do it though... 1. Import the Samsung picture via the GUI Editor and set it to the size you want. 2. Add the GUI Elements you want; Tab Panel with Tabs, Gridlists and so on. Use Absolute co-ordinates. 3. Then output the code and divide the X/Y positions and sizes with your resolution. For example; Here you have those values; local screenX, screenY = guiGetScreenSize() guiCreateStaticImage(20, 51, 227, 383, "images/white.png", false, GUIEditor.staticimage[1]) Position X: 20/1920 = 0.0104 Position Y: 51/1080 = 0.0472 Size X: 227/1920 = 0.1182 Size Y: 383/1080 = 0.3546 Then you should make it look like this; local screenX, screenY = guiGetScreenSize() guiCreateStaticImage(screenX*0.0104, screenY*0.0472, screenX*0.1182, screenY*0.3546, "images/white.png", false, GUIEditor.staticimage[1]) Some people prefer not to use multiply since it returns a lot of numbers and can at some times be somewhat off unless you use all of it. It's accurate enough most of the time though. You can of course use subtraction instead if it pleases you. This is my own preferred way of doing it, if someone else knows of a more reliable/efficient way of doing it, do let him know
  15. Aye, except for one image, which seems to be using some kind of offset. He needs to divide the absolute values with his resolution.
  16. Try this; (Server-side!) Haven't tried it though
  17. Set the GUI Editor to output it with absolute values, then if you want it to work on other resolutions, read about this function; guiGetScreenSize.
  18. Dealman

    Animations

    Read about the function on the wiki, it has a boolean if you want the animation to loop or not.
  19. People tend to say that, but that's part of what makes it fun. Edit: It has come to my attention that this might have been posted in the wrong section, if this is the case, I apologize and wouldn't mind it being moved!
  20. Introducing F*A*G Shooter! It is with great joy, I finally get the opportunity to make this announcement. After a lot of hard work, we've finally got most of the bugs with our shooter sorted, and are ready for players to join for a truly unique experience. With inspiration from vehicular combat games such as Twisted Metal, Rogue Trip: Vacation 2012 and Breakneck 2, we present to you our MTA Shooter which supports a lot of different guns as well as various pickups for players to use to get the advantage they need! This is our first server for MTA, and we would love to invite each and everyone of you to come by and give our server a go - and even more so if you'd be so nice to provide feeback and any bugs you might encounter. Hex has worked really hard at ironing out as many bugs as we could find before opening it to the public, and while this is still in Beta, with a new and improved shooter system already in development we think it will be a truly unique experience never before seen in MTA. We have a lot more features planned for this system which is built for flexibility and most importantly good and efficient synchronization between players. In case you would like to stay tuned with each and every update we make - go ahead and register at our website, and while at it, go ahead and post your thoughts or whatever suggestions you might have in mind! Freaking Awesome Guys Screenshot Album Current Features: • Various weapons for you to utilize, such as MP5, Sniper, Minigun and the fearsome Rockets! • Lots of statistics tracked and stored, soon to be available inside signatures (Graphics WIP) • Maps designed by Grace & Tails, 2 guys with a great passion for shooter maps! • Minigun will overheat if fired for too long (Sound WIP) • Custom HUD showing you everything you need to know. • Custom chat written entirely from scratch, to further support our Server-Website Interaction. • Trophies System, every month the 3 best players get a nice shiny trophy next to their nametag! Planned Features: • Offensive-, Defensive- and Utlity-Power Pickups, more details on this later. • Ammunition System! • More weapons are already being planned & developed! • Multiple Weapon Support, like both the Minigun and Rockets? Why not have one on each side? • Separate Fire-Control for Left/Right. Join Us! Join Us Now, Click Here!
  21. There's no function called "getPlayerFromNamePart". Do you want to add a prefix to a specific player? For example from Player1 to SPEC-Player1?
  22. Read about guiGetScreenSize and you'll see how to make it work for all resolutions. It works perfectly for DX Drawings.
  23. No idea what you mean with POS(Position?), but read about this function, guiGetScreenSize, and it will demonstrate very nicely how to make it look proper for all resolutions. Do keep in mind that some of the time, labels especially will end up looking utmost awkward. At least that is what I've experienced.
  24. I always say start small and go from there, and whether you like it or not - for MTA, MTA Wiki will be your absolute best friend. Not only does it contain most client/server-side functions and events but also most of the time, very detailed examples. If you don't have the patience to even use the MTA Wiki, which is so nicely organized - you really shouldn't even bother to look up LUA Tutorials. Try to come up with an idea for something small and try to create it(No, not multi-gamemode with a lobby system.), and should you run into any obstacles you can't overcome, use this forum and you'll get some help. But remember to try hard before you come here and ask for help, otherwise you won't learn much. Really the best way to learn is through trial and error as Castillo mentioned.
×
×
  • Create New...