Jump to content

ManeXi

Members
  • Posts

    128
  • Joined

  • Last visited

Everything posted by ManeXi

  1. Probably you should PM in cit2.net to Arran probably he can help you.
  2. Now it's working, thank you alot.
  3. Good suggestion, yes, I have just do it and they are created.
  4. local fontTab = {} function mtrxButton(a, b, c, d, text, fontSize, r, g, b, parent) local button local label if (parent) then button = guiCreateStaticImage(a, b, c, d, ":test_font/button_green.png", false, parent) else button = guiCreateStaticImage(a, b, c, d, ":test_font/button_green.png", false) end label = guiCreateLabel(0, 0, c, d, text, false, button) setMtrxFont(label, fontSize) guiLabelSetColor(label, r, g, b) guiLabelSetHorizontalAlign(label, "center", true) guiLabelSetVerticalAlign(label, "center") addEventHandler("onClientMouseEnter", label, function() guiStaticImageLoadImage(button, ":test_font/button_red.png") end, false) addEventHandler("onClientMouseLeave", label, function() guiStaticImageLoadImage(button, ":test_font/button_green.png") end, false) return button, label end function setMtrxFont(gui, fontSize) for i = 1, #fontTab do if (fontTab[i][1] == fontSize) then guiSetFont(gui, fontTab[i][2]) return end end table.insert(fontTab, {}) fontTab[#fontTab][1] = fontSize fontTab[#fontTab][2] = guiCreateFont(":test_font/main_trans_font.ttf", fontSize) end GUIEditor = { img = {}, window = {}, mtrxButt = {} } GUIEditor.window[1] = guiCreateWindow(194, 111, 391, 237, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.img[1], GUIEditor.mtrxButt[1] = mtrxButton(48, 45, 104, 51, "I'm the button #1", 10, 0, 0, 0, GUIEditor.window[1]) GUIEditor.img[2], GUIEditor.mtrxButt[2] = mtrxButton(200, 107, 144, 60, "I'm the button #2", 11, 0, 0, 0, GUIEditor.window[1]) guiSetVisible(GUIEditor.window[1], false) addCommandHandler("buttest", function() guiSetVisible(GUIEditor.window[1], not guiGetVisible(GUIEditor.window[1])) showCursor(not isCursorShowing()) end) the problem is that when I write the command the main windows is shown (this one: GUIEditor.window[1] = guiCreateWindow(194, 111, 391, 237, "", false)) but for some reason the "custom buttons" doesn't show, it doesn't give any debug error, can anyone find the mistake, please?
  5. Exactly, I used to be dev in a server that we used to use a map converter, I realized that with ~20 players online I had more lag than with ~600 players in CIT, this is something that everyone in MTA must know, creating alot of maps using Lua code brings enormous lag it's just a CPU killer. Personally I think it's ok creating that kind of map converters but be aware of the consequences, alot of people is not, due lack of experience or they just don't have maps with +5000 objects. And I'm not talking in vain or just with conjetures, I'm talking from my own personal experience.
  6. So if I get, it just gives the remainder of a division, nice to know.
  7. ManeXi

    Learning

    I strongly recommend you to watch out the tutorials made by this guy:
  8. I've seen in alot of codes with "complex" math operations using that operator, mathemathically talking what it does exactly?
  9. You have no idea of how diffucult can be doing this for a starter, before asking very complex stuff like this I strongly recommend you to get some knowledge about doing very basic scripts and programming, learn basics like using; if conditioning, for loops, tables and variables and you'll snowball to the knowledge of scripting in less time than you think.
  10. Guys not giving support to windows XP it's really stupid, tons of our players have old PCs that doesn't support new generation games (that's the main reason why they still playing MTA), honestly giving our windows XP players just exchange a stupid browser it's really really bad idea, and very honestly it's a browser that nobody cares about, just by pressing windows button I can go to my browser why defuq I would need it in MTA? Another point is that for example when I have no friends available to test a script for 1< n players I use virtual machines which are very useful, I haven't got very powerful PC but I can run windows XP in 2 virtual machines at the same time, by this way testing stuff it's always easier, if I would need to run a windows 7 in a virtual machine maybe I wouldn't be able to even run 1 properly...
  11. Seems like anytime that a player sees "MTA NEW RPG SERVER!", gets an erection, a big mistake from my part thinking that a TDM server would have a chance.
  12. Some days ago I found out that for some reason the MTA Editor maps (maps made with MTA:SA default editor and put in the server without editing them) have a flawless performance, when converted ones (converted to createObject into lua files etc...) are for some reason are FPS killers. My problem right now is that I want to use those maps but it's very very annoying that the client needs to download them each time it joins the server, so my question is: Is there anyway to keep those maps in clients PC and not getting deleted when it leaves the server? Note: I don't care if players are able to steal those maps from their own PC
  13. Cody I played your server cuz u spamming around this forums, and you do a massive campaing of your maps, I would play it in release but as I said before "random server", in my case I'm lurking around this forums I see what's going up, but most MTA players are not lurking around here and if heretics would be a "random server", I wouldn't wait to download 900 MB, but that's not my case.
  14. Performance, for people who enjoys playing with alot of players like MMO games.
  15. About download, well, honestly, if I would have to download 150 MB+ and if it's an random server for me I wouldn't waste my time, if the server keeps <100 MB I wouldn't doubt giving it a chance.
  16. MTA has a performance problem with graphic cards, I will talk entirely from my own experience. right now, I've got GeForce GTX 1060, Intel Core Quad Q9400 (2.66 GHz 4 Cores) and 4GB RAM DDR2 800 MHz I can play Dark Souls II and Doom 2016 60 FPS with graphic settings at MAX, then the logic would say that MTA would go always 60 FPS without any problem, right? Well, it should, but that's not happening for some reason MTA has probably one of the worst performaces I have ever seen, so to play a server like CIT (daily 500-700 players) and I would like to go always to 60 FPS probably I would need a NASA computer. So by buying a better graphic card you can only expect not getting FPS drops by recording, putting HQ 3D models in your gta3.img or whatever is relationed with the usage of graphic memory, but as in MTA seems that graphic memory is not used for a :~ this leads to a high CPU and RAM memory usage that kills game performance. So the question is that if you would get better performance by getting that super-graphic card, right? The answer variates depending what you do in MTA, if you play CIT and you go to CnR events where 50 players are killing eachother, don't expect having better performance than now, if you are playing Race server with 1337 :~ty 3D HQ mods, yes, your performance will get better.
  17. Buenas noticias chavales el servidor saldrá este sábado a las 14:00 GMT 0 La IP del servidor: 164.132.47.13 espero ansioso vuestra visita!
  18. Thanks alot, I expect I traslated it rightly cause it's hard to copy-paste from arabic
  19. Please can anyone traslate me this to polish, I would be very thanked if you do it. If you do it, please try to put the color too cause I can't know where to put the colors. Welcome to Street War, Warrior! This is a short tutorial about the sever press “next” button below to go to the next page. Next In SW there are 3 teams - Ballas (Don't traslate this line) - Police (Don't traslate this line) - Grove Street (Don't traslate this line) After choosing a team just go conquer turfs for your team and fight enemies Special events and drugs Drugs give you perks like; speed, more HP... To access to drug panel press F4 Drugs are get by participating in the TDM event hosted each hour in LS Hospital icon on the radar Are you ready Warrior? If you need further info press F1! Fight!
  20. Please can anyone traslate me this to russian, I would be very thanked if you do it. If you do it, please try to put the color too cause I can't know where to put the colors. Welcome to Street War, Warrior! This is a short tutorial about the sever press “next” button below to go to the next page. Next In SW there are 3 teams - Ballas (Don't traslate this line) - Police (Don't traslate this line) - Grove Street (Don't traslate this line) After choosing a team just go conquer turfs for your team and fight enemies Special events and drugs Drugs give you perks like; speed, more HP... To access to drug panel press F4 Drugs are get by participating in the TDM event hosted each hour in LS Hospital icon on the radar Are you ready Warrior? If you need further info press F1! Fight!
  21. Please can anyone traslate me this to arabic, I would be very thanked if you do it. If you do it, please try to put the color too cause I can't know where to put the colors. Welcome to Street War, Warrior! This is a short tutorial about the sever press “next” button below to go to the next page. Next In SW there are 3 teams - Ballas (Don't traslate this line) - Police (Don't traslate this line) - Grove Street (Don't traslate this line) After choosing a team just go conquer turfs for your team and fight enemies Special events and drugs Drugs give you perks like; speed, more HP... To access to drug panel press F4 Drugs are get by participating in the TDM event hosted each hour in LS Hospital icon on the radar Are you ready Warrior? If you need further info press F1! Fight!
  22. Esque eso es el trailer las carácteristicas más RP las podrás ver si entras al servidor el día de su salida.
  23. local timers = {} local gambling = createMarker ( 2322.7568359375, 2088.5502929688, 34.055694580078, "checkpoint", 1, 255, 0, 0, 255 ) addEventHandler("onMarkerHit",gambling, function(player) if (getElementType(player) == "player") then if not timers[player] then if getPlayerMoney(player) >= 5000 then if math.random() < 1/2 then outputChatBox ("#0000ffWelcome to the Dragon Gambling House Dice! Would you like to play?",player, r, g, b, true) outputChatBox ("#ffffff*The dealer rolls the dice*",player, r, g, b, true) outputChatBox ("#00ff00Congratulations! You have won 5000$!",player, r, g, b, true) givePlayerMoney(player, 5000) timers[player] = setTimer(function() timers[player] = nil end, 30000, 1) else outputChatBox ("#ff0000Welcome to the Dragon Gambling House Dice! Would you like to play?",player, r, g, b, true) outputChatBox ("#ffffff*The dealer rolls the dice*",player, r, g, b, true) outputChatBox ("#00ff00Aww, too bad! You have lost 6000$!",player, r, g, b, true) takePlayerMoney(player, 6000) timers[player] = setTimer(function() timers[player] = nil end, 30000, 1) end else outputChatBox("#0000ffYou do not have enough money.",player) end else outputChatBox("#0000ffYou must wait 30 seconds before gambling again", player) end end end) Try out this one
×
×
  • Create New...