Jump to content

50p

Retired Staff
  • Posts

    2,973
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 50p

  1. https://community.multitheftauto.com/index.php?p= ... ils&id=427
  2. You can draw semi-transparend rectangle on top of the image and it would brighten them up, but it's better to draw images as they are. You can try this: http://jancres.hubpages.com/hub/Perform ... -with-Gimp I have never used GIMP, not even downloaded it once but you can give it a go.
  3. 50p

    Anti-Team kill

    Triple-post again and we will take actions. Friendly fire means shooting team members. You can't simply disable friendly fire for members of 2 teams because members of other team are not "friends" (where the name comes from "friendly fire"). You cancel onClientPlayerDamage, why would you expect to receive any damage including flower damage? Think about it.
  4. Check your file doesn't have an error: http://www.w3schools.com/xml/xml_validator.asp Like you said "i can't load xml file after i edited data in it".
  5. 50p

    TXD

    Go to about 3:50 to see the item chooser, it shows the model and its texture name in the table. You can find models by names (you know the name of the model without the extension ".dff"). Once you get the texture name, open IMG Tool or Spark (which I prefer) and just search for that texture.
  6. 50p

    clothes

    viewtopic.php?f=91&t=44842#p449392 Maybe I did something wrong but you can read the rest of that topic.
  7. 50p

    setElementHealth

    First advice, don't name variables with the same names (eg. nearbyZombies). Also, try to avoid naming parameters with predefined variable names like source, root, etc. since the function called from an event will also pass the hidden source variable. Before you set element's health, check if the element is not "you".
  8. 50p

    TXD

    Are you sure it's in gta3.img? I can't find it myself. Maybe you've installed some mod that added this file. Also, why would you need to export a model from gta3.img and then replace the in-game model with this one? Try MEd, you can find textures by models or models by textures. If you don't want to use MEd then you can go hardcore and find the model in one of the .ide files which will also tell you the texture name.
  9. 50p

    TXD

    Where are you looking and where did you find the .dff? To keep things organized, people usually put .txd in the same folder as .dff and .col. If you can't find it, ask the author of the model or resource where you found it.
  10. 50p

    [Help]Script

    @[s.K] You're either 6-year-old kid trying to achieve something or you're simply acting silly and hoping someone will help you. If you don't want to learn and thinking we'll make a complete script for you, don't waste our time because no one will!
  11. 50p

    Transparency

    What's the source in your code?
  12. Added a small stand-alone application which allows you to create sprite sheets from GIFs. Check the first post.
  13. It simply looks like a compiled Lua script. You can't easily edit this script. It's been compiled for a reason.
  14. These zombies script is not a gamemode with objectives. It's an addon for your server so you can add zombies. All your ideas should be scripted separately.
  15. 50p

    I need help

    turfShapes = { }; -- make it global - outside functions ... turfShapes[ CreateColid ] = 1; -- once cuboid is created, add it to the turfs table, having element as table index is easier for later use in if statements ... if ( turfShapes[ source ] ) then -- in your OnPlayerOnColHit to check if the hit shape is a a turf col shape ...
  16. 50p

    I need help

    CreateColid is a local variable in OnresourceOpen function in a loop. So, if( source == CreateColid) in OnPlayerOnColHit will never be true.
  17. That would work as long as the server is running. Once the server stops, the countdownTable would be empty. It's best to store timestamp of the "start" in player's account/database (wherever you prefer) and then check if "current timestamp" - "start timestamp" is greater than 6hrs. This will work even if the server restarts. Can't think of any simpler way.
  18. 50p

    sync players

    To my knowledge the lower the number the better sync but you have to remember the more information your server has to sync the more time clients need to receive them. Default value is fine so you can leave it unchanged unless you have a private or LAN server where you won't have many players and want quicker sync then you can set it to 50.
  19. Thanks guys. I'd like to see people using it on their servers. Sprite animation has been used in games for very long time. Most of the time it's used for 2D animations. Watch this video and hopefully you'll understand better
  20. Why do you set a timer with infinite number of executes? This is the reason why you get them all messages, first time the object gets deleted and then each destroyElement call will fail because myEffect is not a valid object any more. Check the setTimer parameters again.
  21. 50p

    "Break"

    return stops the function and returns a value or multiple values, break, breaks the loop but doesn't stop a function function aFunc( stopAt ) local a; for i = 1, 10 do if i == stopAt then a = i; break; -- stops the loop but keeps executing rest of the function end end -- break hits end of the loop -- do something else here return a; end
  22. Info: Additional tool: Gif 2 Sprite is a tool that will let you create a sprite sheets from GIFs, so you can create animations for your server even easier! Have a look yourself: Download: SpriteAnim library: https://community.multitheftauto.com/index.php?p= ... ls&id=5832 Gif 2 Sprite tool: http://scripteditor.beta.mtasa.com/files/Gif2Sprite.zip
  23. 50p

    Crosshair

    Doesn't matter if you know basic maths, viewtopic.php?f=91&t=41865&p=423999#p423999
  24. If SA-MP can make HTTP requests (like callRemote in MTA) then it is possible.
  25. I can't help you with this now. I hope someone who's better at making proper edf files will help you out but try not to multi post. You can also speak to us on IRC, I'm sure there will be someone who can help you out.
×
×
  • Create New...