Jump to content

Xierra

Members
  • Posts

    767
  • Joined

  • Last visited

Everything posted by Xierra

  1. Ok then, I'll be waiting. Because I can't use Xfire, the community stats system can be an alternative. If you have free time, improve that one too if you can.
  2. Yeah good idea karlis, but the freeroam doesn't hit me much, just the zombie amount makes me veeeryy laggy.
  3. Nice one! I've been waiting for this for long!! I will update it. And of course hoping my scripts work. Keep moving forward for the next major release, MTA SA 1.1, Best... GTA SA Multiplayer Mod... Ever...
  4. Hi there guys! Anyway, I want to ask a little question, was the MTA SA stats system available? Because, I can't use it anyway.
  5. Good job! Slothman will definetly be happy to see someone really improve the Zday resource! And of course will be the unique RP play, because it's rare to see a Zombie RP gaming. And also, will definetly beat ALL SA-MP's Zombie RPs. MTA SA ftw!! But unfortunately, my crappy computer made it too laggy to play it, so I can't join and play Zday with you guys...
  6. The MTA SA Wiki is useful for newbies, because it could give you a little hint on how you make it. Anyway, if you don't understand or you get stuck while scripting, you can always ask on the forums anytime, and people will help you make it. In fact I also study at wiki.
  7. If you really want a voice chat, use Teamspeak or Xfire. Teamspeak, in my opinion, is a good choice. And Voice chat is not integrated in MTA SA. So you have to use external files to use it.
  8. I would be planning to make that one in the meantime. Just that the bar changes to numbers instead. But I need to learn dynamic weapon icons first...
  9. Yeah, 80% SA-MP players made maps from MTA SA. I knew it. Even I sometimes took one of the maps in SA-MP and convert it to MTA SA map from this handy converter.
  10. Whew, did some tries and now it works as it should! Thanks Dragon, I'll credit you. Right, now I learned how to set DX text to be visible or invisible. Problem Solved.
  11. Hoho, Avatar rocks! Now to take it to MTA SA? Wow that will be great! Hope that will be a success! But don't forget to put download link, with mirrors or something, so other people can download faster.
  12. Xierra

    [REL] InfoGUI

    Ca11um, why was that resource suspended?
  13. I was thinking of a solution, your solution makes sense, but how should check weapon every frame and do what it says?
  14. Right, I've have done this: -- Weapon tables function weapontables () local noreloadweapons = {} --Weapons that doesn't reload. noreloadweapons[16] = true noreloadweapons[17] = true noreloadweapons[18] = true noreloadweapons[19] = true noreloadweapons[25] = true noreloadweapons[33] = true noreloadweapons[34] = true noreloadweapons[35] = true noreloadweapons[36] = true local meleespecialweapons = {} --Weapons that don't shoot, and special weapons. meleespecialweapons[0] = true meleespecialweapons[1] = true meleespecialweapons[2] = true meleespecialweapons[3] = true meleespecialweapons[4] = true meleespecialweapons[5] = true meleespecialweapons[6] = true meleespecialweapons[7] = true meleespecialweapons[8] = true meleespecialweapons[9] = true meleespecialweapons[10] = true meleespecialweapons[11] = true meleespecialweapons[12] = true meleespecialweapons[13] = true meleespecialweapons[14] = true meleespecialweapons[15] = true meleespecialweapons[40] = true meleespecialweapons[44] = true meleespecialweapons[45] = true meleespecialweapons[46] = true if noreloadweapons [getPedWeapon(getLocalPlayer())] then guiSetVisible (totalammo, false) guiSetVisible (separator, false) guiSetVisible (ammoinclip, false) guiSetVisible (noreloadtotalammo, true) elseif meleespecialweapons [getPedWeapon(getLocalPlayer())] then guiSetVisible (totalammo, false) guiSetVisible (separator, false) guiSetVisible (ammoinclip, false) guiSetVisible (noreloadtotalammo, false) else guiSetVisible (totalammo, true) guiSetVisible (separator, true) guiSetVisible (ammoinclip, true) guiSetVisible (noreloadtotalammo, true) end end end -- All the Direct X Drawings function DXdraw() --Variables sWidth, sHeight = guiGetScreenSize() health = getElementHealth( getLocalPlayer() ) lineLength1 = 114 * ( health / 100 ) -- Health bar armor = getPedArmor( getLocalPlayer() ) lineLength2 = 114 * ( armor / 100 ) -- Armor bar ammoinclip1 = getPedAmmoInClip (getLocalPlayer()) totalammo1 = getPedTotalAmmo (getLocalPlayer()) showammo1=ammoinclip1 showammo2=totalammo1 moneycount=getPlayerMoney(getLocalPlayer()) money= '$' ..moneycount local hour, mins = getTime () time = hour.. ':' ..mins --DX Drawings noreloadtotalammo = dxDrawText(showammo2,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), will be later. dxDrawRectangle(sWidth-206,sHeight-43,lineLength2,14.0,tocolor(200,200,200,200),false) -- Armor active bar dxDrawRectangle(sWidth-206,sHeight-23,114.0,14.0,tocolor(50,0,0,150),false) -- Health inactive bar totalammo = dxDrawText(tostring (showammo2),sWidth-340,sHeight-37,sWidth-292,sHeight-2,tocolor(0,255,255,175),1.0,"bankgothic","left","top",false,false,false) --Total Ammo separator = dxDrawText("|",sWidth-359,sHeight-37,sWidth-347,sHeight-6,tocolor(255,200,0,200),1.0,"bankgothic","left","top",false,false,false) --Separator ammoinclip = dxDrawText(tostring (showammo1),sWidth-413,sHeight-37,sWidth-365,sHeight-2,tocolor(0,255,255,175),1.0,"bankgothic","right","top",false,false,false) --Ammo in clip dxDrawRectangle(sWidth-206,sHeight-43,114.0,14.0,tocolor(50,50,50,150),false) -- Armor inactive bar dxDrawRectangle(sWidth-206,sHeight-23,lineLength1,14.0,tocolor(175,0,0,200),false) --Health active bar dxDrawRectangle(sWidth-84,sHeight-48,78.0,33.0,tocolor(0,0,0,150),false) -- GTA Time DX Rectangle dxDrawText(tostring (money),sWidth-200,sHeight-78,sWidth-5,sHeight-54,tocolor(0,0,0,200),1.0,"pricedown","right","top",false,false,false) -- Money DX text (shadow) dxDrawText(tostring (money),sWidth-202,sHeight-81,sWidth-7,sHeight-57,tocolor(0,100,0,220),1.0,"pricedown","right","top",false,false,false) -- Money DX text dxDrawText(tostring (time),sWidth-81,sHeight-46,sWidth-10,sHeight-16,tocolor(250,250,250,200),1.0,"diploma","center","top",false,false,false) -- GTA Time DX text end addEventHandler("onClientRender",getRootElement(),DXdraw) I got errors " expected near end" on line 57. I don't know where to place it, sorry. Can somebody help me where to put those tables?
  15. Hi guys! Now I ask another question: I have made a table, I want to get weapon ID, but I'm a bit confused. local noreloadweapons = {} --Weapons that don't reload. {[16], [17], [18], [19], [25], [33], [34], [35], [36]} local meleespecialweapons = {} --Weapons that don't shoot, and special weapons. {[0], [1], [2], [3], [4], [5], [6], [7], [8], [9], [10], [11], [12], [13], [14], [15], [40], [44], [45], [46]} Here's what I want: Get weapon ID, then if the weapons is from noreloadweapons, I want it to show in the other DX text which I said will be later. 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), will be later. And if the weapons is from meleespecialweapons, I don't want to show anything, just simple, by guiSetVisible to false. How can I do this? I'm confused after reading the wiki.
  16. lol, anyone still using this? I don't want this topic to be left out cold. Use this converter if you want to convert maps. At least I was hoping for a little glue...
  17. I also vote no. Because it makes sense if you got lost of what MTA SA version you have. Like on my alternate HUD resource, look at it, I don't wanna block the MTA SA Version, and It just took a tiny space just for that. What's the big deal of removing / blocking that? It doesn't annoy me at all. Prove about that: If you wanna show screenshots to people, but don't want them to see the MTA Watermark, just crop a little bit, easy as that.
  18. Now for another question: How to hide or show a GUI element or DX drawing?
  19. Thanks very much R3mp! I'll remember these maths. So this way it can be done in all GUI elements & DX drawings. All the others: thanks, that helps me too, but R3mp helps the most. Now I understood about guiGetScreenSize and why not put it on the wiki as the way to count it? And R3mp, thanks to your guieditor, I could make GUIs and master it! I'm just a newcomer in scripting world in the beginning, but here it goes along the way. Yeah! Now for another question: How to hide or show a GUI element or DX drawings?
  20. Hey, don't forget to read this first before you post something like that! https://forum.multitheftauto.com/viewtop ... 91&t=26541 And no, I don't think anybody's gonna join the scripting, just because of that topic. Sorry if I made you upset.
  21. Hi guys! I have another question, I got confused on getting correct place with guiGetScreenSize. I want to do this to fit my HUD on the proper place on every resolutions. After this is solved, I will upload this resource to the community, codenamed: alternate_hud For now I wanna learn about guiGetScreenSize. Can you give me a specific tutorial? Because I don't understand it at all. Script: -- All the Direct X Drawings (plus health & armor) function DXdraw() local x1,y1 = guiGetScreenSize() health = getElementHealth( getLocalPlayer() ) lineLength1 = 114 * ( health / 100 ) -- Health bar armor = getPedArmor( getLocalPlayer() ) lineLength2 = 114 * ( armor / 100 ) -- Armor bar 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(tostring (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(tostring (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 ) showPlayerHudComponent ( "health", false ) showPlayerHudComponent ( "money", false ) showPlayerHudComponent ( "clock", false ) showPlayerHudComponent ( "weapon", false ) showPlayerHudComponent ("ammo", false) showPlayerHudComponent ( "money", false ) end addCommandHandler ( "hidehud", hudChanger ) addEventHandler( "onClientResourceStart", getRootElement(), hudChanger ) -- Hide the HUD (except oxygen) on resource start. function hudChanger2 () showPlayerHudComponent ( "armour", true ) showPlayerHudComponent ( "health", true ) showPlayerHudComponent ( "money", true ) showPlayerHudComponent ( "clock", true ) showPlayerHudComponent ( "weapon", true ) showPlayerHudComponent ("ammo", true) showPlayerHudComponent ( "money", true) end addCommandHandler ( "showhud", hudChanger2) -- Show all the HUD if you want to. You saw those DX texts? The X and Y for the Ammo In clip (line 22) is 611 and 731, and The X and Y for total ammo (line 20) is 684 and 731. A little Screen for the results ingame: (It's not really glowing ingame, just edited in Picasa to make it glow. Man I want glows like that! HQ ftw!) And location on full image (1024x768):
  22. @loler: I give this because he can't really understand english. To help him understand, just give Google Translator, well the only one I know.
  23. Yeah, I really want that too. But I don't think it's possible by now. Request to make possibility to replace weapon, peds, CJ Clothes DFF & TXD, if they can.
  24. Here's the deal: You need to open TXD Workshop (or any other TXD editor), and find sniper.txd in gta3.img. If you found it, export it. Now edit only the sniperCROSSHAIR.png inside the sniper.txd which you imported by using the TXD Workshop. To do that, press import png in the TXD workshop and find sniperCROSSHAIR.png which you made. It will replace the old crosshair, and here ya go! You made it. But I don't really think replacing weapons is possible by now. Tips: the sniper crosshair can only be made 1/4 of it (90 degress only). The game will copy 3x until it was made to be a complete circle.
×
×
  • Create New...