ManeXi

Members
  • Content Count

    134
  • Joined

  • Last visited

Community Reputation

10 Decent

About ManeXi

  • Rank
    Poot-butt

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Probably you should PM in cit2.net to Arran probably he can help you.
  2. ManeXi

    Custom GUI script

    Now it's working, thank you alot.
  3. ManeXi

    Custom GUI script

    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. ManeXi

    % math operator

    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. ManeXi

    % math operator

    I've seen in alot of codes with "complex" math operations using that operator, mathemathically talking what it does exactly?
  9. ManeXi

    [Help]Ban System

    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. ManeXi

    MTA Editor maps

    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.