Jump to content

Xierra

Members
  • Posts

    767
  • Joined

  • Last visited

Everything posted by Xierra

  1. That's for the reload am I right? I'll give it a shot tomorrow. Now I'm gonna release the first beta version first.
  2. Yes! It's working. Thanks again 50p! One thing though, is it possible to detect reloads? Like the GTA's ammo system. Only reduce total ammo after he reloads. Also, for some weapons, I want it to show only total ammo. How to do that? (check the script again, on line 15, that's where it's gonna be used.)
  3. Here, to help you translate: http://www.translate.google.com You can translate it to your language to make you understand.
  4. Hi guys! As I told you, I just made the Health & Armor bar. Thanks to 50p and Doomed_space_marine, who helped me a lot. Now I wanted to make ammo DX text. I tried some effort, but it failed. It said bad arguments repeatedly. Script (client): -- Direct X Drawings function DXdraw() health = getElementHealth( getLocalPlayer() ) lineLength1 = 114 * ( health / 100 ) armor = getPedArmor( getLocalPlayer() ) lineLength2 = 114 * ( armor / 100 ) ammoinclip = getPedAmmoInClip (getLocalPlayer()) totalammo = getPedTotalAmmo (getLocalPlayer()) showammo1=ammoinclip showammo2=totalammo dxDrawText("",646.0,731.0,694.0,766.0,tocolor(0,255,255,175),1.0,"bankgothic","right","top",false,false,false) --Ammo (for shotgun, grenades, etc) dxDrawRectangle(818.0,725.0,lineLength2,14.0,tocolor(200,200,200,200),true) dxDrawRectangle(818.0,745.0,114.0,14.0,tocolor(50,0,0,150),false) dxDrawText(showammo2,684.0,731.0,732.0,766.0,tocolor(0,255,255,175),1.0,"bankgothic","left","top",false,false,false) -- Total Ammo dxDrawText("|",665.0,731.0,677.0,762.0,tocolor(255,200,0,200),1.0,"bankgothic","left","top",false,false,false) --Separator dxDrawText(showammo1,611.0,731.0,659.0,766.0,tocolor(0,255,255,175),1.0,"bankgothic","right","top",false,false,false) -- Ammo in clip dxDrawRectangle(818.0,725.0,114.0,14.0,tocolor(50,50,50,150),false) dxDrawRectangle(818.0,745.0,lineLength1,14.0,tocolor(175,0,0,200),false) end addEventHandler("onClientRender",getRootElement(),DXdraw) function hudChanger () showPlayerHudComponent ( "armour", false ) -- Hide the ammo displays for the newly joined player showPlayerHudComponent ( "health", false ) -- Hide the weapon displays for the newly joined player showPlayerHudComponent ( "money", false ) showPlayerHudComponent ( "clock", false ) showPlayerHudComponent ( "weapon", false ) showPlayerHudComponent ("ammo", false) showPlayerHudComponent ( "money", false ) end addCommandHandler ( "hidehud", hudChanger ) function hudChanger2 () showPlayerHudComponent ( "armour", true ) -- Hide the ammo displays for the newly joined player showPlayerHudComponent ( "health", true ) -- Hide the weapon displays for the newly joined player showPlayerHudComponent ( "money", true ) showPlayerHudComponent ( "clock", true ) showPlayerHudComponent ( "weapon", true ) showPlayerHudComponent ("ammo", true) showPlayerHudComponent ( "money", true) end addCommandHandler ( "showhud", hudChanger2)
  5. Yes! It's working nicely! Thanks Doomed_space_marine, you really helped me! Later I'll try for the weapon ammo DX text. Thanks to everyone who helped me. Issue Solved.
  6. Anyone? I tried to make a timer, but instead just keep creating, not updating. Anyway, does DX drawings detect resolutions?
  7. Xierra

    Help!!

    Nah, some peoples may have similar personalities, you know. He was just not perfect at English. Just don't be so sensitive for now, varez. Just watch him for now if you feel he's suspicious. @loler: You know, it's better to show everyone your scripts, because some peoples here are ready to help you. Just don't keep it secret.
  8. Ahh thanks for the reference. I'll take a look. Thanks 50p (and your peds script, it's cool!) Edit: I have made it! Sucess! But It only renders once, how should I make it update everytime when I reduced my health or armor? Script (client): local health = getElementHealth( getLocalPlayer() ) local lineLength1 = 114 * ( health / 100 ) local armor = getPedArmor( getLocalPlayer() ) local lineLength2 = 114 * ( armor / 100 ) -- Direct X Drawings addEventHandler("onClientRender",getRootElement(), function() dxDrawText("50",646.0,731.0,694.0,766.0,tocolor(0,255,255,175),1.0,"bankgothic","right","top",false,false,false) dxDrawRectangle(818.0,725.0,lineLength2,14.0,tocolor(200,200,200,200),true) dxDrawRectangle(818.0,745.0,114.0,14.0,tocolor(50,0,0,150),false) dxDrawText("50",684.0,731.0,732.0,766.0,tocolor(0,255,255,175),1.0,"bankgothic","left","top",false,false,false) dxDrawText("|",665.0,731.0,677.0,762.0,tocolor(255,200,0,200),1.0,"bankgothic","left","top",false,false,false) dxDrawText("50",611.0,731.0,659.0,766.0,tocolor(0,255,255,175),1.0,"bankgothic","right","top",false,false,false) dxDrawRectangle(818.0,725.0,114.0,14.0,tocolor(100,100,100,150),false) dxDrawRectangle(818.0,745.0,lineLength1,14.0,tocolor(175,0,0,200),false) end ) Credits to R3mp for the guieditor. Tips: those DX texts are for finding ammo and max ammo, plus one more text for throwing weapons and shotgun. I'll ask that after I made the bar first. That will be later.
  9. Xierra

    Help!!

    Lol, I can't have a chance to look at the code (Also don't make posts like that, edit it instead of making a new post. You did a quadruple post or 4x posts) Why you keep it secret? I never hide my script.
  10. Yeah, I already knew how to make it with text. But how if using a bar instead of text?
  11. Xierra

    Its me agian :P

    The option for spawns: https://community.multitheftauto.com/index.php?p= ... ils&id=756 Edit the xyz, weapons, etc.
  12. Xierra

    Help!!

    Haystack... If you're using MTA SA Map editor, just search "hay", if you find it, look (or scroll to the side) and see the object ID. Unfortunately, sorry, I forgot the ID.
  13. Hi guys once again. I want to make a new script, which is putting a bar. I know about the healthbar as seen on the nametag. But If I want to make my own, how? Any ideas? (And of course not progress bar on GUI) And if you are grateful, is it possible to put custom bars on a GUI window?
  14. Xierra

    [REQ] 3 scripts

    Yeah those two (except number 1) is made by themselves, you have to script it by yourself. Number 1 has 5 speedometers to choose from: 1. Analog DXSpeedometer Cool ones, but It's laggy if you got slow computer. 2. Normal Analog Speedometer Not laggy, and you can change the speedo picture too. 3. Digital speedometer with bar and damage. Best for the digital! 4. Compact Digital speedometer replaces health bar when inside a vehicle. 5. Simple Digital speedometer In a GUI.
  15. Oh yeah, you're right, sorry. use onClientPlayerWasted event. Just a lil offtopic: Anyway, are you in [HLS]? I'm a mapper of the server.
  16. Just edit it by editing onClientResourceStart to onPlayerWasted, means everytime the local player dies, it plays the song.
  17. Hmm Nice work! Good to use if you were trying to look at MTA Servers while you don't use MTA SA, A bit like SA-MP's Server Browser. @mabako: Ohh, you still helping to develop the MTA SA? I helped you a bit by remaking the mabako-services, you remember?
  18. Xierra

    WARNING

    @Blokker_1999: Yes, I agree by your words. You got much more active now? I even hate more to hackers, hackers really mess things up. (But I'm still lucky at least I still don't have my server yet! ) No, just go to the servers who allows the custom handlings (or single player). Just use the original handlings if you want to go to the other servers! Understood? I myself also ever cheat, but only on singleplayer, for fun.
  19. Yes it's a good idea, but also the table can be used on many purposes other than x,y,z locations. @eAi: I know, but how should I do that? Any examples?
  20. Ahh, no it's not fully empty yet! I'm still here! Don't lock it first, just wait for the time being. And also, this anticheat was his own, not by phatlooser (which he made Anti-s0beit)
  21. News: Hazardus decides to stop uploading car mods to the web. Don't remove his ID unless if he did it again.
  22. There's no analog skin selector, but there's one resource that works like SA-MP's skin selector. Resource: http://www.community.multitheftauto.com/index.ph ... ils&id=144 It still have problems though, but you can make a new one. If you make your own, you can make it even better than SA-MP's Skin selector, like those in Mini-missions server.
  23. I don't really understand what you mean, can you start the Singleplayer?
  24. I don't think it's possible. That could also be the reason that I've never seen more than one train on the same rail.
×
×
  • Create New...