Jump to content

NeXuS™

Retired Staff
  • Posts

    1,134
  • Joined

  • Last visited

  • Days Won

    37

Everything posted by NeXuS™

  1. You can try to create the object and if it runs succesful, you know it is a valid id.
  2. You can check if there is an attacker or the attacker itself is the client. If it is or there is no attacker, you dont run the cancelEvent.
  3. First of all. I'm not going to give you a file which you can just drag&drop in. (The reason behind is, that I want you to improve, and not just copy-paste.) First of all, you will need to create a .php file. <?php ?> Then you'll have to get those variables using $_GET. Then call mail() (if you have the mail service already setup) with the arguments needed. If you did it correctly, you'll get an email.
  4. Try to translate those variables. I have no idea what they mean.
  5. You can install XAMPP and use their mail service to send mails too. Take a look at this explanation.
  6. Create the F11 map on a rendertarget, then draw the needed part of that rendertarget with dxDrawImageSection.
  7. Use a render target, it'll be easier.
  8. The drawing functions possibly.
  9. Adding a new model is possible without replacing an existing one in MTA currently. However, textures can be applied by shaders. Take a look at my post to find a little bit of information on it, or go to the Wiki and read it.
  10. What you could do is: Using the onClientFileDownloadComplete event, creating an average download speed, and using that to determine how long it'll take to download the next files. (After the first file downloaded the progress would jump from 0MB to xMB, but thats the only way I can think now.)
  11. So the only way I could work around is creating a server-sided script. On startUp calculating the filesizes, saving it into a variable. Then whenever the client joins, the client-side requests that variable (via events). If you need an example of the script. local fileList = {"test.dff"} local allSizes = 0 function calcAll() for i, k in pairs(fileList) do if fileExists(k) then allSizes = allSizes + fileGetSize(fileOpen(k)) end end end calcAll() function requestAll(requestClient) triggerClientEvent(requestClient, "startDownload", root, allSizes) end addEvent("requestSize", true) addEventHandler("requestSize", root, requestAll) local fileList = {"test.dff"} function startDownload(fileSizes) outputChatBox("All size: " .. fileSizes) for i, k in pairs(fileList) do downloadFile(k) end end addEvent("startDownload", true) addEventHandler("startDownload", root, startDownload) triggerServerEvent("requestSize", root, localPlayer)
  12. Give me 10 minutes to test a way.
  13. Try renaming it to .txt and opening it. I don't know if it's going to work.
  14. Drawing a circle drawn on a picture. So Instead of using Lua functions to get that circle, you just draw a png using dxDrawImage.
  15. Why do you want to open the TXDs and DFFs?
  16. You don't have the actual drawing in this code. Please include that one too, so we can help.
  17. Applying one picture after an another creates an illusion of a video. (Yes, that's how everything works, your TV, your PC, etc.), so it is what he wants.
  18. And the link to my other post shows how to do it...
  19. I've already linked an example above.
  20. You could use this resource, if you don't want to, or can't create it yourself.
×
×
  • Create New...